microsoft / automatic-graph-layout

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

Non-deterministic Edge Routing #297

Open MouthlessGames opened 3 years ago

MouthlessGames commented 3 years ago

Hello, I'm using the latest version 1.1.12 of MAGL and the SugiyamaSplines setting for the layout.

Is it expected behavior that edges are routed slighlty differently on each refresh? In the following animation, the diagram refreshes on each click resulting in a slightly different result each time.

Animation

However, it happens only when the number of edges surpasses a specific threshold as on diagrams having a fairly slow number of edges stay the same after each refresh.

I played around a bit with the EdgeRoutingSettings but they don't seem to change anything in this regard.