In: Advanced Math
Suppose you want to provide a general expression for the number of edges in a complete graph Kn. Explain how you could provide some examples to help you find a pattern. How can you use the pattern to create a formula?
from MATH-125
A complete graph is a graph such that
So,
From the above examples, especially from the last one, we can derive a general formula.
Let us suppose that the vertices of the complete graph with n vertices are named 1,2,3,...,n-1,n. Then, the possible number of ways to select two distinct numbers from n numbers is .
Therefore, the general expression for the number of edges in the complete graph is .