note that this signature is inconsistent with generateRandomUndirectedGraph() which takes in a "probEdge". Perhaps add another overloaded signature which takes probEdge and delegates to this with avgoutDegree = probEdge * (numNodes - 1).