pm4py.vis.view_ocpn#
- pm4py.vis.view_ocpn(ocpn: Dict[str, Any], format: str = 'png', bgcolor: str = 'white', rankdir: str = 'LR', graph_title: str | None = None, variant_str: str = 'wo_decoration')[source]#
Visualizes the object-centric Petri net.
- Parameters:
ocpn – Object-centric Petri net
format (
str) – Format of the visualization (if ‘html’ is provided, GraphvizJS is used)bgcolor (
str) – Background color (default: white)rankdir (
str) – Graph direction (“LR” or “TB”)graph_title – Title of the visualization (if provided)
variant_str (
str) – Variant to be used (“wo_decoration” or “brachmann”)
import pm4py ocpn = pm4py.discover_oc_petri_net(ocel) pm4py.view_ocpn(ocpn, format='svg')