pm4py.vis.save_vis_object_graph#
- pm4py.vis.save_vis_object_graph(ocel: OCEL, graph: Set[Tuple[str, str]], file_path: str, bgcolor: str = 'white', rankdir: str = 'LR', graph_title: str | None = None, **kwargs)[source]#
Saves the visualization of an object graph.
- Parameters:
ocel (
OCEL) – Object-centric event loggraph – Object graph
file_path (
str) – Destination pathbgcolor (
str) – Background color (default: white)rankdir (
str) – Graph direction (“LR” or “TB”)graph_title – Title of the visualization (if provided)
import pm4py ocel = pm4py.read_ocel('trial.ocel') obj_graph = pm4py.ocel_discover_objects_graph(ocel, graph_type='object_interaction') pm4py.save_vis_object_graph(ocel, obj_graph, 'trial.pdf')