Skip to content

A quick implementation of a Petri net runner in python

License

Notifications You must be signed in to change notification settings

vzhirnov/petri-net

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Petri nets in python

A quick implementation of a Petri net runner in python.

Run with python 2 or 3, for the example coded up in in __main__, via

python petri_net.py --firings 10 --marking 1 2 3 2

Modeling approach

  • define Petri nets in terms of their transactions
  • define transactions in terms of the actions of their arcs
  • define arcs in terms with their action on their in- or outgoing place
  • define places as basic containers

Documentation

https://youtu.be/VW0RAonW8Aw

References:

About

A quick implementation of a Petri net runner in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%