# pm4py.algo.conformance.alignments.process_tree package

## pm4py.algo.conformance.alignments.process_tree.algorithm module

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.algo.conformance.alignments.process_tree.algorithm.Variants(value)[source]

Bases: enum.Enum

An enumeration.

APPROXIMATED_MATRIX_LP = <module 'pm4py.algo.conformance.alignments.process_tree.variants.approximated.matrix_lp' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\conformance\\alignments\\process_tree\\variants\\approximated\\matrix_lp.py'>
APPROXIMATED_ORIGINAL = <module 'pm4py.algo.conformance.alignments.process_tree.variants.approximated.original' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\conformance\\alignments\\process_tree\\variants\\approximated\\original.py'>
SEARCH_GRAPH_PT = <module 'pm4py.algo.conformance.alignments.process_tree.variants.search_graph_pt' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\conformance\\alignments\\process_tree\\variants\\search_graph_pt.py'>
pm4py.algo.conformance.alignments.process_tree.algorithm.apply(obj: Union[pm4py.objects.log.obj.EventLog, pm4py.objects.log.obj.Trace, pandas.core.frame.DataFrame], pt: pm4py.objects.process_tree.obj.ProcessTree, variant=Variants.SEARCH_GRAPH_PT, parameters: Optional[Dict[Any, Any]] = None) Union[Dict[str, Any], List[Dict[str, Any]]][source]

Align an event log or a trace with a process tree

Parameters
• obj – Log / Trace

• pt – Process tree

• variant – Variant

• parameters – Variant-specific parameters

Returns

Alignments

Return type

alignments

## Module contents

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.