squidpy.gr.neighbors.DelaunayBuilder
- class squidpy.gr.neighbors.DelaunayBuilder(radius=None, transform=None, set_diag=False, percentile=None)[source]
Build a generic point-cloud graph from a Delaunay triangulation.
Delaunay triangulation connects observations into triangles such that no other observation lies inside the circumcircle of each triangle. Unlike
GridBuilder(delaunay=True), this builder uses geometry-based connectivity and stores real Euclidean edge lengths.radiusonly controls post-construction edge pruning; the triangulation itself is unchanged. A tuple(min, max)keeps edges with Euclidean length in that interval. A scalarris shorthand for(0.0, r), i.e. keep edges with length at mostr.Nonekeeps every edge.See
spatial_neighbors_delaunay()for the user-facing API orspatial_neighbors_from_builder()for direct builder usage.Methods
build(coords)build_graph(coords)Construct raw adjacency and distance matrices.
combine(mats, ixs)Combine per-library results into a single graph.
Return post-build processing steps for
(adj, dst).Parameters stored in
anndata.AnnData.unsafter graph construction.