should probably be numNodes -1 because the binomial value (degree) is between 0 and (numNodes-1)