to_pydot#

to_pydot(N)[源代码]#

从networkx图n返回一个pydot图。

参数
N网络X图表

使用NetworkX创建的图表

实例

>>> K5 = nx.complete_graph(5)
>>> P = nx.nx_pydot.to_pydot(K5)