Check whether the layout can fit the connection before spending more search time. Start with the per-net result and change one setting at a time.
## Read the result
| `result.outcome` | What to inspect |
| --- | --- |
| `completed` | The path reached its target and passed verification. Use `locked_geometry` for physical polygons and `report.total_length` for length. |
| `colliding` | The path reached its target. Read `report` for static, dynamic, or self-collisions and any automatic board containment failure. |
| `partial` | Inspect where the path ends. Check the next turn, available radius, and search limit. |
| `unroutable` | No path was returned. Check the launch heading and room for the first straight or bend. |
Check `is_valid` before exporting. With explicit `off`, `guide`, or `seed` mode, also check that the physical polygons fit the board if your export requires containment. Automatic mode includes that check in candidate verification. [Result fields](api-reference.md#results)
1.**Check for a geometric bound.** In an automatic run, `max_routed` is an upper bound. If it is below the requested count, read `capacity_limit` or `port_conflicts` to see where to widen a passage or move a port. A result below the bound can still leave feasible nets unfinished.
2.**Check the port and turn geometry.** For static or self-collisions, inspect physical clearance and bend room. For dynamic collisions, inspect the routes that compete for the same space.
3.**Check the search budget.** If the verified count is below the bound and the geometry looks feasible, try raising a small `search.node_limit`. The limit is per search. A run can try the same net several times.

Both runs use the best-effort example's ports, obstacles, radii, and iteration settings. At three nodes per search, the dashed path stops before the obstacles. At 500, the solid path reaches the westbound target. [Runnable best-effort example](../../examples/09_unroutable_best_effort.py)
## Choose a routing mode
Set `TopologyOptions(mode=...)` and pass it as `topology` in `RoutingOptions`.
- **`automatic`.** Start here. Inire chooses from constructive planners and search stages and keeps the best verified coverage it finds.
- **`off`.** Isolate lattice search or work with custom physical bend geometry.
- **`guide`.** Use suggested corridors when a detour looks promising and the router needs freedom to leave the corridor to turn.
- **`seed`.** Try to realize a verified starting path inside a corridor before the detailed search.
- **`bundle`.** Route supported ordered rectangular bundles. Use a circular radius enabled for both bends and S-bends. Unsupported layouts and invalid schedules raise `ValueError`.
- Guide and seed modes require constrained triangulation from Shapely 2.1 with GEOS 3.10 or newer. Caller-supplied seeds take precedence, and nets without a corridor can use ordinary lattice search.
- Enable `infer_terminal_headings` for point terminals with flexible headings. Preserve fixed headings when a device requires a specific arrival direction.
- In automatic mode, smaller initial budgets make the first attempts cheaper. If coverage remains below the bound, a lattice fallback can use your configured ceiling. Automatic also uses lattice for custom bend geometry or when constrained triangulation is unavailable. [Automatic stage order](../architecture.md#automatic-routing)
## Choose the next setting
| Observation | Next comparison |
| --- | --- |
| Multiple routes reach their ports and collide with one another | Try a different `congestion.net_order` or allow more `max_iterations`. Compare the unresolved IDs. |
| Valid routes use too many small bends | Increase `objective.bend_penalty`. Compare bend counts and physical lengths to see whether a straighter path needs a longer detour. |
| Refinement dominates runtime | Try `refinement.max_windows_per_net=1`. Compare the verified paths and cost before adopting the smaller limit. |
For a shorter refinement pass, derive the new settings from the `options` already used for the layout.