Description Usage Arguments Details Value Author(s)
Partition of a graph given its centers
1 | rcpp_partition(neighbors, centers)
|
neighbors |
A matrix defining a the links between the graph nodes. |
centers |
The desired centers to start the algorithm |
Each center in order takes up all its free neighbors. The process is repeated until there are no more free regions.
a vector indicating the cluster center for each graph node.
Marcelo Costa
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.