predictComponent

Share:

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

1
predictComponent(object, x)

Arguments

object

GNG object

x

Can be either vector or data.frame.

Details

Find closest component

Examples

1
2
3
gng <- GNG(gng.preset.sphere(100))
# Find closest component to c(1,1,1)
predictComponent(gng,  c(1,1,1))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.