compare_graph_to_degree_preserving_null

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

compare_graph_to_degree_preserving_null(graph: HabitatGraph | Graph, statistic: Callable[[Graph], float], *, options: GraphNullModelOptions = GraphNullModelOptions(n_random_graphs=100, swaps_per_edge=100, random_seed=0, sampler='config')) → GraphNullModelResult[source]

Compare a finite topology statistic with degree-preserving null graphs.