Learn R Programming

clustAnalytics (version 0.5.5)

auxiliary_functions: Auxiliary Functions of a Graph Partition

Description

Given a weighted graph and a partition into communities, returns the internal edge weight, the size, and the cut weight for each community.

Usage

auxiliary_functions(g, com, edgelist)

Arguments

g

Graph to be analyzed (as an igraph object)

com

Community membership vector. Each element corresponds to a vertex of the graph, and contains the index of the community it belongs to.

edgelist

alternatively, the edgelist of the graph