//Compilation: g++ example.cpp specgraph.cpp rand.cpp or simply 'make' #include #include "specgraph.h" #include "rand.h" using namespace std; int main() { randomize(); //Parameters of the algorithm specgraph_probaerror=0.01; specgraph_maxiter=100000; specgraph_stopthreshold=0.001; //Graph construction; n = number of vertices const int n=500; Graph G(n); int i,j,k; //The cyclic graph //for(i=0;i