test/edge_set_test.cc
author deba
Wed, 06 Sep 2006 10:01:15 +0000
changeset 2200 2f2ac1b1ca1e
parent 1990 15fb7a4ea6be
child 2260 4274224f8a7d
permissions -rw-r--r--
An easy avoiding of a bug

The functional interfaces are removed.
Better solution could be a reference counted core of the io interfaces

Now it is huge work so just write that:

GraphReader<ListGraph>(std::cin, graph).

Instead of:

graphReader(std::cin, graph).
deba@1962
     1
// -*- c++ -*-
deba@1962
     2
deba@1962
     3
#include <iostream>
deba@1962
     4
#include <vector>
deba@1962
     5
deba@1962
     6
#include <lemon/concept/graph.h>
deba@1962
     7
#include <lemon/concept/ugraph.h>
deba@1962
     8
#include <lemon/smart_graph.h>
deba@1962
     9
deba@1962
    10
#include <lemon/edge_set.h>
deba@1962
    11
deba@1962
    12
#include "test_tools.h"
deba@1962
    13
#include "graph_test.h"
deba@1962
    14
#include "map_test.h"
deba@1962
    15
deba@1962
    16
deba@1962
    17
using namespace lemon;
deba@1962
    18
using namespace lemon::concept;
deba@1962
    19
deba@2111
    20
typedef SmartGraph RGraph;
deba@1962
    21
deba@1962
    22
int main() {
deba@1962
    23
  { // checking edge_sets
deba@2111
    24
    checkConcept<Graph, ListEdgeSet<RGraph> >();
deba@2111
    25
    checkConcept<UGraph, ListUEdgeSet<RGraph> >();
deba@2111
    26
    checkConcept<Graph, SmartEdgeSet<RGraph> >();
deba@2111
    27
    checkConcept<UGraph, SmartUEdgeSet<RGraph> >();
deba@1962
    28
  }
deba@1962
    29
deba@1962
    30
  std::cout << __FILE__ ": All tests passed.\n";
deba@1962
    31
deba@1962
    32
  return 0;
deba@1962
    33
}