简体   繁体   English

如何将 Visio 格式的网络图转换为 networkx 图?

[英]How to convert network diagram in Visio format to a a networkx graph?

I have a network diagram that is sketched in Visio .我有一个在Visio中绘制的网络图。 I would like to use it as an input for the networkx graph from node2vec python package.我想将它用作来自node2vec python package 的networkx图的输入。 The documentation says that there is a function called to_networkx_graph() that takes, as its input, the following types of data:该文档说有一个名为to_networkx_graph()的 function 将以下类型的数据作为其输入:

"any NetworkX graph dict-of-dicts dict-of-lists container (eg set, list, tuple) of edges iterator (eg itertools.chain) that produces edges generator of edges Pandas DataFrame (row per edge) numpy matrix numpy ndarray scipy sparse matrix pygraphviz agraph" "any NetworkX graph dict-of-dicts dict-of-lists container (eg set, list, tuple) of edges iterator (eg itertools.chain) that produces edges generator of edges Pandas DataFrame (row per edge) numpy matrix numpy ndarray scipy稀疏矩阵 pygraphviz agraph"

But, still, not mentioning other formats like Visio, pdf, odg, PowerPoint, etc.但是,仍然没有提及其他格式,如 Visio、pdf、odg、PowerPoint 等。

So, how to proceed?那么,如何进行呢?

I think you need to create some data in the format referred to in the documentation, not just a network diagram.我认为您需要以文档中提到的格式创建一些数据,而不仅仅是网络图。 A Visio diagram will not do the job and I know of no way to do a conversion. Visio 图表无法完成这项工作,我不知道如何进行转换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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