In this code I implement Petri Network by python language
This network included:
- P: places
- T: transitions
- F: is a set of (directed) arcs (or flow relations)
- In: set of in_arc of transition
- Out: set of out_arc of transition
To run this code, you should read the instruction in file run.py
python run.py
Reference: https://en.wikipedia.org/wiki/Petri_net