Reachability Set in a Petri Net

The reachability set of a Petri net represents all the markings that can be reached from the initial marking M0 through a finite sequence of transitions. $$ R(N,M_0) $$

A Practical Example

Let's look at a simple Petri net with a finite reachability graph.

reachability graph of a Petri net

In this example, the markings are defined as follows:

$$ M_0 = [1,1,0] \\ M_1 = [1,0,1] \\ M_2 = [2,0,0] \\ M_3 = [0,2,0] \\ M_4 = [0,1,1] \\ M_5 = [0,0,2] $$

Starting from the initial marking M0, the reachability set R includes all the markings that the system can evolve into:

$$ R(N,M_0) = \{ M_1, M_2, M_3, M_4, M_5 \} $$

How to Read the Reachability Graph

If the reachability set is finite, we can make several useful observations about the structure and behavior of the Petri net.

  • Every reachable marking M corresponds to a node in the reachability graph, and vice versa. In other words, each node represents a possible state of the system. $$ M \in R(N,M_0) \Leftrightarrow \text{M is a node in the graph} $$
  • Whenever a marking M belongs to R(N,M0), there exists at least one sequence of transitions σ=t1·t2···tn that connects M0 to M. This sequence forms a directed path in the reachability graph and is part of the net's language L(N,M).

    Example. The node M5 belongs to the reachability set, meaning there is at least one directed path from M0 to M5. For instance, the sequence σ=t1·t2·t2 connects M0 to M5.
    reachability path from M0 to M5 in a Petri net
    Multiple paths may exist between the same two markings (for example σ=t2·t1·t2). If the graph contains cycles, the number of possible paths can even become infinite.

  • If a marking M' is reachable from another marking M, and M is part of the reachability set R(N,M0), then M' also belongs to the same set. This relationship ensures that every reachable marking is connected through at least one valid sequence of transitions.

    Example. The marking M2 can be reached from M5 via the transition sequence σ=t3·t3, which defines a directed path from M5 to M2.
    reachability path from M5 to M2 in a Petri net

  • Whenever a transition t is enabled by a marking M∈R(N,M0), there will be an outgoing arc from node M labeled with t in the graph.

    Example. In this Petri net, the marking M1=[1,0,1] enables transitions t1 and t3. In the reachability graph, the node M1=[1,0,1] therefore has two outgoing arcs labeled t1 and t3.
    enabled transitions t1 and t3 from node M1 in the reachability graph

In this way, the reachability graph provides a clear and visual representation of all possible states and transitions in the system, making it an essential tool for analyzing the behavior of a Petri net.

 

 


 

Segnalami un errore, un refuso o un suggerimento per migliorare gli appunti

FacebookTwitterLinkedinLinkedin
knowledge base

Petri Net