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 (if html is provided, GraphvizJS is used to render the visualization in an HTML page)bgcolor (
str
) – Background color of the visualization (default: white)
import pm4py ocpn = pm4py.discover_oc_petri_net(ocel) pm4py.view_ocpn(ocpn, format='svg')