|
file | generator.h |
| Random Structured Instances generator.
|
|
The library contains four random but structured instance generators. The generators either produce a graph in memory or can also output the graph in GML format. Each generator has a number of parameters (see each class for more details).
Code Example
Regional Generator
#include <iostream>
#include <LEP/mosp/gml.h>
int main( int argc, char* argv[] ) {
leda::graph G;
leda::list<leda::node> A,B;
leda::edge_map<int> rank(G);
leda::node_map<int> capacity(G);
mosp::write_gml( G, A, B, capacity, rank, std::cout );
delete gen;
return 0;
}