Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide possibility to represent the Petri net in Graph Viz with an horizontal layout instead of vertical #37

Closed
Javert899 opened this issue Jan 23, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Javert899
Copy link
Contributor

As in title, expecially in publishing, it would be nice to have the option to output the Petri net in an horizontal way instead of vertical way.

@Javert899 Javert899 added the enhancement New feature or request label Jan 23, 2019
@Javert899
Copy link
Contributor Author

The possibility to set the horizontal layout on Petri net representations has been provided using the pn_vis_factory.RANKDIR_LR parameter, in the 'develop' branch.

The following example code could be used:

from pm4py.objects.log.importer.xes import factory as xes_importer
from pm4py.algo.discovery.inductive import factory as inductive_miner
from pm4py.visualization.petrinet import factory as pn_vis_factory

log = xes_importer.apply("C:\running-example.xes")
net, im, fm = inductive_miner.apply(log)
gviz = pn_vis_factory.apply(net, im, fm, parameters={pn_vis_factory.RANKDIR_LR: True})
pn_vis_factory.view(gviz)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants