Spectral Graph Forge (SGF) is a python toolkit used to generate random graph with certain specific eigenstructure properties. The codebase is had been used for the research described in [1] which remains the main source of documentation for this project.
SGF comes with a test suite you can launch with:
python -m pytest
[1] L. Baldesi, A. Markopoulou, C. T. Butts, "Spectral Graph Forge: Graph Generation Targeting Modularity", IEEE INFOCOM 2018