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).
SlimLinkedOCELrequired
Stringrequired
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')

process_mining/src/discovery/object_centric/dfg.rs:19