pm4py.org.discover_working_together_network#

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

Calculates the working together network of the process. Two resource nodes are connected in the graph if the resources collaborate on an instance of the process.

Return type:

SNA

Parameters:
  • log – Event log or Pandas DataFrame.

  • 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_working_together_network(
    dataframe,
    resource_key='org:resource',
    timestamp_key='time:timestamp',
    case_id_key='case:concept:name'
)