thank you Gabor,

I don't understand the difference between weights=NULL and weights =TRUE then 
when I create a graph object.

Can you pls explain?

Thank you very much

Marko

Il giorno 13/mag/2013, alle ore 02:51, Gábor Csárdi <[email protected]> ha 
scritto:

> 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 
> <[email protected]> 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
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
> 
> 
> 
> -- 
> Gabor Csardi <[email protected]>     MTA KFKI RMKI
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to