Skip to contents

Assign unique color to each community

Usage

colorize_community(ig, community_attr_name = "community")

Arguments

ig

an igraph object

community_attr_name

the node attribute that represents the community partition

Value

an igraph object with "color" node attribute