find_communities: Finds communities in the given graph and returns the graph...

View source: R/community_detection.R

find_communitiesR Documentation

Finds communities in the given graph and returns the graph after adding a vector "group" to its vertices

Description

Finds communities in the given graph and returns the graph after adding a vector "group" to its vertices

Usage

find_communities(
  graph,
  plot = TRUE,
  method = c("multilevel", "edgebetweenness", "fastgreedy", "eigenvector", "spinglass",
    "walktrap", "labelpropagation", "clique", "largescale")
)

Arguments

graph

is the igraph object

plot

whether to plot the graph using tkplot. Default is TRUE

method

is the method to find communities. Value can be "multilevel", "edgebetweenness", "fastgreedy", "eigenvector", "spinglass", "walktrap", "labelpropagation", "clique", "largescale"

Value

graph object with membership attribute attached representing communities


seekme94/influence.mining documentation built on Aug. 2, 2022, 10:19 p.m.