3

What is the maximum number of edges in an undirected graph with n nodes?

I've seen a question, but it's about directed graph

  • 1
    Possible duplicate of [What is the maximum number of edges in a directed graph with n nodes?](https://stackoverflow.com/questions/5058406/what-is-the-maximum-number-of-edges-in-a-directed-graph-with-n-nodes) – Chris Gong Oct 26 '19 at 04:28

1 Answers1

5

The maximum number of edges in an undirected graph is n(n-1)/2.

Gabriel S
  • 351
  • 3
  • 11