pm4py.convert#

The pm4py.convert module contains the cross-conversions implemented in pm4py

Functions

convert_log_to_networkx(log[, include_df, ...])

Converts an event log to a NetworkX DiGraph object.

convert_log_to_ocel(log[, activity_column, ...])

Converts an event log to an object-centric event log (OCEL) with one or more object types.

convert_log_to_time_intervals(log[, ...])

Extracts a list of time intervals from an event log.

convert_ocel_to_networkx(ocel[, variant])

Converts an OCEL to a NetworkX DiGraph object.

convert_petri_net_to_networkx(net, im, fm)

Converts a Petri net to a NetworkX DiGraph.

convert_petri_net_type(net, im, fm[, type])

Changes the internal type of a Petri net.

convert_to_bpmn(*args)

Converts an object to a BPMN diagram.

convert_to_dataframe(obj, **kwargs)

Converts a log object (EventStream or EventLog) to a Pandas DataFrame.

convert_to_event_log(obj[, case_id_key])

Converts a DataFrame or EventStream object to an event log object.

convert_to_event_stream(obj[, case_id_key])

Converts a log object or DataFrame to an event stream.

convert_to_petri_net(*args)

Converts an input model to an (accepting) Petri net.

convert_to_process_tree(*args)

Converts an input model to a process tree.

convert_to_reachability_graph(*args)

Converts an input model to a reachability graph (transition system).