test/bpgraph_test.cc
author Balazs Dezso <deba@inf.elte.hu>
Sun, 14 Nov 2010 16:35:31 +0100
changeset 1186 2e959a5a0c2d
child 1187 4c89e925cfe2
permissions -rw-r--r--
Add bipartite graph concepts (#69)
deba@1186
     1
/* -*- mode: C++; indent-tabs-mode: nil; -*-
deba@1186
     2
 *
deba@1186
     3
 * This file is a part of LEMON, a generic C++ optimization library.
deba@1186
     4
 *
deba@1186
     5
 * Copyright (C) 2003-2010
deba@1186
     6
 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
deba@1186
     7
 * (Egervary Research Group on Combinatorial Optimization, EGRES).
deba@1186
     8
 *
deba@1186
     9
 * Permission to use, modify and distribute this software is granted
deba@1186
    10
 * provided that this copyright notice appears in all copies. For
deba@1186
    11
 * precise terms see the accompanying LICENSE file.
deba@1186
    12
 *
deba@1186
    13
 * This software is provided "AS IS" with no warranty of any kind,
deba@1186
    14
 * express or implied, and with no claim as to its suitability for any
deba@1186
    15
 * purpose.
deba@1186
    16
 *
deba@1186
    17
 */
deba@1186
    18
deba@1186
    19
#include <lemon/concepts/bpgraph.h>
deba@1186
    20
//#include <lemon/list_graph.h>
deba@1186
    21
//#include <lemon/smart_graph.h>
deba@1186
    22
//#include <lemon/full_graph.h>
deba@1186
    23
//#include <lemon/grid_graph.h>
deba@1186
    24
//#include <lemon/hypercube_graph.h>
deba@1186
    25
deba@1186
    26
#include "test_tools.h"
deba@1186
    27
#include "graph_test.h"
deba@1186
    28
deba@1186
    29
using namespace lemon;
deba@1186
    30
using namespace lemon::concepts;
deba@1186
    31
deba@1186
    32
void checkConcepts() {
deba@1186
    33
  { // Checking graph components
deba@1186
    34
    checkConcept<BaseBpGraphComponent, BaseBpGraphComponent >();
deba@1186
    35
deba@1186
    36
    checkConcept<IDableBpGraphComponent<>,
deba@1186
    37
      IDableBpGraphComponent<> >();
deba@1186
    38
deba@1186
    39
    checkConcept<IterableBpGraphComponent<>,
deba@1186
    40
      IterableBpGraphComponent<> >();
deba@1186
    41
deba@1186
    42
    checkConcept<AlterableBpGraphComponent<>,
deba@1186
    43
      AlterableBpGraphComponent<> >();
deba@1186
    44
deba@1186
    45
    checkConcept<MappableBpGraphComponent<>,
deba@1186
    46
      MappableBpGraphComponent<> >();
deba@1186
    47
deba@1186
    48
    checkConcept<ExtendableBpGraphComponent<>,
deba@1186
    49
      ExtendableBpGraphComponent<> >();
deba@1186
    50
deba@1186
    51
    checkConcept<ErasableBpGraphComponent<>,
deba@1186
    52
      ErasableBpGraphComponent<> >();
deba@1186
    53
deba@1186
    54
    checkConcept<ClearableGraphComponent<>,
deba@1186
    55
      ClearableGraphComponent<> >();
deba@1186
    56
deba@1186
    57
  }
deba@1186
    58
  { // Checking skeleton graph
deba@1186
    59
    checkConcept<BpGraph, BpGraph>();
deba@1186
    60
  }
deba@1186
    61
}
deba@1186
    62
deba@1186
    63
void checkGraphs() {
deba@1186
    64
}
deba@1186
    65
deba@1186
    66
int main() {
deba@1186
    67
  checkConcepts();
deba@1186
    68
  checkGraphs();
deba@1186
    69
  return 0;
deba@1186
    70
}