Un exemple minimal (ou presque).Cet exemple illustre le chargement de support et graphes (au format BCGCT) ainsi que la recherche de projections. Le code source de ce programme, accompagné de makefiles se trouve dans "samples/minimal".
#include <iostream>
static void ret()
{
cout << "Press Return" << endl;
cin.get();
}
int main(int, char* [])
{
try
{
}
{
cerr << e;
exit(1);
}
cout << "Fact graph (linear form)" << endl;
ret();
cout << "Query graph (internal form)" << endl;
cout << *(env.
graphs(g2)) << endl ;
ret();
cout <<
"There is/are " << proj.
size() <<
" projection(s) of the query graph in the fact graph." << endl;
ret();
{
cout << "Projection #" << (i+1) << endl;
ret();
}
cout << "End of the sample program" << endl;
return 0;
}