Orthogonal visibility graph
Also known as OVG
routing connector-routing
The orthogonal visibility graph (OVG) is the routing graph for connectors made of horizontal and vertical segments around rectangular obstacles. From each obstacle corner and each port, a horizontal and a vertical line run until they would enter an obstacle. The vertices are where these lines cross, and the edges join neighbouring vertices along a line. Wybrow, Marriott and Stuckey show that some optimal route, for a cost that grows with length and bends, uses only these edges. Scene updates the graph in place when obstacles or ports change, and adds a frame and port stubs for ports with fixed directions.
Pseudocode
algorithm BuildOVG(O, P)input: rectangular obstacles O, ports Poutput: the orthogonal visibility graph GI ← corners(O) ∪ points(P) ∪ port-stubs(P) ∪ frame-corners(O, P)H, V ← ∅, ∅for each p in I doif p is outside every obstacle interior thenH ← H ∪ {maximal-segment(p, horizontal, O)} ▷ grows until it would enter an obstacleV ← V ∪ {maximal-segment(p, vertical, O)}for each h in H dofor each v in crossing(V, h) doadd-vertex(G, h ∩ v)for each σ in H ∪ V dolink-consecutive(G, σ) ▷ edges between neighbouring vertices on σreturn Gprocedure update(R)▷ R is an obstacle that is added, moved or removedA ← segments whose line passes strictly through R's range and whose extent meets Rremove-segments(G, A) ▷ with their verticesapply the change to Ofor each p in generators(A) ∪ interesting-points-in(closure(R)) doinsert-segment(G, maximal-segment(p, horizontal, O))insert-segment(G, maximal-segment(p, vertical, O))▷ a port that is added or removed adds or removes one generatorIn the crates
connector-routingOrthogonal visibility graph with a routing frame and port stubs, updated incrementally for added, moved and removed obstacles and ports.
Lineage
Comes from
Nothing on this site.
Led to
1-bend visibility graph builds on it
Orthogonal drawing pipeline combines it
Orthogonal hyperedge routing builds on it
Papers
- Orthogonal Connector Routing Michael Wybrow, Kim Marriott, Peter J. Stuckey · 2010· Graph Drawing (GD 2009), LNCS