nigsp.operations.graph.nodestrength

nigsp.operations.graph.nodestrength(mtx, mean=False)[source]

Compute the node strength of a graph.

Parameters:
mtxnumpy.ndarray

A matrix depicting a graph.

meanbool, optional

If True, return the average node strength along the last axis of mtx.

Returns:
numpy.ndarray

The node strength.