The handshake lemma 2 is sometimes called the degree sum formula, and can be written symbolically as
Here we are using the notation \(d(v)\) for the degree of the vertex \(v\text{.}\)