Skip to contents

Get Community Sizes

Usage

community_sizes(x)

Arguments

x

A cograph_communities object

Value

Named integer vector of community sizes

Examples

g <- igraph::make_graph("Zachary")
comm <- community_louvain(g)
community_sizes(comm)
#> [1] 12  5 13  4