Skip to main content
Rust4PM

token_based_replay

process_mining::conformance::case_centric::token_based_replay

Functions in this Module(1)

apply_token_based_replay

conformance::case_centric::token_based_replaySource

Computes token-based replay for a Petri net that has unique labels and no silent transitions

Arguments
Import from .json, .pnml, .apnml
Import from .json, .xes, .xes.gz, or pass EventLog (converted automatically)
TokenBasedReplayResult

Result from the token-based replay computation

import r4pm

# Also: .pnml, .apnml
net = r4pm.import_item('AcceptingPetriNet', 'net.json')
# Also: .json, .xes.gz
event_log = r4pm.import_item('EventLogActivityProjection', 'log.xes')
res = r4pm.bindings.apply_token_based_replay(net, event_log)