Several auxilliary functions for Petri Net objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | n_places(PN)
n_transitions(PN)
n_flows(PN)
n_nodes(PN)
nodes(PN)
rename_transitions(PN, .f, ...)
rename_places(PN, .f, ...)
add_places(PN, .p)
add_transitions(PN, .t)
add_flows(PN, .flows)
|
PN |
A petri net |
.f |
A function name to apply for renaming |
... |
Additional arguments |
.p |
A character vector of places |
.t |
A character vector of transitions |
.flows |
A data.frame with a to and from column |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.