[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] alpha.centrality with weights problem
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] alpha.centrality with weights problem |
Date: |
Tue, 2 Aug 2011 09:19:37 -0400 |
Hi Mike,
weights: A character scalar that gives the name of the edge attribute
to use in the adjacency matrix. If it is ‘NULL’, then the
‘weight’ edge attribute of the graph is used, if there is
one. Otherwise, or if it is ‘NA’, then the calculation uses
the standard adjacency matrix.
So giving 'NULL' and E()$weight is the same indeed. Give NA if you
want to ignore the weights.
G.
On Mon, Aug 1, 2011 at 11:02 PM, Michael Bishop <address@hidden> wrote:
> Hello igraph experts!
> I am surprised to receive identical output from the following two functions:
> alpha.centrality(netList, alpha=0.09, weights=NULL)
> and
> alpha.centrality(netList, alpha=0.09, weights=E(netList)$weight)
>
> Any idea what is going on?
> The weight attribute ranges from 0.6 to 1.
> The graph is completely connected though it is directed and some nodes only
> have incoming and others only outgoing edges.
> Many Thanks,
> Mike
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
--
Gabor Csardi <address@hidden> MTA KFKI RMKI