cluster_size#

cluster_size(network, cluster=None)[source]#

Find the size of the cluster to which each pore belongs

Parameters:
  • network (dict) – The Network

  • cluster (str, optional) – Dict key pointing to the array containing the cluster number of each pore. If not provided then it will be calculated.

Returns:

cluster_size – An Np-long array containing the size of the cluster to which each pore belongs

Return type:

ndarray