igraph-help
[Top][All Lists]
Advanced

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

[igraph] Community detection of weighted graphs and weighted modularitie


From: R N
Subject: [igraph] Community detection of weighted graphs and weighted modularities
Date: Thu, 12 Apr 2012 15:46:39 +0300

Hi,

are the examples of community detection presented in
http://igraph.wikidot.com/community-detection-in-r
meant for unweighted graphs? How can they be modified to use edge
weights? Is it sufficient to add the
appropriate parameter, e.g.:

### label.propagation.community
memberships$`Label propagation` <- label.propagation.community(G, E(G)$weight)
### and calculate modularity
Q <- modularity (G, memberships$`Label propagation`,  E(G)$weight)

or did I overlook something?



reply via email to

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