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

Use color to distinguish morphisms of Petri nets #170

Open
slwu89 opened this issue Mar 12, 2024 · 2 comments
Open

Use color to distinguish morphisms of Petri nets #170

slwu89 opened this issue Mar 12, 2024 · 2 comments

Comments

@slwu89
Copy link
Member

slwu89 commented Mar 12, 2024

When looking at morphisms $\phi: P \to P_{type}$ its often the case that $P_{type}$ will only have a small number of transitions and places. In that case, it would be nice to use color to visualize the data of the morphism, rather than edges, which do rather strange things with the graph placement algorithm and get somewhat unreadable for even moderately sized petri nets (see ex from docs):

plot_37

@slwu89
Copy link
Member Author

slwu89 commented Mar 12, 2024

Also, in large PNs it becomes rather hard to see what is going on. I wonder if adding invisible edges (like is done to ease bipartite graph viz in Catlab) between transitions of the same type in the domain PN would help the graph placement algorithm produce more readable graphs?

I also am not sure if graphviz provides a way to put strict bounds on the ratio of size between the largest and smallest shapes used to draw nodes, for example. In the above plot, the type Petri net is almost indistinguishable.

@slwu89
Copy link
Member Author

slwu89 commented Apr 1, 2024

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

No branches or pull requests

1 participant