@akkartik
The only thing I could find is this paid Java API: docs.yworks.com/yfiles/doc/api