pm4py.convert.convert_petri_net_to_networkx# pm4py.convert.convert_petri_net_to_networkx(net: PetriNet, im: Marking, fm: Marking) → DiGraph[source]# Converts a Petri net to a NetworkX DiGraph. Each place and transition is corresponding to a node in the graph. Parameters: net (PetriNet) – Petri net im (Marking) – initial marking fm (Marking) – final marking Return type: nx.DiGraph