Computes the average degree, i.e. the number of edges divided by the number of nodes.
average_degree(amat)
amat
An adjacency matrix
A numeric.