Hello, I got several questions about routing links - I have about 10 square nodes, each has top input and bottom output anchor and there are links between them.
I need layout with orthogonal connections and links not crossing other nodes and also as few crossing among links as possible.
I tried
diagram.RoutingOptions.CrossingCost = 50;
diagram.RoutingOptions.NodeVicinityCost = 10;
diagram.RoutingOptions.TurnCost = 0;
diagram.LinkStyle = LinkStyle.Cascading;
diagram.RouteLinks = true;
and for links:
AutoRoute = true, Style = LinkStyle.Cascading
I tried also LayeredLayout, FlowchartLayout, OrthogonalLayout, but I wasn't able to make these rules happen - there are still crossing between links and links are crossing nodes. Any idea?
Edit: Solved problem with key down routing - I had focus on another control... stupid mistake
The third question is, is it possible ot give names to used anchors in Node and show them in diagram? User should know which anchor has which name in case of multiple output/input anchors.
thanks