powered by
Function to create a petri net by specificing a set of places, transitions, flows and a marking.
create_PN(places, transitions, flows, marking)
A vector of unique places.
A vector of unique transitions.
A data.frame of flows, with columns named "from" and "to".
The names of the places to be marked.
# NOT RUN { create_PN("place_1", "transition_1", data.frame(from = "place_1",to = "transition_1"), marking = "place_1") # }
Run the code above in your browser using DataLab