Computes the number of edges a graph with p nodes will have if its fully connected.
p
maxnedges(p)
The number of nodes in the graph
A numeric.