Skip to main content
Rust4PM

dfg

process_mining::discovery::object_centric::dfg

Functions in this Module(1)

get_dfg_of_object_type

discovery::object_centric::dfgSource

Get the directly-follows graph (DFG) for objects of the given object type.

Each entry is ((from_activity, to_activity), count), counting adjacent pairs in each object's timestamp-ordered activity trace. Sorted by count descending, ties broken by (from_activity, to_activity).

Arguments
Import from .json, .json.gz, .xml, .xml.gz, .ocel.csv, .ocel.csv.gz, .ocel.zip, .ocel-parquet.zip, .sqlite, .duckdb, .xes, .xes.gz, or pass OCEL or IndexLinkedOCEL (converted automatically)
String
import r4pm

# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
ocel = r4pm.import_item('SlimLinkedOCEL', 'ocel.xml')
res = r4pm.bindings.get_dfg_of_object_type(ocel, 'order')