Function NetworKit::GraphClusteringTools::weightedDegreeWithCluster

Function Documentation

edgeweight NetworKit::GraphClusteringTools::weightedDegreeWithCluster(const Graph &graph, const Partition &zeta, node u, index cid)

Get weightedDegree of node u for a cluster (represented by a partition) of index cid.

Parameters:
  • graph – The input graph

  • zetaPartition, which contains information about clusters in the graph

  • u – node

  • cid – index of cluster

Returns:

weighted degree of node u for cluster index cid