igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Betweenness centrality issue


From: Gábor Csárdi
Subject: Re: [igraph] Betweenness centrality issue
Date: Sun, 12 May 2013 20:51:10 -0400

Hi, 

weights = NULL means that the weights will be used if they are present. You'll need to remove them, or set all of them to 1 if you want to ignore them.

Gabor


On Sun, May 12, 2013 at 6:27 PM, Antoniazzi Marco <address@hidden> wrote:
Hi all,

I have two matrices which look as following:

Matrix A: 14*14 with weighted edges.

Matrix B: 14*14 where I changed all the weighted edges with 1.

I wanted to check whether igraph results are correct but I can't figure out the explanations to the following problem:

GraphA <- graph.adjacency(MatrixA, mode=c("directed"),weighted = NULL )
Betweenness <- betweenness ( GraphA, directed = TRUE,
                            weights = NULL, normalized=TRUE)

GraphB <- graph.adjacency(MatrixB, mode=c("directed"), weighted= NULL)
BetweennessN <- betweenness ( GraphB, directed = TRUE,
                              weights = NULL, normalized=TRUE)

from which I should get exactly the same results as I specify weighted=NULL but indeed the results are different one from the other.
I have tried to remove 'normalized' argument to see whether it is biased but I get different results as well...

Any thoughts?

Thank you very much for your help!!
Marko
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



--
Gabor Csardi <address@hidden>     MTA KFKI RMKI

reply via email to

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