rcpp_partition: Graph partition

Description Usage Arguments Details Value Author(s)

View source: R/RcppExports.R

Description

Partition of a graph given its centers

Usage

1
rcpp_partition(neighbors, centers)

Arguments

neighbors

A matrix defining a the links between the graph nodes.

centers

The desired centers to start the algorithm

Details

Each center in order takes up all its free neighbors. The process is repeated until there are no more free regions.

Value

a vector indicating the cluster center for each graph node.

Author(s)

Marcelo Costa


leandromineti/gbdcd documentation built on Sept. 24, 2020, 12:43 p.m.