i seem to have made some changes to the petrinet formalism
This commit is contained in:
parent
9883e09ac2
commit
5633bf17a9
7 changed files with 26 additions and 26 deletions
|
|
@ -35,7 +35,7 @@ def render_petri_net(od: ODAPI):
|
|||
for transition_name, _ in od.get_all_instances("PNTransition"):
|
||||
dot += f" {transition_name} [label=\"{transition_name}\\n\\n\\n\"];\n"
|
||||
dot += "}\n"
|
||||
for _, arc in od.get_all_instances("pn_arc"):
|
||||
for _, arc in od.get_all_instances("arc"):
|
||||
src_name = od.get_name(od.get_source(arc))
|
||||
tgt_name = od.get_name(od.get_target(arc))
|
||||
dot += f"{src_name} -> {tgt_name};"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue