corner case is when numNodes==1. Suggest making a simple method getProbEdgeRandomDirected(avgOutDegree, numNodes) in TestGraph.scala that can check for this corner case as well, and using that everywhere.