简体   繁体   中英

Why I installed Networkx and cannot import or even find graphviz_layout?

I installed networkx by using pip, however I cannot use the example given because I cannot import graphviz_layout. Then I download networkx and unzip it by myself. Still I cannot find graphviz_layout in the folder. There is just layout.py. Does anybody knows why?

The function for graphviz_layout() is in the nx_agraph.py file: http://networkx.github.io/documentation/latest/_modules/networkx/drawing/nx_agraph.html#graphviz_layout

In order to use it in NetworkX you need to also install PyGraphviz https://pypi.python.org/pypi/pygraphviz

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM