pm4py.vis.view_object_graph#

pm4py.vis.view_object_graph(ocel: OCEL, graph: Set[Tuple[str, str]], format: str = 'png', bgcolor: str = 'white')[source]#

Visualizes an object graph on the screen

Parameters:
  • ocel (OCEL) – object-centric event log

  • graph – object graph

  • format (str) – format of the visualization (png, svg, …)

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

import pm4py

ocel = pm4py.read_ocel('trial.ocel')
obj_graph = pm4py.ocel_discover_objects_graph(ocel, graph_type='object_interaction')
pm4py.view_object_graph(ocel, obj_graph, format='svg')