relabel {clustAnalytics} | R Documentation |
Takes a vector of vertex ids indicating community membership, and relabels the communities to have consecutive values from 1 to the number of communities.
relabel(c)
c |
numeric vector of vertex ids, not necessarily consecutive |
A numeric vector of consecutive vertex ids starting from one