% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/communities.R
\name{leiden.community}
\alias{leiden.community}
\title{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)
}
\arguments{
\item{graph}{graph on which communities should be detected}

\item{resolution}{resolution parameter (default=1.0) - higher numbers lead to more communities}

\item{n.iterations}{number of iterations that the algorithm should be run for (default=2)}
}
\value{
a fakeCommunities object that returns membership and dendrogram
}
\description{
Leiden algorithm community detection
Detects communities using Leiden algorithm (implementation copied from https://github.com/vtraag/leidenalg)
}
\examples{
leiden.community(exampleGraph)

}
