nichepca.graph_construction.resolve_graph_constructor

nichepca.graph_construction.resolve_graph_constructor#

nichepca.graph_construction.resolve_graph_constructor(radius=None, knn=None, delaunay=False)#

Resolves and returns the graph constructor based on the provided parameters.

Parameters:
  • radius (float | None (default: None)) – The radius for the distance graph constructor.

  • knn (int | None (default: None)) – The number of nearest neighbors for the knn graph constructor.

  • delaunay (bool (default: False)) – Whether to use the delaunay graph constructor.

Returns:

callable The resolved graph constructor function with the appropriate parameters.

Raises:

ValueError – If no graph constructor is specified.