Problem

COM-B2-M01-P015 Paths of Length Two

#15 Grade 10 Grade 11 ★★★★☆ Level 4 of 5

In a graph, the vertex degrees are \(d_1,\ldots,d_n\). Prove that the number of unordered paths of length \(2\) is \(\sum_{i=1}^n\binom{d_i}{2}\).