Learn R Programming

leidenAlg (version 1.1.5)

leiden.community: Leiden algorithm community detection Detects communities using Leiden algorithm (implementation copied from https://github.com/vtraag/leidenalg)

Description

Leiden algorithm community detection Detects communities using Leiden algorithm (implementation copied from https://github.com/vtraag/leidenalg)

Usage

leiden.community(graph, resolution = 1, n.iterations = 2)

Value

a fakeCommunities object that returns membership and dendrogram

Arguments

graph

graph on which communities should be detected

resolution

resolution parameter (default=1.0) - higher numbers lead to more communities

n.iterations

number of iterations that the algorithm should be run for (default=2)

Examples

Run this code
leiden.community(exampleGraph)

Run the code above in your browser using DataLab