Skip to main content

Arc

Arc in a Petri net

Connecting a transition and a place (or the other way around)
Used as Input

0

functions accept this type(+4 nested)

Used as Output

0

functions return this type(+1 nested)

Type Definition

12 nested items
struct— Arc in a Petri net
from_to*:ArcType— Arc type in a Petri net
weight*:u32— Weight (i.e., how many tokens this arc moves)

Example JSON Value

json
{
  "from_to": {
    "nodes": [
      "example",
      "example"
    ],
    "type": "PlaceTransition"
  },
  "weight": 1
}