Comment 1 for bug 739954

Tamás Nepusz (ntamas) wrote :

What OS are you using and how did you install igraph? The reason why I am asking is because it works for me with igraph 0.5.4 (compiled fresh from the source code):

tamas@keszeg:~/bzr/igraph/0.5-main/build $ igraph
No configuration file, using defaults
igraph 0.5.4 running inside Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
Type "copyright", "credits" or "license" for more information.

IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: g=Graph([(0,1), (0,2), (2,3), (3,4), (4,2), (2,5), (5,0), (6,3), (5,6)])
In [2]: g.eigenvector_centrality()
Out[2]:
[0.71119954501079996,
 0.24860112203602616,
 1.0,
 0.75139887796397364,
 0.6122047310756773,
 0.78600269906125164,
 0.53740157702522562]