Skip to content

Investigate networkx compatibility with graphviz Python library over pygraphviz #22

@matthewfeickert

Description

@matthewfeickert

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions