partition_nei_from_points: Find cpartition neighbourhood from underlying graph

Description Usage Arguments Value Author(s)

View source: R/geometryfns.R

Description

This function takes a set of points with a field class and the neighbourhood list of those points, and computes the neighbourhood list of the super-graph composed by treating the class as a vertex in its own right. If even one underlying vertex has a nerghbour in another partition, then that partition is the present partition's neighbour.

Usage

1

Arguments

points

a data frame with fields x, y and class

nei_list

a list where each element is a vector containing the indices of the neighbours of the corresponding node

Value

a neighbourhood list of the superset

Author(s)

Andrew Zammit Mangion


shazhe/mvst0 documentation built on May 29, 2019, 9:20 p.m.