igraph-help
[Top][All Lists]
Advanced

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

[igraph] betweeness centrality


From: Matthew Galati
Subject: [igraph] betweeness centrality
Date: Tue, 19 Nov 2013 13:12:17 -0500

It doesn't look like betweenness centrality normalization is working.

The result seems the same with and without normalization. I expected the solution to be 0,0,1 (after normalization by (n-1)*(n-2)).


> E(g)
Edge sequence:
          
[1] 0 -> 2
[2] 2 -> 0
[3] 1 -> 2
[4] 2 -> 1
> E(g)$weight
[1] 0.3 0.2 0.1 0.3
> betweenness(g,v=V(g),directed=TRUE)
0 1 2 
0 0 2 
> betweenness(g,v=V(g),directed=TRUE,normalized=TRUE)
0 1 2 
0 0 2 


reply via email to

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