igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] problem with alpha.centrality


From: Gábor Csárdi
Subject: Re: [igraph] problem with alpha.centrality
Date: Mon, 22 Oct 2012 20:04:14 -0400

Hi Bob,

On Mon, Oct 22, 2012 at 11:28 AM, Bob Pap <address@hidden> wrote:
[...]
> alpha.centrality(g, weights = NULL)
>
> alpha.centrality(g)
>
> I get the same result (according to the help file I should not). When I try

The help file says:

 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 indeed, the results will be the same.

> alpha.centrality(g, weights = "weight")
>
> I get the same plus the error (even though it should not):
>
> Warning message:
>
> In alpha.centrality.sparse(graph, nodes, alpha, loops, exo, weights,  :
>
>   NAs introduced by coercion

This is a bug, thanks for the report, I have already fixed it in the
development tree.

Best,
Gabor

[...]



reply via email to

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