What could cause NetworkX & PyGraphViz to work fine alone but not together?

There is a small bug in the draw_graphviz function in networkx-1.11 triggered by the change that the graphviz drawing tools are no longer imported into the top level namespace of networkx. The following is a workaround In [1]: import networkx as nx In [2]: G = nx.complete_graph(5) In [3]: from networkx.drawing.nx_agraph import graphviz_layout In [4]: … Read more

Installing pygraphviz on Windows 10 64-bit, Python 3.6

Updated the repo: [GitHub]: CristiFati/Prebuilt-Binaries – (master) Prebuilt-Binaries/PyGraphviz/v1.5: Using official Graphviz 2.42.2 sources .whls (win_amd64, win32) for currently supported Python versions Newer versions might be added (check one level up) For Python 2.7, they are already built: [UCI.LFD]: Unofficial Windows Binaries for Python Extension Packages – PyGraphviz, an interface to the Graphviz graph layout and … Read more

Can one get hierarchical graphs from networkx with python 3?

[scroll down a bit to see what kind of output the code produces] edit (7 Nov 2019) I’ve put a more refined version of this into a package I’ve been writing: https://epidemicsonnetworks.readthedocs.io/en/latest/_modules/EoN/auxiliary.html#hierarchy_pos. The main difference between the code here and the version there is that the code here gives all children of a given node … Read more