MHCXGraph.core.subgraphs.extract_subgraph_from_point

MHCXGraph.core.subgraphs.extract_subgraph_from_point(g: Graph, centre_point: ndarray | tuple[float, float, float], radius: float, filter_dataframe: bool = True, update_coords: bool = True, recompute_distmat: bool = False, inverse: bool = False, return_node_list: bool = False) Graph | list[str] | None[source]

Select nodes within a sphere.

Parameters:
Returns:

Subgraph or node list.

Return type:

nx.Graph or list of str