networkcommons.eval.get_number_nodes

networkcommons.eval.get_number_nodes(network)

Get the number of nodes in the network.

Parameters:

network (nx.Graph) – The network to get the number of nodes from.

Returns:

The number of nodes in the network.

Return type:

int