Simpler definition of gm.randGraph