Testing for python3-networkx install as shown above was successful:
root@b1:~# python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import networkx
>>> from networkx.drawing.nx_pydot import write_dot
>>> write_dot(networkx.Graph(), "/tmp/null")
>>> quit()
And testing for python-networkx install as shown above was successful:
root@b1:~# python
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import networkx
>>> from networkx.drawing.nx_pydot import write_dot
>>> write_dot(networkx.Graph(), "/tmp/null")
>>> quit()
Testing for python3-networkx install as shown above was successful:
root@b1:~# python3 drawing. nx_pydot import write_dot networkx. Graph() , "/tmp/null")
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import networkx
>>> from networkx.
>>> write_dot(
>>> quit()
And testing for python-networkx install as shown above was successful:
root@b1:~# python drawing. nx_pydot import write_dot networkx. Graph() , "/tmp/null")
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import networkx
>>> from networkx.
>>> write_dot(
>>> quit()