Is there a way to route only edges in existing layout with MSAGL?
I have a GeometryGraph object with layout generated using LayeredLayout and I want to remove/add edges without running the layout algorithm again (this operation makes drastic changes to node positions and is confusing to end user).
Can I somehow simply run layout again with all node positions fixed?
You need to keep
InteractiveEdgeRouterin sync with your graph:Every recalc of graph layout should also call
edgeRouter_.Run()to keep it in sync with obstacle changes (you should add new nodes as well).After you added new edge, instead of calculating layout again, set the edge curve manually using the router: