deltakit.core.decoding_graphs.has_contiguous_nodes#
- deltakit.core.decoding_graphs.has_contiguous_nodes(graph: HyperMultiGraph, start: int = 0) bool#
Returns whether the nodes of the graph have contiguous indices with respect to the start index.
- Parameters:
graph (HyperMultiGraph) – Any graph.
start (int, optional) – Which index to start counting nodes from at, by default 0.
- Returns:
Whether all nodes in the graph are zero indexed and contiguous.
- Return type:
bool