powered by
Detects communities using the leading eigenvector of the modularity matrix. Hierarchical divisive algorithm.
community_leading_eigenvector( x, weights = NULL, steps = -1, start = NULL, options = igraph::arpack_defaults(), callback = NULL, extra = NULL, env = parent.frame(), ... )com_le( x, weights = NULL, steps = -1, start = NULL, options = igraph::arpack_defaults(), callback = NULL, extra = NULL, env = parent.frame(), ... )
com_le( x, weights = NULL, steps = -1, start = NULL, options = igraph::arpack_defaults(), callback = NULL, extra = NULL, env = parent.frame(), ... )
A cograph_communities object
cograph_communities
A cograph_communities object. See detect_communities.
detect_communities
Network input
Edge weights. NULL uses network weights, NA for unweighted.
Maximum number of splits. Default -1 (until modularity decreases).
Starting community structure (membership vector).
ARPACK options list. Default uses igraph::arpack_defaults().
Optional callback function called after each split.
Extra argument passed to callback.
Environment for callback evaluation.
Additional arguments passed to to_igraph
to_igraph
Newman, M.E.J. (2006). Finding community structure using the eigenvectors of matrices. Physical Review E, 74, 036104.
g <- igraph::make_graph("Zachary") comm <- community_leading_eigenvector(g) igraph::membership(comm) net <- as_cograph(matrix(runif(25), 5, 5)) com_le(net)
Run the code above in your browser using DataLab