pm4py.objects.conversion.trie.converter module#
- class pm4py.objects.conversion.trie.converter.Variants(*values)[source]#
Bases:
Enum- TO_PETRI_NET = <module 'pm4py.objects.conversion.trie.variants.to_petri_net' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/objects/conversion/trie/variants/to_petri_net.py'>#
- pm4py.objects.conversion.trie.converter.apply(prefix_tree: Trie, variant=Variants.TO_PETRI_NET, parameters: Dict[Any, Any] | None = None) Tuple[PetriNet, Marking, Marking][source]#
Converts the prefix tree objects using the specified variant
- Parameters:
prefix_tree – Prefix tree
variant – Variant of the conversion: - Variants.TO_PETRI_NET => converts the prefix tree object to a Petri net
parameters – Optional parameters of the method.
- Returns:
Converted object
- Return type:
obj