The directed graph of networkx can only be used to distinguish between two edges between two points by arrows, but when I reproduce the snake thesis, I need to draw two different sections between two intersections, and finally choose Pygraphviz
Directly through the Anaconda open the corresponding terminal, pip install Pygraphviz, has been error, prompted to find a file under Graphviz, resulting in the installation of Pygraphviz import error, so I installed Graphviz, Is installed through the brew, Online said the official website version may be too old
After installing Graphviz, view the corresponding installation path via brew info Graphviz.
Download Pygraphgiz installation package (Https://github.com/pygraphviz/pygraphviz), unzip, terminal to the corresponding folder, enter the following command to install success: sudo python setup.py Install--include-path=/usr/local/cellar/graphviz/2.40.1/include--library-path=/usr/local/cellar/graphviz/ 2.40.1/lib
Reference article: https://www.douban.com/note/535451318/
MAC Install Pygraphviz not find header file