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: Ahmed Gmail
Subject: Re: [igraph] how to add disconnected nodes to a graph?
Date: Fri, 6 Dec 2013 17:09:26 -0500

I misspoke, I meant closeness 

I will run your example when I get home and see what I am getting.

Thanks so much!

-Ahmed 

Sent from my iPhone

On Dec 6, 2013, at 4:46 PM, Tamás Nepusz <address@hidden> wrote:

>> 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]