pm4py.vis.save_vis_sna#

pm4py.vis.save_vis_sna(sna_metric: SNA, file_path: str, variant_str: str | None = None, **kwargs)[source]#

Saves the visualization of a SNA metric in a .html file

Parameters:
  • sna_metric (SNA) – Values of the metric

  • file_path (str) – Destination path

  • variant_str – variant to be used (default: pyvis)

import pm4py

metric = pm4py.discover_subcontracting_network(dataframe, resource_key='org:resource', timestamp_key='time:timestamp', case_id_key='case:concept:name')
pm4py.save_vis_sna(metric, 'sna.png')