add a method for generating a simple, basic test graph
fix: a connected graph has to have >= n-1 edges, not >n-1
graph generator now works correctly for n==1