pm4py.filtering.filter_ocel_cc_object#
- pm4py.filtering.filter_ocel_cc_object(ocel: OCEL, object_id: str, conn_comp: List[List[str]] | None = None, return_conn_comp: bool = False) OCEL | Tuple[OCEL, List[List[str]]] [source]#
Returns the connected component of the object-centric event log to which the specified object belongs.
- Parameters:
ocel (
OCEL
) – Object-centric event log.object_id (
str
) – Object identifier.conn_comp – (Optional) Precomputed connected components of the OCEL objects.
return_conn_comp (
bool
) – If True, returns the filtered OCEL along with the computed connected components.
- Returns:
Filtered OCEL, optionally with the list of connected components.
import pm4py ocel = pm4py.read_ocel('log.jsonocel') filtered_ocel = pm4py.filter_ocel_cc_object( ocel, 'order1' )