Connect Poietic nodes
poietic_connectCreate an edge between two nodes to define flows or parameters, returning the edge's ID for further adjustments.
Instructions
Create an edge between two nodes. Edge types: Flow (between a FlowRate and a Stock; direction is flow direction) and Parameter (from a value node to the node whose formula uses it). NOTE: edge attributes cannot be set at creation; use poietic_set_attributes afterwards if needed. Returns {edgeId}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Edge type name (Flow, Parameter). | |
| design | No | Path to the design file. Defaults to the current design (poietic_use_design) or POIETIC_DESIGN. | |
| origin | Yes | Origin node (ID or name). | |
| target | Yes | Target node (ID or name). |