Hi all. I was testing this great library, trying to convert an old project made with another one. In this project I didn't specify nodes size and position, letting the library doing it automatically.
I have seen that there are several demos (for example Demo.yFiles.Graph.IncrementalHierarchicGrouping and Demo.yFiles.Graph.Folding) , but in all of them it seems that nodes are defined in agraphml file containing their coordinates and other stuff to.
In fact, if I populate the graph with code like the CreateInitialModelGraph method of Demo.yFiles.Graph.Folding demo:
// create some nodes and groups
INode g0 = groupedGraph.CreateGroupNode();
INode g1 = groupedGraph.CreateGroupNode(g0);
INode c1 = groupedGraph.CreateNode(g0);
INode c2 = groupedGraph.CreateNode(g0);
INode c3 = groupedGraph.CreateNode(g1);
INode c0 = graph.CreateNode();
// create some edges
I get every nodes in the same position.
Is there any way to automatic layout nodes withous specifying their position and size?
closed with the note:
Not a yEd question.