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

Add engine attribute to Graph, and default to 'dot' layout #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abelsiqueira
Copy link

On #38, we noticed that some position-related attributes are not working (e.g., rankdir). Apparently, the code is using the layout "neato", and the layout that we want to use is "dot".

I've added a field to Graph to allow changing the engine. I don't know the details on GraphViz, so I am not sure how adequate the implementation is.
I also changed the default to "dot", but I can change it if desired.

I have created a test and an example on the README.

@moll-dev
Copy link

Hey! I just ran into this issue today. Did you happen to push your changes to a package repo?

@abelsiqueira
Copy link
Author

Hi @QuantumFractal, not to anything registered, but you can install my branch using

pkg> add https://github.com/abelsiqueira/GraphViz.jl#38-add-engine-attribute

@Keno
Copy link
Contributor

Keno commented Jun 9, 2024

It seems odd to make this a property of the graph itself, rather than an aspect of the display process, but GraphViz itself is somewhat blurry about this, so that's fine I guess.

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

Successfully merging this pull request may close these issues.

3 participants