A weighted arc between a place and a transition.
:normalarcs run place → transition (input: the transition consumesweighttokens) or transition → place (output: it producesweighttokens).:inhibitorarcs run place → transition only. The transition is enabled only while the place holds fewer thanweighttokens. An inhibitor arc consumes nothing. Weight 1 means "the place is empty".
Weights are positive integers.
Summary
Types
@type kind() :: :normal | :inhibitor
@type node_id() :: Petrex.Place.id() | Petrex.Transition.id()
@type t() :: %Petrex.Arc{ extra: Petrex.Place.extra(), from: node_id(), kind: kind(), to: node_id(), weight: pos_integer() }