graph_measure
GraphMeasure
Bases: ABC
Abstract class for graph statistic.
compute(graph)
Compute graph statistic and add it as a property to the graph.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph
|
Graph
|
The graph to calculate the statistic for. |
required |
Returns:
Type | Description |
---|---|
ndarray
|
np.ndarray: the graph with the statistic computed. |