pm4py.vis.save_vis_heuristics_net#

pm4py.vis.save_vis_heuristics_net(heu_net: HeuristicsNet, file_path: str, bgcolor: str = 'white', graph_title: str | None = None, **kwargs)[source]#

Saves the visualization of a heuristics net.

Parameters:
  • heu_net (HeuristicsNet) – Heuristics net

  • file_path (str) – Destination path

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

  • graph_title – Sets the title of the visualization (if provided)

import pm4py

heu_net = pm4py.discover_heuristics_net(dataframe, activity_key='concept:name', case_id_key='case:concept:name', timestamp_key='time:timestamp')
pm4py.save_vis_heuristics_net(heu_net, 'heu.png')