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

Investigate networkx compatibility with graphviz Python library over pygraphviz #22

Open
matthewfeickert opened this issue Dec 16, 2021 · 1 comment

Comments

@matthewfeickert
Copy link
Member

While trying to get graphviz (the C library) installed in a useful manner on lxplus8 (c.f. recast-hep/recast-atlas#82) I've found that trying to get a custom built and installed (e.g. from source) graphviz library to work with an install of pygraphviz from PyPI is quite difficult to get right.


Note: pygraphviz is required in yadage[viz]

        "viz": [
            # manually adding extras of adage[extra] because of pip
            # issue https://github.com/pypa/pip/issues/3189
            "pydot2",
            "pygraphviz",
            "pydotplus",
        ],

because adage[viz] requires it

"viz": ["pydot", "pygraphviz", "pydotplus"],


However, what is surprisingly easy to get working is the Python library graphviz, which has wheels, appears to be very developed, and is basically good to go as long as

the directory containing the dot executable is on your systems' PATH

It is unclear if networkx and the Python graphviz can work together, but if they can this seems to be a much better way to go than pygraphviz.

@matthewfeickert
Copy link
Member Author

Though seems like this is maybe not possible, given xflr6/graphviz#50.

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