We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently rankdir doesn't get attached to the graph object in graphlib-dot, but it does with graphviz:
digraph { graph [rankdir=LR]; X -> Y; Y -> X; Y -> Z; Z -> Y; }
The text was updated successfully, but these errors were encountered:
This doesn't seem to work for any graph attributes.
Sorry, something went wrong.
In https://github.com/dagrejs/graphlib-dot/blob/v0.6.4/lib/build-graph.js#L11, a missing graph: {} object causes the data to be lost in handleAttrStmt. However, I'm not sure how to merge the data from defaultStack into g.graph(), especially when it comes to subgraphs.
graph: {}
defaultStack
g.graph()
A workaround could be to use
digraph { rankdir=LR; X -> Y; Y -> X; Y -> Z; Z -> Y; }
(demo), which is also used in some of the graphviz examples.
Another workaround is to put quotes around the names:
digraph { "graph" [rankdir=LR] }
becomes
digraph { graph [rankdir=LR] }
This works for node and edge defaults too.
No branches or pull requests
Currently rankdir doesn't get attached to the graph object in graphlib-dot, but it does with graphviz:
The text was updated successfully, but these errors were encountered: