Examples for 'igraph::cluster_walktrap'


Community structure via short random walks

Aliases: cluster_walktrap walktrap.community

Keywords: graphs

### ** Examples


g <- make_full_graph(5) %du% make_full_graph(5) %du% make_full_graph(5)
g <- add_edges(g, c(1,6, 1,11, 6, 11))
cluster_walktrap(g)
IGRAPH clustering walktrap, groups: 3, mod: 0.58
+ groups:
  $`1`
  [1] 11 12 13 14 15
  
  $`2`
  [1]  6  7  8  9 10
  
  $`3`
  [1] 1 2 3 4 5
  

[Package igraph version 1.3.1 Index]