#include <CGAL/Generalized_map.h>
#include <iostream>
#include <cstdlib>
typedef GMap_3::Dart_descriptor Dart_const_descriptor;
int main()
{
GMap_3 gm;
Dart_const_descriptor d1 = gm.make_combinatorial_tetrahedron();
Dart_const_descriptor d2 = gm.make_combinatorial_tetrahedron();
gm.display_characteristics(std::cout);
std::cout<<", valid="<<gm.is_valid()<<std::endl;
unsigned int res = 0;
for (GMap_3::Dart_of_orbit_range<0,1,2>::const_iterator
it(gm.darts_of_orbit<0,1,2>(d1).begin()),
itend(gm.darts_of_orbit<0,1,2>(d1).end()); it!=itend; ++it)
++res;
std::cout<<"Number of darts of the first tetrahedron: "<<res<<std::endl;
res = 0;
for (GMap_3::Dart_of_orbit_range<0,1>::const_iterator
it(gm.darts_of_orbit<0,1>(d2).begin()),
itend(gm.darts_of_orbit<0,1>(d2).end()); it!=itend; ++it)
++res;
std::cout<<"Number of darts of the face incident to d2: "<<res<<std::endl;
return EXIT_SUCCESS;
}