Function NetworKit::GraphClusteringTools::isProperClustering

Function Documentation

bool NetworKit::GraphClusteringTools::isProperClustering(const Graph &G, const Partition &zeta)

Check whether a partition is a proper clustering for a given graph

Parameters:
  • graph – The input graph

  • zetaPartition, which contains information about clusters in the graph

Returns:

True if the partition is a proper clustering, False if not