pm4py.org.discover_handover_of_work_network#

pm4py.org.discover_handover_of_work_network(log: EventLog | DataFrame, beta=0, resource_key: str = 'org:resource', timestamp_key: str = 'time:timestamp', case_id_key: str = 'case:concept:name') SNA[source]#

Calculates the handover of work network of the event log.

The handover of work network is essentially the Directly-Follows Graph (DFG) of the event log, but using the resource as the nodes of the graph instead of activities. As such, resource information should be present in the event log.

Return type:

SNA

Parameters:
  • log – Event log or Pandas DataFrame.

  • beta (int) – Beta parameter for the Handover metric.

  • resource_key (str) – Attribute to be used for the resource.

  • timestamp_key (str) – Attribute to be used for the timestamp.

  • case_id_key (str) – Attribute to be used as case identifier.

import pm4py

metric = pm4py.discover_handover_of_work_network(
    dataframe,
    beta=0,
    resource_key='org:resource',
    timestamp_key='time:timestamp',
    case_id_key='case:concept:name'
)