inire/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-26 21:14:29 -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 example fixes and improvements 2026-03-30 23:40:29 -07: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 Separate user guides, benchmarks, and routing internals 2026-11-26 21:14:29 -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

Route around fixed geometry

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

The first route runs straight. The second must turn around its left end to reach the other side. Run the locked-path example, or use the public API workflow to pass fixed polygons into another run.

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.

Diagnose congestion or an incomplete route

In plots with a physical overlay, dashed outlines show search proxies and solid outlines show physical geometry. Use the physical outlines to inspect clearance and result.outcome to interpret red paths. Result guide