Open hybridherbst opened 4 years ago
IEnumerable<GeometryGraph> subGraphs = GraphConnectedComponents.CreateComponents(geometryGraph.Nodes, geometryGraph.Edges);
SugiyamaLayoutSettings layoutSettings = new SugiyamaLayoutSettings();
layoutSettings.EdgeRoutingSettings.EdgeRoutingMode = Microsoft.Msagl.Core.Routing.EdgeRoutingMode.Rectilinear;
layoutSettings.NodeSeparation = 120;
layoutSettings.LayerSeparation = 120;
foreach (GeometryGraph subgraph in subGraphs)
{
LayeredLayout layout = new LayeredLayout(subgraph, layoutSettings);
layout.Run();
}
After this you would be free to position each subgraph whever you fancied.
The above may help.
Haven't seen anything suggesting this.
Thank you, that might help. I'll report back here once I get time to try it!
I'm using the AutomaticGraphLayout package to lay out ~200-300 nodes with varying edge counts between them (between 0 and 30).
Currently I'm using a SugiyamaLayout, but that seems to have issues with isolated nodes (some nodes just don't have any edges), kind of sometimes grouping them and sometimes scattering them around.
Is there
Thanks!