get_dfg_of_object_type
discovery::object_centric::dfgSourceGet 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')