What is the maximum number of edges in a directed graph with n nodes?

Loolooii picture Loolooii · Feb 20, 2011 · Viewed 141.2k times · Source

What is the maximum number of edges in a directed graph with n nodes? Is there any upper bound?

Answer

Chris Smith picture Chris Smith · Feb 20, 2011

If you have N nodes, there are N - 1 directed edges than can lead from it (going to every other node). Therefore, the maximum number of edges is N * (N - 1).