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 python bindings to graphviz to generate dag output #30

Open
arporter opened this issue Apr 27, 2017 · 1 comment
Open

Use python bindings to graphviz to generate dag output #30

arporter opened this issue Apr 27, 2017 · 1 comment
Assignees

Comments

@arporter
Copy link
Owner

arporter commented Apr 27, 2017

Currently Habakkuk contains code to generate a dot-format file for use with graphviz. However, graphviz has an eponomously-titled python package and it would be better if we used that. We can probably make it optional so as to avoid having a mandatory dependence on graphviz (i.e. habakkuk is still useful, even if graphviz is not installed).

@arporter
Copy link
Owner Author

Related to this, my manually-generated dot-format output contains duplication (both of nodes and of edges). e.g. If I construct a dag like so:

dag = dag_from_strings(["a = b * c", "d = b/c", "e = d * b"])

then the resulting dot file contains:

node139895363613456 [label="b (w=0)", color="black", shape="ellipse", style="filled", 
                     fillcolor="grey"]
node139895363613456 -> {
 node139895363615632 node139895361500048 node139895361499984}

twice!

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