networkx和igraph之间的接口 [英] Interface between networkx and igraph

查看:305
本文介绍了networkx和igraph之间的接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在networkx上工作了很长时间,并且通过最小的调整它一直很好地达到了我的目的,直到最近我开始研究社区检测.相比之下,igraph Python软件包似乎具有更广泛的社区检测方法实现(甚至与添加了Thomas Aynaud社区软件包的networkx相比).我只是想知道是否有任何现有的经过测试的API,可以将networkx图形轻松转换为igraph结构,因此我可以利用igraph在此领域提供的强大功能吗?

I've been working with networkx for quite some time now and it's been serving my purposes quite well with minimal tweaks until recently when I started looking into community detection. In comparison, the igraph Python package seems to have a much wider implementations of community detection methods (even compared to networkx with Thomas Aynaud's community package added on). I'm just wondering if there's any existing, tested API that would allow easy translation of a networkx graph into the igraph structure, so I can avail myself of the power igraph provides in this area?

非常感谢您的回答.

推荐答案

Networkx和python-igraph都支持多种读/写算法( python-igraph ).

Networkx and python-igraph both support a wide range of read/write algorithms (networkx, python-igraph).

至少有两种格式( GML 和pajek)在两者之间很常见我没有尝试过.

At least two formats (GML and pajek) appear to be common between the two, although I haven't tried this.

这篇关于networkx和igraph之间的接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆