pm4py.visualization.trie package

Submodules

pm4py.visualization.trie.visualizer module

class pm4py.visualization.trie.visualizer.Variants(value)[source]

Bases: enum.Enum

An enumeration.

CLASSIC = <module 'pm4py.visualization.trie.variants.classic' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\visualization\\trie\\variants\\classic.py'>
pm4py.visualization.trie.visualizer.apply(trie: pm4py.objects.trie.obj.Trie, variant=<Variants.CLASSIC: <module 'pm4py.visualization.trie.variants.classic' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\visualization\\trie\\variants\\classic.py'>>, parameters: Optional[Dict[str, Any]] = None) → graphviz.dot.Graph[source]

Represents the trie

Parameters
  • trie – Trie

  • variant – Variant of the visualization, possible values: - Variants.CLASSIC => graphviz visualization

  • parameters – Parameters, including: - Parameters.FORMAT: the format of the visualization

Returns

Representation of the trie

Return type

graph

pm4py.visualization.trie.visualizer.matplotlib_view(gviz: graphviz.dot.Graph)[source]

Views the diagram using Matplotlib

Parameters

gviz – Graphviz

pm4py.visualization.trie.visualizer.save(gviz: graphviz.dot.Graph, output_file_path: str)[source]

Save the diagram

Parameters
  • gviz – GraphViz diagram

  • output_file_path – Path where the GraphViz output should be saved

pm4py.visualization.trie.visualizer.view(gviz: graphviz.dot.Graph)[source]

View the diagram

Parameters

gviz – GraphViz diagram

Module contents