pm4py.visualization.heuristics_net package

Submodules

pm4py.visualization.heuristics_net.visualizer 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.visualization.heuristics_net.visualizer.Variants[source]

Bases: enum.Enum

An enumeration.

PYDOTPLUS = <module 'pm4py.visualization.heuristics_net.variants.pydotplus_vis' from '/home/docs/checkouts/readthedocs.org/user_builds/pm4py-source/checkouts/stable/pm4py/visualization/heuristics_net/variants/pydotplus_vis.py'>
pm4py.visualization.heuristics_net.visualizer.apply(heu_net: pm4py.objects.heuristics_net.obj.HeuristicsNet, parameters: Optional[Dict[Any, Any]] = None, variant=<Variants.PYDOTPLUS: <module 'pm4py.visualization.heuristics_net.variants.pydotplus_vis' from '/home/docs/checkouts/readthedocs.org/user_builds/pm4py-source/checkouts/stable/pm4py/visualization/heuristics_net/variants/pydotplus_vis.py'>>) → str[source]

Gets a representation of an Heuristics Net

Parameters:
  • heu_net – Heuristics net

  • parameters

    Possible parameters of the algorithm, including:
    • Parameters.FORMAT
  • variant

    Variant of the algorithm to use:
    • Variants.PYDOTPLUS
Returns:

Representation of the Heuristics Net

Return type:

gviz

pm4py.visualization.heuristics_net.visualizer.get_graph(heu_net: pm4py.objects.heuristics_net.obj.HeuristicsNet, parameters: Optional[Dict[Any, Any]] = None, variant=<Variants.PYDOTPLUS: <module 'pm4py.visualization.heuristics_net.variants.pydotplus_vis' from '/home/docs/checkouts/readthedocs.org/user_builds/pm4py-source/checkouts/stable/pm4py/visualization/heuristics_net/variants/pydotplus_vis.py'>>) → pydotplus.graphviz.Dot[source]

Gets a representation of an Heuristics Net

Parameters:
  • heu_net – Heuristics net

  • parameters

    Possible parameters of the algorithm, including:
    • Parameters.FORMAT
  • variant

    Variant of the algorithm to use:
    • Variants.PYDOTPLUS
Returns:

Pydotplus graph

Return type:

graph

pm4py.visualization.heuristics_net.visualizer.matplotlib_view(figure)[source]

Views the figure using Matplotlib

Parameters:figure – Figure
pm4py.visualization.heuristics_net.visualizer.save(figure, output_file_path)[source]

Save a figure that has been rendered

Parameters:
  • figure – figure
  • output_file_path – Path where the figure should be saved
pm4py.visualization.heuristics_net.visualizer.serialize(figure: tempfile._TemporaryFileWrapper) → bytes[source]

Serialize a figure that has been rendered

Parameters:figure – figure
pm4py.visualization.heuristics_net.visualizer.view(figure)[source]

View on the screen a figure that has been rendered

Parameters:figure – figure

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/>.