Learn R Programming

gmum.r (version 0.2.1)

predictComponent: predictComponent

Description

Finds connected component closest to given vector(s). On the first execution of function strongly connected components are calculated using igraph::cluster function.

Usage

predictComponent(object, x)

Arguments

object
GNG object
x
Can be either vector or data.frame.

Details

Find closest component

Examples

Run this code
gng <- GNG(gng.preset.sphere(100))
# Find closest component to c(1,1,1)
predictComponent(gng,  c(1,1,1))

Run the code above in your browser using DataLab