relabel: Relabels membership vector

View source: R/scoring_functions.R

relabelR Documentation

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)

Arguments

c

numeric vector of vertex ids, not necessarily consecutive

Value

A numeric vector of consecutive vertex ids starting from one


clustAnalytics documentation built on May 29, 2024, 12:18 p.m.