All Functions
Browse all 103 available functions in the library.
Add artificial init/exit events to an OCEL
Align the empty trace to the given model
Compute alignment for a single trace (given as activity sequence).
Compute alignments for all variants from a pre-computed activity projection.
Compute fitness stats from alignment results
Discover a [`PetriNet`] using the Alpha+++ Process Discovery algorithm
Discover [`DirectlyFollowsGraph`] with default classifier
Construct an [`OCDirectlyFollowsGraph`] from an OCEL
Discover behavioral OC-DECLARE constraints from the given OCEL
Bump a stored handle's counter in place.
Drop every item in the registry: the `#[bind(state_mut)]` escape hatch, for a binding
Bump a stored handle and hand back a copy of it: a handle result stored through the write
The label of a stored handle, taken by shared reference.
A big-type result stored through the write guard, the last of the four insert sites.
Build a new handle and hand back its registry id.
Export the image of a [`DirectlyFollowsGraph`] as a PNG file
Export the image of a [`DirectlyFollowsGraph`] as a SVG file
Export the image of a [`PetriNet`] as a PNG file
Export the image of a [`PetriNet`] as a SVG file
Export the image of a [`ProcessTree`] as a PNG file
Export the image of a [`ProcessTree`] as a SVG file
Flatten an OCEL on a specific object type, resulting in a case-centric Event Log
Get the directly-follows graph (DFG) for objects of the given object type.
Get the directly-follows graph (DFG) for objects of the given object type.
Generate dotted chart data from an event log.
Aggregate event timestamps into a fixed number of bins, grouped by activity.
Get the total number of cases in the projection
Get the number of distinct trace variants in the projection
Get the activity trace of an object (i.e., the sequence of event types connected to the object, ordered by event timestamp)
Extract the attribute change history for a specific object.
Get the list of all activity names in the projection
Get the `n` most frequent process variants, sorted by frequency (descending)
Get all process variants, sorted by frequency (descending)
Get all activity-trace variants for objects of the given object type, with their occurrence counts
Get all activity-trace variants for objects of the given object type, with their occurrence counts
Convert an [`OCEL`] to an [`IndexLinkedOCEL`]
Add an E2O (event-to-object) relationship with the given qualifier.
Add an event and return its [`EventIndex`].
Add an event type with the given ordered attribute declarations.
Add a directed O2O (object-to-object) relationship from `from_obj` to `to_obj` with the given qualifier.
Add an object and return its [`ObjectIndex`].
Add an object type with the given ordered attribute declarations.
Reconstruct a full [`OCEL`] from a [`SlimLinkedOCEL`]. Can be expensive for large logs.
Conversion rate from `source_type` to `target_type` via O2O, restricted to targets touched by `activity`.
Conversion rate from `source_type` to `target_type` via O2O, restricted to targets touched by `activity`.
Remove all E2O relationships between the given event and object (across every qualifier).
Remove all O2O relationships from `from_obj` to `to_obj` (across every qualifier).
Count E2O relationships per `(event_type, object_type)` pair.
Count E2O relationships per `(event_type, object_type)` pair.
Get the E2O relationships of an event as `(qualifier, object_index)` pairs.
Get the reverse E2O relationships of an object (events relating to it) as `(qualifier, event_index)` pairs.
Get the value of an event attribute by name. `None` if the attribute does not exist.
Look up an event by its ID string. `None` if not found.
Get the ID string of an event. Panics if the index is out of bounds.
Get the timestamp of an event. Panics if the index is out of bounds.
Get the event type specification (name + attributes), or `None` if unknown.
Get the event type (activity) of an event. Panics if the index is out of bounds.
Get all declared event type names, in declaration order.
Get all event indices of the given event type. Empty if unknown.
Get the full [`OCELEvent`] (resolved type name, named attributes, string object IDs).
Get the full [`OCELObject`] (resolved type name, named time-indexed attributes, string object IDs).
Get the outgoing O2O relationships of an object as `(qualifier, object_index)` pairs.
Get the reverse O2O relationships of an object (objects with an O2O to it) as `(qualifier, object_index)` pairs.
Get the time-indexed history of an object attribute by name as `(timestamp, value)` pairs. Empty if absent.
Look up an object by its ID string. `None` if not found.
Get the ID string of an object. Panics if the index is out of bounds.
Get the object type specification (name + attributes), or `None` if unknown.
Get the object type of an object. Panics if the index is out of bounds.
Get all declared object type names, in declaration order.
Get all object indices of the given object type. Empty if unknown.
Create a new empty [`SlimLinkedOCEL`].
Per-event sojourn time.
Per-event sojourn time.
Per-event synchronization time and the delaying object.
Per-event synchronization time and the delaying object.
Convert an [`EventLog`] into an [`EventLogActivityProjection`]
Get the number of events in an [`OCEL`]
Get the number of objects in an [`OCEL`]
Returns the confidence conformance of an OC-DECLARE arc on the given OCEL
Compute statistics on object/event types in the OCEL
Find the concrete instance connections of a single (resolved) schema, with metrics and
Discover path schemas between the query types and score each by support / coverage /
Enumerate type-level path schemas between two types (or from one type), without any
Build the OCEL type graph (typed nodes with entity counts, plus relationship edges).
Project OC-DECLARE arcs onto a subset of activities, preserving constraints
Read an [`OCEL`] from a `DuckDB` database file in the consolidated schema, i.e. one written by
Read a [`SlimLinkedOCEL`] from a `DuckDB` database file in the consolidated schema, i.e. one
Reduce OC-DECLARE arcs based on lossless/lossy transitive reduction
Convert an [`OCEL`] to an [`SlimLinkedOCEL`]
Like [`stream_ocel_file_to_duckdb`] with explicit [`DuckDbImportOptions`].
This is a test function.
Write an in-memory OCEL into a fresh `DuckDB` database in the consolidated schema.
Write an in-memory Slim OCEL into a fresh `DuckDB` database in the consolidated schema.