您的位置:首页 > 编程语言 > Python开发

installation of igraph for python2.7

2011-09-25 13:35 621 查看
库功能:
Python interface to the igraph high performance graph library, primarily aimed at complex network research and analysis.

1.安装
下载地址

http://igraph.sourceforge.net/download.html >>> import igraph.test
>>> igraph.test.test()

测试安装成功

2.Graph plotting in igraph on Windows
http://hal.elte.hu/~nepusz/development/igraph/tutorial/install.html先安装pycairo

然后还有几个相关的dll, http://alex.matan.ca/2009/11/21/cairo-integration-with-wxpython-installation-of-python-wxpython-pycairo-and-cairo-2-d-graphics-library-on-windows-xp/
分别下载:libcairo-2.dll、libpng13.dll、zlib1.dll;然后复制到环境变量path中包含的路径中
3. launch Python again and check if it worked:
>>> from igraph import *
>>> g = Graph.Famous("petersen")
>>> plot(g)

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: