pm4py / pm4py-core

Public repository for the PM4Py (Process Mining for Python) project.
https://pm4py.fit.fraunhofer.de
GNU General Public License v3.0
722 stars 286 forks source link

DOT serialization for the heuristic net #378

Closed aditya11ad closed 1 year ago

aditya11ad commented 1 year ago

for petri nets this is working perfect for generating DOT serialization :

pm4py.visualization.common.gview.serialize_dot(gviz)

Now how to get DOT serialization for this heuristic net :

heu_net = heuristics_miner.apply_heu(log)
h_gviz = hn_visualizer.apply(heu_net)

------code part here------.serialize_dot(h_gviz)

fit-alessandro-berti commented 1 year ago

Dear @aditya11ad

The heuristics net visualization is not based on Graphviz therefore the DOT cannot be obtained

aditya11ad commented 1 year ago

plz guide me, how can i serialize this kind of net: output

fit-alessandro-berti commented 1 year ago

If you want to encode the figure: save it in SVG, send the XML content of the SVG to the frontend and put the code in a DIV