COIN-OR::LEMON - Graph Library

Changeset 592:5961cce7ec53 in lemon-0.x


Ignore:
Timestamp:
05/09/04 18:29:53 (21 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@771
Message:

The file src/work/alpar/fullgraph.h renamed and moved to src/hugo/full_graph.h.
Compilation tests for FullGraph? added to src/test/graph_test.h.

Location:
src
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • src/test/graph_test.cc

    r579 r592  
    33#include<hugo/skeletons/graph.h>
    44#include<hugo/list_graph.h>
     5#include<hugo/full_graph.h>
    56
    67#include"test_tools.h"
     
    1112G.addNode(), G.addEdge(), G.valid(), G.tail(), G.head()
    1213
     14\todo Checks for empty graphs and isolated points.
    1315*/
    1416
    1517using namespace hugo;
    1618
    17 template<class Graph> void checkCompile(Graph &G)
     19template<class Graph> void checkCompileStaticGraph(Graph &G)
    1820{
    1921  typedef typename Graph::Node Node;
     
    8082
    8183  Node n,m;
    82   n=G.addNode();
     84  n=m=INVALID;
    8385  Edge e;
    84   e=G.addEdge(n,m);
     86  e=INVALID;
    8587  n=G.tail(e);
    8688  n=G.head(e);
     
    9294  { int i=G.id(e); i=i; }
    9395 
    94   G.clear();
     96  //  G.clear();
    9597
    9698  //NodeMap tests
     
    161163}
    162164
     165template<class Graph> void checkCompile(Graph &G)
     166{
     167  checkCompileStaticGraph(G);
     168
     169  typedef typename Graph::Node Node;
     170  typedef typename Graph::NodeIt NodeIt;
     171  typedef typename Graph::Edge Edge;
     172  typedef typename Graph::EdgeIt EdgeIt;
     173  typedef typename Graph::InEdgeIt InEdgeIt;
     174  typedef typename Graph::OutEdgeIt OutEdgeIt;
     175 
     176  Node n,m;
     177  n=G.addNode();
     178  m=G.addNode();
     179 
     180  G.addEdge(n,m);
     181}
     182
     183
    163184template<class Graph> void checkNodeList(Graph &G, int nn)
    164185{
     
    245266template void checkCompile<ListGraph>(ListGraph &);
    246267template void checkCompile<SymListGraph>(SymListGraph &);
     268template void checkCompileStaticGraph<FullGraph>(FullGraph &);
    247269
    248270//Due to some mysterious problems it does not work.
Note: See TracChangeset for help on using the changeset viewer.