igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] weighted centralities


From: Gábor Csárdi
Subject: Re: [igraph] weighted centralities
Date: Fri, 21 May 2010 15:14:36 +0200

On Fri, May 21, 2010 at 2:52 PM, hamaina rachid <address@hidden> wrote:
Thank you Gabor.
I get the weighted closeness centrality but the betweenness one is still unweighted.

Why do you think this? This is what I get:

> g <- graph.ring(10)
> E(g)$weight <- runif(ecount(g))
> betweenness(g)   # weighted
 [1] 10 12 13 13 11  8  5  3  4  7
> betweenness(g, weights=NA)    # unweighted
 [1] 8 8 8 8 8 8 8 8 8 8

So can you send me some code that reproduces your problem?

Thanks,
Gabor
 
how can I order the calculation of the weighted or unweighted centrality.

Than you again
Rachid


_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help




--
Gabor Csardi <address@hidden>     UNIL DGM


reply via email to

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