nichepca.graph_construction.calc_graph_stats#
- nichepca.graph_construction.calc_graph_stats(adata=None, edge_index=None, num_nodes=None)#
Calculate basic graph statistics.
- Parameters:
adata (AnnData | None (default:
None)) – Annotated data object.edge_index (torch.tensor | np.ndarray | None (default:
None)) – Edge index of the graph.num_nodes (int | None (default:
None)) – Number of nodes in the graph.
- Returns:
Tuple[int, int, torch.Tensor, torch.Tensor, bool, bool]