@shumoku/core · 0.4.0 · function
ensurePorts
Walk the graph and ensure every link endpoint references an existing `NodePort`. Idempotent — graphs that already comply pass through unchanged (modulo deep-copy).
ensurePorts(graph: NetworkGraph): NetworkGraph Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
graph | NetworkGraph | No additional description. | — |
Returns
NetworkGraph