Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Crossing reduction

routing connector-routing

Crossing reduction removes crossings between routed connectors that are not necessary. The required crossings of two routes are the crossings that every drawing of their paths must have. When a pair must cross two or more times, one route takes over the other's path between their first and last shared vertex. The change stays only if the route has no repeated vertex and its total of required crossings gets strictly lower, so the process always stops. It is a local heuristic: it does not check channel capacity, and a changed route can be longer.

Pseudocode

algorithm ReduceCrossings(R, k)input: routes R on the routing graph, at most k roundsoutput: the number of replaced route sectionsreplaced ← 0for round in 1, …, k doCHANGES ← ∅                              ▷ found on the routes as they were at the round startfor each (a, b) in pairs of routes that share a vertex dofor each (x, y) in ⟨(a, b), (b, a)⟩ doif x ∉ CHANGES and y ∉ CHANGES and required-crossings(R[x], R[y]) ≥ 2 thenu, v ← first and last vertex of R[x] that R[y] also visitsc ← R[x] with its section from u to v replaced by the section of R[y]if simple(c) and crossings(c, R) < crossings(R[x], R) thenCHANGES[x] ← c                   ▷ a route changes at most once per roundif CHANGES = ∅ thenbreakfor each (x, c) in CHANGES doR[x] ← creplaced ← replaced + 1return replacedfunction required-crossings(a, b)▷ one per shared stretch whose two ends put a and b on different sides,▷ plus one per shared vertex that both pass straight through, perpendicularreturn count of such stretches and vertices

In the crates

Lineage

Comes from

Nothing on this site.

Led to

Orthogonal drawing pipeline combines it

Papers

  1. A Simple Pipeline for Orthogonal Graph Drawing Tim Hegemann, Alexander Wolff · 2023· Graph Drawing and Network Visualization (GD 2023), LNCS applies doi 10.1007/978-3-031-49275-4_12 arXiv 2309.01671
  2. Integrating Edge Routing into Force-Directed Layout Tim Dwyer, Kim Marriott, Michael Wybrow · 2007· Graph Drawing (GD 2006), LNCS analyses