Learn R Programming

cograph (version 2.0.0)

membership.cograph_communities: Get Community Membership

Description

Get Community Membership

Usage

membership.cograph_communities(x)

Value

Named integer vector of community assignments

Arguments

x

A cograph_communities object

Examples

Run this code
g <- igraph::make_graph("Zachary")
comm <- community_louvain(g)
igraph::membership(comm)

Run the code above in your browser using DataLab