pm4py.vis.view_object_graph#
- pm4py.vis.view_object_graph(ocel: OCEL, graph: Set[Tuple[str, str]], format: str = 'png', bgcolor: str = 'white', rankdir: str = 'LR')[source]#
Visualizes an object graph on the screen
- Parameters:
ocel (
OCEL
) – object-centric event loggraph – object graph
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)rankdir (
str
) – sets the direction of the graph (“LR” for left-to-right; “TB” for top-to-bottom)
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')