Suppose we have a graph $G=(V,E)$ with $n$ non-overlapping subgraphs, the clusters $C_1, C_2, \dots, C_n$ which covers the graph $C_1 \cup \dots \cup C_n = G$.
I'm looking for a good metric to measure the quality of these clusters.
Let's call it $m(C)$. I would like $m(C)$ to be
- high when most of the neighbours of the nodes within $C$ are also in $C$
- the highest when $C$ is a complete graph without links outside of $C$
- low when most of the neighbours of the nodes within $C$ are in other clusters
- the lowest when $C$ has no edge and each node in $C$ is linked to all nodes in $G$ and outside of $C$
- and null when there is exactly the same number of neighbours inside and outside $C$.
(All this taking into account that two nodes neighbours in $C$ shouldn't be count twice.)
Does such a metric exist? What is its name? Thanks.
