inire/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 00:38:00 -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 linter fixes 2026-03-30 23:54:30 -07:00
README.md Tie documentation links to reader workflows 2026-11-26 22:03:08 -08:00

Routing examples

Run these scripts from the repository root after installation. Each script saves a PNG alongside its source.

python examples/01_simple_route.py

Start with a connection

Use the quick start to connect two ports with copyable code. For perpendicular and opposing headings, compare the port orientations example with its route plot.

Route around fixed geometry

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

The straight route is fixed, so the second route loops around its left end. Run the locked-path example to reproduce the detour. To pass a fixed route into your own layout, 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.

The short path fits a small offset with an S-bend. The longer path has room for a pair of right-angle bends. Run S-bends and radii to see both geometries.

Example What to look for Preview
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

Example 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 physical overlays, dashed outlines show search proxies and solid outlines show physical geometry. Inspect clearance using the solid outlines. For red paths, look up result.outcome in the result guide.