Generates random graphs with tunable strength of community structure