views:

795

answers:

2

Many graphing applications use orthogonal edge routing for "objects" on a canvas.

I am aware of the brilliant collection of algorithms found in the open source project titled QuickGraph (http://quickgraph.codeplex.com/) but the layout is left to actual layout renderers (such as GraphViz (http://www.graphviz.org) and MSAGL (found on Microsoft store))

Is there a simple algorithm that takes into account the bounds of each object and the anchor points of the end and start points of an edge?

+1  A: 

I'm not sure about the algorithm, but I know orthogonal routing (node link rendering, right?) is also called "Manhattan" layout, you may find something more about it under that name.

kek444
I investigated this Manhattan and thank you. This algorithm really does look appealing and close to what I can utilize.
Mike J
You're welcome.
kek444
A: 

I think you're looking for a layout algorithm and not a routing algorithm. If you're really looking for a routing algorithm, then something like Open Shortest Path First is a simple one to implement.

Eric
Yes, layout is precise. Although, layout would usually refer to the "nodes" themselves and that's not what I am looking for, rather the layout of the edges between the "nodes" using an orthogonal layout.
Mike J