add_arc
Add an arc between a place and a transition in a Petri net, enforcing bipartite connectivity. Supports normal, inhibitor, or read arcs.
Instructions
Add an arc connecting a place to a transition or vice versa.
LOW-LEVEL TOOL — use only when no existing pattern covers the required topology. Arcs enforce bipartite constraint: Place↔Transition only.
Args: source_id: ID of the source node (place or transition) target_id: ID of the target node (place or transition) weight: Arc weight (tokens consumed/produced per firing) arc_type: Arc type — "normal", "inhibitor", or "read"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_id | Yes | ||
| target_id | Yes | ||
| weight | No | ||
| arc_type | No | normal |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |