Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
Diagrams

connector-routing

Connector routing for diagrams and schematics: many orthogonal connectors at once with bend, length and crossing costs, negotiated congestion, rip-up and reroute, and nudging

cargo add connector-routing

Who it is for

  • Diagram and graph editors (flowcharts, UML, node editors, architecture diagrams) that need connectors which avoid the boxes, bend rarely, cross rarely and do not lie on top of each other, and that should update incrementally when the user drags a box.
  • Schematic and EDA-style tools, and generators for cable or wiring plans, where many nets share narrow channels and nets with more than two ports become Steiner trees.
  • Layout engines that run their own placement: the nudging step solves its separation constraints exactly, and also exports them as data for an engine that places segments itself.
  • If you need the plain shortest path on a general graph, use heuristic-search; for agents that move over time and must not meet at all, mapf-search; for Pareto fronts on graphs other than routing scenes, multiobjective-search.

Algorithms 12

  • 1-bend visibility graph 1-bend visibility graph search

    Opt-in A* over the lazily generated 1-bend visibility graph of obstacle-hugging routes; not exact in general.

    Search

  • A* A star

    Single-connector routing by A* over (vertex, heading) with an exact free-space bend estimate and weighted or lexicographic length/bend objectives.

    route

  • Path ordering in shared channels, required crossings and crossing reduction of routed connectors.

    reduce_crossings

  • Incremental poly-line routing Poly-line connector routing

    Shortest any-angle routes over the visibility graph of obstacle corners, kept up to date as obstacles come and go, with hidden-region pruning.

    PolylineRouter

  • Nudging Orthogonal nudging

    Scan-line separation constraints solved exactly as difference constraints with water-filling, no LP; full nudging also moves and grows boxes.

    nudgefullnudge_nets

  • Orthogonal drawing pipeline Hegemann-Wolff pipeline

    Port assignment, visibility or channel routing graph, routing, crossing reduction, ordering, and constrained or full nudging.

    drawassign_portschannel_graph

  • Orthogonal hyperedge routing Hyperedge routing

    Nets with more than two ports as rectilinear Steiner trees by both heuristics of the paper, with segment-shifting improvement.

    routeroute_withimprove

  • Orthogonal visibility graph with a routing frame and port stubs, updated incrementally for added, moved and removed obstacles and ports.

    Scene

  • PathFinder Negotiated congestion

    Global routing with PathFinder negotiated congestion over channel capacities, crossing penalties and deterministic net order.

    route_all

  • Connectors over capacity are ripped up and rerouted during global routing.

    route_all

  • Any-angle routes through an exact constrained Delaunay triangulation, dual-graph Dijkstra and the funnel algorithm.

    SleeveRouter

  • VPSC Variable Placement with Separation Constraints

    Least-squares projection of desired segment positions onto the separation constraints.

    Placement