Function NetworKit::GraphClusteringTools::equalClusterings

Function Documentation

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

Check whether two paritions are equal for a given graph

Parameters:
  • graph – The input graph

  • zetaPartition, which contains information about clusters in the graph

  • etaPartition, which contains information about clusters in the graph

Returns:

True if both partitions are the same, False if not