run_louvain | R Documentation |
Louvain on an igraph object.
run_louvain(graph, gamma = 1, nreps = 1, nb_cores = 1)
graph |
a igraph object |
gamma |
a vector of gamma. Default 1. |
nreps |
the number of repetition for each gamma, Default 1. |
nb_cores |
the number of processors to use. Default is 1. |
This functions depends on Python and louvain being installed. Make sure igraph, louvain and numpy are installed. For example with something like: 'pip install python-igraph louvain numpy'.
a list with
comm |
a data.frame with the community for each gamma |
gamma |
the input gammas corresponding to the columns of comm |
Jean Monlong
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.