igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] how to add disconnected nodes to a graph?


From: Tamás Nepusz
Subject: Re: [igraph] how to add disconnected nodes to a graph?
Date: Fri, 6 Dec 2013 22:46:13 +0100

> If I am computing the betweenness of a vertex that doesn't connect to any 
> other node. Shouldn't the betweenness be 0?

Yes, it should. It seems to be the case in a small example that I constructed 
now in IPython:

In [1]: g=Graph.Formula("A--B--C--D--A, E, F")
In [2]: g.betweenness()

Out[2]: [0.5, 0.5, 0.5, 0.5, 0.0, 0.0]

So if you are getting non-zero values for isolated nodes then this does not 
seem right.

T.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]