inire/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 10:15:54 -08:00
..
01_simple_route.png add missing images 2026-04-06 16:42:40 -07:00
01_simple_route.py rework structure of everything 2026-03-30 15:32:29 -07:00
02_congestion_resolution.png add missing images 2026-04-06 16:42:40 -07:00
02_congestion_resolution.py example fixes and improvements 2026-03-30 23:40:29 -07:00
03_locked_paths.png Add refinement by default 2026-03-29 15:46:37 -07:00
03_locked_paths.py Demonstrate locked routes with two public routing calls 2026-11-27 00:38:00 -08:00
04_sbends_and_radii.png add missing images 2026-04-06 16:42:40 -07:00
04_sbends_and_radii.py rework structure of everything 2026-03-30 15:32:29 -07:00
05_orientation_stress.png more fixes and refactoring 2026-03-29 18:27:03 -07:00
05_orientation_stress.py rework structure of everything 2026-03-30 15:32:29 -07:00
06_bend_collision_models.png add missing images 2026-04-06 16:42:40 -07:00
06_bend_collision_models.py example fixes and improvements 2026-03-30 23:40:29 -07:00
07_large_scale_routing.png add missing images 2026-04-06 16:42:40 -07:00
07_large_scale_routing.py fix examples 2026-03-30 21:22:20 -07:00
08_custom_bend_geometry.png add missing images 2026-04-06 16:42:40 -07:00
08_custom_bend_geometry.py example fixes and improvements 2026-03-30 23:40:29 -07:00
09_unroutable_best_effort.png add missing images 2026-04-06 16:42:40 -07:00
09_unroutable_best_effort.py Tie routing documentation to user and developer workflows 2026-11-27 10:15:54 -08:00
README.md Tie routing documentation to user and developer workflows 2026-11-27 10:15:54 -08:00

Routing examples

After installing Inire, run the scripts from the repository root. Each saves a PNG beside its source.

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

A second waveguide makes a U-shaped detour around the left end of a fixed straight waveguide.

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

A short S-bend shifts one guide laterally. A separate route uses two 90-degree bends to make a larger vertical shift.

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.