relabel {clustAnalytics} | R 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
[Package clustAnalytics version 0.5.5 Index]