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

layout algorithm directedness? #106

Open
gordonwoodhull opened this issue Jan 6, 2019 · 0 comments
Open

layout algorithm directedness? #106

gordonwoodhull opened this issue Jan 6, 2019 · 0 comments
Labels

Comments

@gordonwoodhull
Copy link
Contributor

In graphviz, the format of the file (whether the first line is digraph or graph) determines whether -> or -- arrows are allowed, and whether dir will default to none or normal.

This is neat but

  1. we normally deal with json, which makes no such distinction
  2. currently we don't have any graph-level attributes in json (although maybe we will someday)
  3. graphlib-dot supplies isDirected but we throw it out since we pretend graphviz is a special case of json (!)

I dunno, maybe this is misguided, but the proposal is that maybe directedness is a property of the layout algorithm, and we could default dir by reading a flag on the algorithm?

Anyway, right now simple-viewer gives inconsistent results depending whether you start in graphviz mode or not, and something should be done!

gordonwoodhull added a commit that referenced this issue Jan 7, 2019
excepting arrowhead/tail which is a bit more complicated, see #106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant