pm4py.vis.view_heuristics_net#
- pm4py.vis.view_heuristics_net(heu_net: HeuristicsNet, format: str = 'png', bgcolor: str = 'white', graph_title: str | None = None)[source]#
Views a heuristics net.
- Parameters:
heu_net (
HeuristicsNet) – Heuristics netformat (
str) – Format of the visualizationbgcolor (
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.view_heuristics_net(heu_net, format='svg')