How this calculation works
Explore every reachable marking of a small capacity-bounded Petri net, with a shortest target firing sequence and deadlock markings.
A transition t is enabled when m≥Pre[:,t] and m−Pre[:,t]+Post[:,t]≤capacity; its firing produces that new marking.A worked example
With one transition moving a token from place0 to place1, initial[1,0] and capacities[1,1], exactly two markings are reachable. Target[0,1] is reached in one firing and is a deadlock.
Good to know
1–6places,1–8transitions,nonnegative integer arcs and declared per-place capacities0–10; capacity semantics explicit. BFS with at most50000markings; no unrestricted unbounded-net negative reachability claim or covert state truncation.
Reference: TINA official marking reachability graph manual (opens in a new tab) ↗
Tokens make the state concrete
A Petri net has places containing nonnegative integer token counts and transitions that consume and produce tokens. A marking lists the count at every place. The same transition can be enabled at many different markings, so the state graph is constructed from the token rules rather than supplied directly as an arbitrary edge list.
This calculator uses an untimed net with explicit finite place capacities. Capacities are part of the model: a firing that would exceed a place capacity is disabled. They are not merely a convenient cutoff applied to an otherwise unrestricted net. A reachability conclusion for this capacity-bounded model should not be transferred to an unbounded interpretation with different legal firings.
Compare this with the Strongly connected components calculator for a directed graph. Construct marking transitions from pre/post incidence and integer tokens, then find exact reachable markings/deadlocks and a firing witness. This is not an already entered graph traversal or Boolean synchronous update map.
Read the incidence matrices by column
Each column represents one transition, while rows represent places. The pre matrix gives tokens consumed and the post matrix gives tokens produced. Their shapes must match. Enter the initial marking, capacity vector and target marking with one coordinate per place. Arc weights and markings are nonnegative integers, and the initial marking must already respect the capacities.
A zero pre entry means that transition does not require tokens from that place. A zero post entry means it produces none there. A transition can both consume and produce tokens at one place; a self-loop requirement is therefore not equivalent to deleting the same value from both matrices. Keep pre and post separate instead of supplying only their difference when enabling conditions matter.
Decide which transitions can fire
At a marking m, a transition is enabled only if every place has at least the required pre tokens. Subtract those tokens and add the post tokens to obtain a proposed successor. That successor must also respect every capacity. All these conditions are checked together; the sign of an incidence-matrix entry alone cannot decide whether a transition is enabled.
Transitions fire one at a time in the stated model. There are no clocks, priorities, inhibitor arcs or simultaneous-step semantics. If several transitions are enabled, each gives a possible outgoing edge in the marking graph. The calculator explores all such choices rather than selecting one schedule and treating its observed states as the entire reachable set.
Breadth first search supplies a witness
Starting at the initial marking, breadth-first search repeatedly generates every enabled successor. A visited set prevents repeated exploration of the same marking. Recording the transition and parent for each newly discovered state allows a target witness to be reconstructed. Because all firings count as one step, that first discovered target path has the smallest number of firings.
Finding a target proves reachability even before the whole graph is explored. Declaring a target unreachable requires the complete reachable-state search to finish. If the state cap interrupts exploration, a missing target remains unresolved. The total number of possible capacity-bounded markings is finite, but it can still exceed the calculator’s resource budget, so finiteness does not automatically imply a practical completed enumeration.
Follow the one-token example
The default pre column is[1,0] and the post column is[0,1]. Starting at[1,0], the transition can consume the token from place0 and produce one at place1. The resulting marking is[0,1], which respects both capacities. No other transition exists, and the same transition is now disabled because place0 is empty.
Thus the reachable set is exactly{[1,0],[0,1]}. Its size is two, the target[0,1] is reached after one firing, and[0,1] is a reachable deadlock. Total tokens remain one along this particular net, but token conservation is not automatic for arbitrary pre and post matrices. It follows here because every firing consumes and produces the same total number of tokens.
Deadlock and liveness are different
A deadlock marking has no enabled transition. A reachable deadlock proves that at least one execution can stop. It does not necessarily mean every execution eventually stops. Conversely, finding no deadlock after complete finite exploration rules out terminal markings, but it does not prove every transition will eventually fire under every scheduler.
Liveness, fairness and inevitability are separate temporal properties. This page reports reachable markings, their enabled transitions and deadlocks under the supplied capacity semantics. If it displays strongly connected components of the resulting graph, those components still need the correct temporal interpretation. A cycle permits repetition; it does not force a scheduler to follow that cycle or guarantee that all transitions participate.
Verify and reuse the graph carefully
Replay the reported target sequence from the original initial marking. At each step, check enabling against the pre column, calculate the successor exactly and verify capacities. Every graph edge should carry the transition that generated it. A completed reachable set must be closed under every enabled firing, which provides a useful independent validation condition.
The model bounds places, transitions, integer weights and reachable states. It is not an unrestricted coverability solver or an automatic boundedness proof for arbitrary untimed nets. In particular, a declared place capacity can suppress behavior that an unbounded net would allow. Preserve that assumption with the result whenever the marking graph is used to explain a workflow, protocol or resource system.
A few questions, answered
Are the capacities only search cutoffs?
No. They are model constraints: a transition producing too many tokens in a place is disabled.
Why keep both pre and post matrices?
Their difference describes token changes but loses consumption requirements needed to decide enabling.
Does one deadlock mean every execution deadlocks?
No. It proves a stopping marking is reachable, not that every possible execution must stop.
Can a cutoff prove the target unreachable?
No. Unreachability requires a completed search of the entire reachable marking graph.