def METHOD_NAME(network):
    r"""
    Assign a cluster number to each pore
    """
    from scipy.sparse import csgraph as csg
    am = network.create_adjacency_matrix(fmt='coo', triu=True)
    N, Cs = csg.connected_components(am, directed=False)
    return Cs