COIN-OR::LEMON - Graph Library

source: lemon/test/bpgraph_test.cc @ 1186:2e959a5a0c2d

Last change on this file since 1186:2e959a5a0c2d was 1186:2e959a5a0c2d, checked in by Balazs Dezso <deba@…>, 9 years ago

Add bipartite graph concepts (#69)

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