An algorithm that generates random graphs with a specified modularity.