please tell me a equation to find maximum number of non loop edges that can exist in an undirected graph.
for example if vertices are 10 then how many non loop edges can exist?
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityplease tell me a equation to find maximum number of non loop edges that can exist in an undirected graph.
for example if vertices are 10 then how many non loop edges can exist?
If you have a simple graph, then the extremal case is a complete graph. In which case, there is an edge between each vertex, so there are $\binom{n}{2}$ such edges at most.
An undirected graph is one in which edges have no orientation. The edge (a, b) is identical to the edge (b, a), i.e., they are not ordered pairs, but sets {u, v} (or 2-multisets) of vertices. The maximum number of edges in an undirected graph without a self-loop is n(n - 1)/2. So , 10 * 9 / 2 = 45