hello,
we have a graph-links-model and try to automatically layout our graph with a LayeredDigraphLayout. Sometimes it works fine at other times its ugly. We tried all options given in the layout (spacing, iterations, etc.) but the results seem random. Is there an easy fix for that or do we have to implement our own layouting algorithm?
I believe LayeredDigraphLayout is deterministic, so if you really have exactly the same data in the same order, you should get the same results.
But the asynchrony present in WPF and Silverlight might complicate things.
That’s why I’m asking about how you build the diagram.
(BTW, which platform are you targeting, and which version of GoXam are you using?)
i build the model by adding nodes to it with Diagram.Model.AddNode(nodeData); and afterwards adding the links with Diagram.Model.AddLink(startNodeData, null, endNodeData, null); each within a transaction.
after the layout is completed I call:
activeDiagram.LayoutManager.LayoutDiagram(Northwoods.GoXam.LayoutInitial.InvalidateAll, true);
may that cause complications? i want to layout only once because manually added nodes should not be layouted.