pm4py.vis.view_ocpn#

pm4py.vis.view_ocpn(ocpn: Dict[str, Any], format: str = 'png', bgcolor: str = 'white')[source]#

Visualizes on the screen the object-centric Petri net

Parameters:
  • ocpn – Object-centric Petri net

  • format (str) – Format of the visualization

  • bgcolor (str) – Background color of the visualization (default: white)

import pm4py

ocpn = pm4py.discover_oc_petri_net(ocel)
pm4py.view_ocpn(ocpn, format='svg')