Skip to main content
Rust4PM

PetriArcRef

An arc of a Petri net drawing.
Used as Input

0

functions accept this type

Used as Output

0

functions return this type(+1 nested)

Type Definition

15 nested items
struct— An arc of a Petri net drawing.
source*:PetriNodeRef— A place or transition of a Petri net drawing, e.g., {"kind": "place", "index": 3}.
target*:PetriNodeRef— A place or transition of a Petri net drawing, e.g., {"kind": "place", "index": 3}.
weight*:u32— How many tokens the arc moves.

Example JSON Value

json
{
  "source": {
    "index": 1,
    "kind": "place"
  },
  "target": {
    "index": 1,
    "kind": "place"
  },
  "weight": 1
}