Lemon Graph Format uses label instead of id named map.
2 * test/counter_test.cc - Part of LEMON, a generic C++ optimization library
4 * Copyright (C) 2006 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
5 * (Egervary Research Group on Combinatorial Optimization, EGRES).
7 * Permission to use, modify and distribute this software is granted
8 * provided that this copyright notice appears in all copies. For
9 * precise terms see the accompanying LICENSE file.
11 * This software is provided "AS IS" with no warranty of any kind,
12 * express or implied, and with no claim as to its suitability for any
17 #include <lemon/counter.h>
19 ///\file \brief Test cases for time_measure.h
21 ///\todo To be extended
26 static lemon::Counter count("Fibonacci steps: ");
29 else if(f==1) return 1;
30 else return fibonacci(f-1)+fibonacci(f-2);
38 typedef lemon::Counter MyCounter;
39 MyCounter c("Main counter: ");
42 MyCounter::SubCounter d(c,"Subcounter: ");
45 MyCounter::SubCounter::SubCounter e(d,"SubSubCounter: ");
51 typedef lemon::NoCounter MyCounter;
52 MyCounter c("Main counter: ");
55 MyCounter::SubCounter d(c,"Subcounter: ");
58 MyCounter::SubCounter::SubCounter e(d,"SubSubCounter: ");