Boxart.Routing (Boxart v0.3.1)

Copy Markdown View Source

Edge routing orchestrator.

Determines start/end attachment points on nodes, runs A* pathfinding, and handles direction selection (preferred vs alternative paths). Previously-routed edges' cells become soft obstacles for later edges.

Summary

Functions

Route all edges in the graph, returning a list of RoutedEdge structs.

Types

attach_dir()

@type attach_dir() :: :top | :bottom | :left | :right

Functions

route_edges(graph, layout)

Route all edges in the graph, returning a list of RoutedEdge structs.

Each edge is routed via A* pathfinding between attachment points on its source and target nodes. Previously-routed edges contribute soft obstacles so later edges prefer avoiding overlap.