Learn R Programming

clustAnalytics (version 0.5.5)

relabel: Relabels membership vector

Description

Takes a vector of vertex ids indicating community membership, and relabels the communities to have consecutive values from 1 to the number of communities.

Usage

relabel(c)

Value

A numeric vector of consecutive vertex ids starting from one

Arguments

c

numeric vector of vertex ids, not necessarily consecutive