View source: R/scoring_functions.R
relabel | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.