Expand description
Constraint evaluation, connection planning, and diagnostics.
This module is intentionally small in v1: the contracts are more important than the algorithms.
Structs§
- Connect
Plan - A rules-driven plan for connecting two ports.
- Delete
Plan - A rules-driven plan for deleting graph elements.
- Diagnostic
- A diagnostic produced by validation or connection planning.
- Insert
Node Spec - Specification for inserting a new node as part of a connection workflow.
- Insert
Node Template - A template for inserting a node between two ports.
- Port
Template - A template for a port to be instantiated during an insertion workflow.
Enums§
- Connect
Decision - Connection decision.
- Delete
Decision - Delete decision.
- Diagnostic
Severity - Diagnostic severity.
- Diagnostic
Target - Diagnostic target.
- Edge
Endpoint - Which endpoint of an existing edge is being reconnected.
Functions§
- plan_
connect - Plans connecting two ports (strict mode).
- plan_
connect_ by_ inserting_ node - Plans connecting two ports by inserting a node with default interaction policy.
- plan_
connect_ by_ inserting_ node_ with_ policy - Plans connecting two ports by inserting a node between them.
- plan_
connect_ typed - Plans connecting two ports with optional type compatibility checks.
- plan_
connect_ typed_ with_ mode_ and_ policy - Plans connecting two ports with mode, policy, and optional type compatibility checks.
- plan_
connect_ typed_ with_ policy - Plans connecting two ports with policy and optional type compatibility checks.
- plan_
connect_ with_ mode - Plans connecting two ports with default interaction policy.
- plan_
connect_ with_ mode_ and_ policy - Plans connecting two ports.
- plan_
delete_ edge - Plans deleting an edge with default interaction policy.
- plan_
delete_ edge_ with_ policy - Plans deleting an edge with explicit interaction policy.
- plan_
delete_ elements - Plans deleting nodes and edges with default interaction policy.
- plan_
delete_ elements_ with_ policy - Plans deleting nodes and edges with explicit interaction policy.
- plan_
delete_ node - Plans deleting a node with default interaction policy.
- plan_
delete_ node_ with_ policy - Plans deleting a node with explicit interaction policy.
- plan_
reconnect_ edge - Plans reconnecting one endpoint of an existing edge (strict mode).
- plan_
reconnect_ edge_ with_ mode - Plans reconnecting one endpoint of an existing edge with default interaction policy.
- plan_
reconnect_ edge_ with_ mode_ and_ policy - Plans reconnecting one endpoint of an existing edge to a new port.
- plan_
split_ edge_ by_ inserting_ node - Plans splitting an existing edge by inserting a node (preserving the edge identity for the first segment).