Use Inire to connect fixed ports on a photonic or RF layout with straight segments, 90-degree bends, and S-bends. Supply the device placement, keepouts, and allowed bend radii. The router checks the finished geometry for clearance and returns partial paths to help you diagnose unfinished nets.
This example prints `200.0`, the length in the layout's coordinate unit. The branch that prints `outcome` is where you can report an unfinished or colliding net. [Interpret results and diagnose failures](DOCS.md#read-the-result)
Use a unit fine enough to preserve your port spacing on an integer grid. A heading of 0 points east. Both ports in the example have heading 0 because the waveguide travels east when it leaves the start and when it reaches the target. [Describe a layout](DOCS.md#describe-a-layout)
Place crossing devices before routing and describe their external legs as separate nets. Use the [examples](examples/README.md) to try multi-net routing, locked paths, or custom bends, and the [tuning guide](DOCS.md#tune-a-run) to decide which settings to change.
Run `python -m pytest` for the correctness suite. Use `python -m pytest -m "not routing_corpus"` for a shorter local run. Start with the [architecture](docs/architecture.md) to find where a change belongs, then use the [benchmark guide](docs/topological-routing.md) and [diagnostics](docs/routing-diagnostics.md) to check its effect.