Neighbors neighbors

Neighbors neighbors#

See the extensibility guide for how to implement a custom graph builder. GraphMatrixT is the type variable those interfaces are generic over; it is documented here rather than beside the gr functions, where a bare type variable read as public API.

neighbors.GraphBuilder([transform, ...])

Base class for spatial graph construction strategies.

neighbors.GraphBuilderCSR([transform, ...])

CSR-based graph construction strategy.

neighbors.GraphPostprocessor

neighbors.DistanceIntervalPostprocessor(interval)

neighbors.PercentilePostprocessor(percentile)

neighbors.TransformPostprocessor(transform)

neighbors.KNNBuilder([n_neighs, transform, ...])

Build a generic k-nearest-neighbor spatial graph.

neighbors.RadiusBuilder(radius[, transform, ...])

Build a generic radius-based spatial graph.

neighbors.DelaunayBuilder([radius, ...])

Build a generic point-cloud graph from a Delaunay triangulation.

neighbors.GridBuilder([n_neighs, n_rings, ...])

Build a grid-based spatial graph.

neighbors.GraphMatrixT

Type variable.