65
In that case, creating a custom application based on the (commercial) yFiles diagramming library would be the way to go.
yEd does not provide an API and never will. Indeed, its Software License Agreement actually forbids using yEd in any kind of automated process (like batch-converting multiple diagrams).