| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .. | ||
| 01_simple_route.png | ||
| 01_simple_route.py | ||
| 02_congestion_resolution.png | ||
| 02_congestion_resolution.py | ||
| 03_locked_paths.png | ||
| 03_locked_paths.py | ||
| 04_sbends_and_radii.png | ||
| 04_sbends_and_radii.py | ||
| 05_orientation_stress.png | ||
| 05_orientation_stress.py | ||
| 06_bend_collision_models.png | ||
| 06_bend_collision_models.py | ||
| 07_large_scale_routing.png | ||
| 07_large_scale_routing.py | ||
| 08_custom_bend_geometry.png | ||
| 08_custom_bend_geometry.py | ||
| 09_unroutable_best_effort.png | ||
| 09_unroutable_best_effort.py | ||
| advanced-layouts.json | ||
| advanced.md | ||
| advanced_layouts.py | ||
| README.md | ||
Routing examples
After installing Inire, run the scripts from the repository root. They save PNGs in the examples directory by default.
python examples/01_simple_route.py
Start with a connection
| Script | What to look for | Preview |
|---|---|---|
| Simple route | One path leaves and enters its ports travelling east. | Quick-start figure |
| Port orientations | Perpendicular and opposing headings require different approaches, even for nearby ports. | Port approaches |
Route around fixed geometry
The second route loops around the left end of the fixed straight. To reproduce the detour, run 03_locked_paths.py. To supply your own fixed polygons, follow the route reuse workflow.
Fit bends to available room
Follow the short offset to see a single S-bend. The larger shift has room for a pair of right-angle bends.
| Script | What to look for | Preview |
|---|---|---|
| S-bends and radii | The shapes used for a short offset and for a larger shift. | Compare the two paths in the figure above. |
| Bend proxies | How an arc, a box proxy for an arc, and a custom physical bend affect the route. | Bend model comparison |
| Custom bends | A route whose search proxy and physical bend use different polygons. | Custom bend overlay |
Diagnose congestion or an incomplete route
| Script | What to look for | Preview |
|---|---|---|
| Congestion resolution | How rerouting separates nets competing for the same space. | Separated routes |
| Best-effort result | Where a path stops with a small node budget. Try node_limit=500 to complete it. |
Budget comparison |
| Fan-out | How search states cluster around a bottleneck. The example adjusts the heuristic between iterations through the internal worker. | Fan-out search overlay |
In the bend overlays, the dashed outline shows what search uses to screen candidate moves. The solid outline shows the physical bend you can measure for clearance. To interpret an incomplete or colliding path, read result.outcome using the result guide.
Route a challenging layout
Compare each board's inputs with its verified routes in the advanced gallery. It covers mixed widths, competing passages, preplaced crossings, and both heading configurations of the nine-net Terminal-Bench board.

