[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Community detection of weighted graphs and weighted modular
Re: [igraph] Community detection of weighted graphs and weighted modularity
Mon, 23 Apr 2012 10:09:51 -0400
On Fri, Apr 20, 2012 at 9:13 AM, R N <address@hidden> wrote:
> After asking this question, I looked in teh codeZ of R interface of
> igraph-0.5.4 myself
> and got an impression that the CD methods: spinglass, walktrap,
> fast_greedy, label_propagation
> in fact do use the edge weights, if defined for the graph, by default,
> even though this parameter
> is not explicitly given in the function call.
>From the manual:
weights: The weights of the edges. Either a numeric vector or ‘NULL’.
If it is null and the input graph has a ‘weight’ edge
attribute then that will be used. If ‘NULL’ and no such
attribute is present then the edges will have equal weights.
So yes, if the graph has a 'weight' edge attribute, then that is used
in these algorithms.
Gabor Csardi <address@hidden> MTA KFKI RMKI