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

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

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.dfg.algorithm.Variants(value)[source]

Bases: enum.Enum

An enumeration.

CLASSIC = <module 'pm4py.algo.conformance.alignments.dfg.variants.classic' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\conformance\\alignments\\dfg\\variants\\classic.py'>
pm4py.algo.conformance.alignments.dfg.algorithm.apply(obj: Union[pm4py.objects.log.obj.EventLog, pandas.core.frame.DataFrame, pm4py.objects.log.obj.Trace], dfg: Dict[Tuple[str, str], int], sa: Dict[str, int], ea: Dict[str, int], variant=Variants.CLASSIC, parameters: Optional[Dict[Any, Any]] = None) Union[Dict[str, Any], List[Dict[str, Any]]][source]

Applies the alignment algorithm provided a log/trace object, and a connected DFG

Parameters
• obj – Event log / Trace

• dfgConnected directly-Follows Graph

• sa – Start activities

• ea – End activities

• variant – Variant of the DFG alignments to be used. Possible values: - Variants.CLASSIC

• parameters – Variant-specific parameters.

Returns

Result of the alignment

Return type

ali