You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys,
first of all, big up this library! It's really neat.
Currently I am using pm4py to build a PetriNet from a custom graph-dictionary and simulate it to create event logs.
I am visualizing it using gviz = pn_visualizer.apply(net, initial_marking) and pn_visualizer.view(gviz), where pn_visualizer is obtained by calling from pm4py.visualization.petri_net import visualizer.
Unfortunately, my petrinet from the graph-dictionary has probabilities instead of weights for the arcs, so i kind of refactored your code a bit to suit my needs. However, the pn_visualizer seems to only print labels on arcs when the weight is bigger than "1". Since my probabilities are 1 or below, they are not visualized.
Is there any way to tell the function to also show arc-weights as labels which are below one?
Or is there any other way to achieve this?
Any help is appreciated!
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hey guys,
first of all, big up this library! It's really neat.
Currently I am using pm4py to build a PetriNet from a custom graph-dictionary and simulate it to create event logs.
I am visualizing it using
gviz = pn_visualizer.apply(net, initial_marking)
andpn_visualizer.view(gviz)
, wherepn_visualizer
is obtained by callingfrom pm4py.visualization.petri_net import visualizer
.Unfortunately, my petrinet from the graph-dictionary has probabilities instead of weights for the arcs, so i kind of refactored your code a bit to suit my needs. However, the
pn_visualizer
seems to only print labels on arcs when the weight is bigger than "1". Since my probabilities are 1 or below, they are not visualized.Is there any way to tell the function to also show arc-weights as labels which are below one?
Or is there any other way to achieve this?
Any help is appreciated!
Thanks in advance
The text was updated successfully, but these errors were encountered: