Incremental poly-line routing
Also known as Poly-line connector routing
routing connector-routing
Incremental poly-line routing finds short any-angle routes around rectangular obstacles and keeps them current while a user edits the diagram. The visibility graph joins every pair of obstacle corners and connector ends whose straight segment enters no obstacle. A* over this graph, with the straight-line distance as its estimate, finds the cheapest route; optional penalties charge bends, turn angles and crossings. Each pair that is not visible remembers one obstacle that blocks it, so removing that obstacle retests only its pairs. After each change, the router reports the connectors that are now invalid or may get a cheaper route.
Pseudocode
algorithm Reroute(k)input: connector k from s to t, visibility graph V over obstacle corners and connector endsoutput: the cheapest route of k, or failure▷ states are (node, previous node), so bends and turn angles can be charged▷ without penalties, hidden-region pruning only lets a route turn around the obstacleroute[k] ← a-star(V, s, t, euclidean-distance-to(t))if route[k] = nil thenreturn failurecost[k] ← length + α · bends + β · angles + γ · crossings of route[k]return route[k]procedure add-obstacle(o)for each (p, q) in V doif segment(p, q) enters interior(o) thenV ← V ∖ {(p, q)}INVIS[o] ← INVIS[o] ∪ {(p, q)} ▷ o is the one blocker it remembersfor each c in corners(o) doadd-node(c) ▷ tests c against every other nodefor each k in connectors doif route[k] enters interior(o) thenreport-invalidated(k)procedure remove-obstacle(o)for each c in corners(o) doremove-node(c)for each (p, q) in INVIS[o] doclassify(p, q) ▷ visible now, or blocked by another obstaclefor each k in connectors doif route[k] = nil or lower-bound-through(s_k, t_k, o) < cost[k] thenreport-may-improve(k)In the crates
connector-routingShortest any-angle routes over the visibility graph of obstacle corners, kept up to date as obstacles come and go, with hidden-region pruning.
Lineage
Comes from
builds on A*
Led to
Nothing on this site.
Papers
- Incremental Connector Routing Michael Wybrow, Kim Marriott, Peter J. Stuckey · 2006· Graph Drawing (GD 2005), LNCS