microsoft / automatic-graph-layout

A set of tools for graph layout and viewing
Other
1.36k stars 304 forks source link

When using CalculateLayout with SugiyamaLayoutSettings #329

Open WangElsie opened 2 years ago

WangElsie commented 2 years ago

When using CalculateLayout with SugiyamaLayoutSettings,Is it possible to limit the length and width of the graph to achieve the purpose of wrapping the results. Is there a way to make nodes over a certain number or length just show in a new column. Now like this: image

levnach commented 2 years ago

There are no restrictions on the size helping to achieve the wrapping. However, with the layered layout you can control if a couple of nodes belong to the same layer with, for example, PinNodesToSameLayer. It might give you the effect you are looking for.