#include #include #include #include using namespace ogdf; int main(int argc, char **argv) { int nodeCount = std::stoi(argv[1]); int edgeCount = std::stoi(argv[2]); int copies = std::stoi(argv[3]); int seed = std::stoi(argv[4]); std::string outputFolder = argv[5]; setSeed(seed); for (int i = 0; i < copies; i++) { Graph G; randomRegularGraph(G, nodeCount, edgeCount); std::stringstream ss; ss << outputFolder << "/graphn" << nodeCount << "e" << edgeCount << "s" << seed << "i" << i << ".gml"; std::string s = ss.str(); GraphIO::write(G, s, GraphIO::writeGML); } }