COIN-OR::LEMON - Graph Library

Changeset 921:818510fa3d99 in lemon-0.x for src/test


Ignore:
Timestamp:
09/29/04 17:30:04 (16 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1232
Message:

hugo -> lemon

Location:
src/test
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • src/test/bfs_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/bfs_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/bfs_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1616
    1717#include "test_tools.h"
    18 #include <hugo/smart_graph.h>
    19 #include <hugo/bfs.h>
    20 #include<hugo/skeletons/graph.h>
     18#include <lemon/smart_graph.h>
     19#include <lemon/bfs.h>
     20#include<lemon/skeletons/graph.h>
    2121
    22 using namespace hugo;
     22using namespace lemon;
    2323
    2424const int PET_SIZE =5;
  • src/test/dfs_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/dfs_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/dfs_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1616
    1717#include "test_tools.h"
    18 #include <hugo/smart_graph.h>
    19 #include <hugo/dfs.h>
    20 #include<hugo/skeletons/graph.h>
     18#include <lemon/smart_graph.h>
     19#include <lemon/dfs.h>
     20#include<lemon/skeletons/graph.h>
    2121
    22 using namespace hugo;
     22using namespace lemon;
    2323
    2424const int PET_SIZE =5;
  • src/test/dijkstra_heap_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/dijkstra_heap_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/dijkstra_heap_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    2020
    2121//The input is a graph in standard dimacs format from the standard input (like
    22 //in /hugo_loc/testfiles/dimacs). It runs dijkstra.h on this graph with both
     22//in /lemon_loc/testfiles/dimacs). It runs dijkstra.h on this graph with both
    2323//heaps, checking two postconditions:
    2424
     
    3131#include <math.h>
    3232
    33 #include <hugo/smart_graph.h>
    34 #include <hugo/dimacs.h>
    35 #include <hugo/dijkstra.h>
    36 #include <hugo/time_measure.h>
    37 #include <hugo/bin_heap.h>
    38 #include <hugo/fib_heap.h>
     33#include <lemon/smart_graph.h>
     34#include <lemon/dimacs.h>
     35#include <lemon/dijkstra.h>
     36#include <lemon/time_measure.h>
     37#include <lemon/bin_heap.h>
     38#include <lemon/fib_heap.h>
    3939
    40 using namespace hugo;
     40using namespace lemon;
    4141
    4242int main(int, char **) {
  • src/test/dijkstra_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/dijkstra_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/dijkstra_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1616
    1717#include "test_tools.h"
    18 #include <hugo/smart_graph.h>
    19 #include <hugo/dijkstra.h>
    20 #include<hugo/skeletons/graph.h>
    21 #include<hugo/skeletons/maps.h>
    22 using namespace hugo;
     18#include <lemon/smart_graph.h>
     19#include <lemon/dijkstra.h>
     20#include<lemon/skeletons/graph.h>
     21#include<lemon/skeletons/maps.h>
     22using namespace lemon;
    2323
    2424const int PET_SIZE =5;
  • src/test/error_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/error_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/error_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1717#include <iostream>
    1818
    19 #include <hugo/error.h>
     19#include <lemon/error.h>
    2020#include "test_tools.h"
    21 using namespace hugo;
     21using namespace lemon;
    2222using std::cout;
    2323using std::endl;
  • src/test/graph_test.cc

    r919 r921  
    11/* -*- C++ -*-
    2  * src/test/graph_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/graph_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1616
    1717#include<iostream>
    18 #include<hugo/smart_graph.h>
    19 #include<hugo/skeletons/graph.h>
    20 #include<hugo/list_graph.h>
    21 #include<hugo/full_graph.h>
     18#include<lemon/smart_graph.h>
     19#include<lemon/skeletons/graph.h>
     20#include<lemon/list_graph.h>
     21#include<lemon/full_graph.h>
    2222
    2323#include"test_tools.h"
     
    3434*/
    3535
    36 using namespace hugo;
     36using namespace lemon;
    3737
    3838template<class Graph> void bidirPetersen(Graph &G)
     
    6969
    7070//Compile Graph
    71 template void hugo::checkCompileStaticGraph<skeleton::StaticGraph>
     71template void lemon::checkCompileStaticGraph<skeleton::StaticGraph>
    7272(skeleton::StaticGraph &);
    7373
    74 template void hugo::checkCompileGraph<skeleton::ExtendableGraph>
     74template void lemon::checkCompileGraph<skeleton::ExtendableGraph>
    7575(skeleton::ExtendableGraph &);
    7676
    77 template void hugo::checkCompileErasableGraph<skeleton::ErasableGraph>
     77template void lemon::checkCompileErasableGraph<skeleton::ErasableGraph>
    7878(skeleton::ErasableGraph &);
    7979
    8080//Compile SmartGraph
    81 template void hugo::checkCompileGraph<SmartGraph>(SmartGraph &);
    82 template void hugo::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &);
     81template void lemon::checkCompileGraph<SmartGraph>(SmartGraph &);
     82template void lemon::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &);
    8383
    8484//Compile SymSmartGraph
    85 template void hugo::checkCompileGraph<SymSmartGraph>(SymSmartGraph &);
    86 template void hugo::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &);
     85template void lemon::checkCompileGraph<SymSmartGraph>(SymSmartGraph &);
     86template void lemon::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &);
    8787
    8888//Compile ListGraph
    89 template void hugo::checkCompileGraph<ListGraph>(ListGraph &);
    90 template void hugo::checkCompileErasableGraph<ListGraph>(ListGraph &);
    91 template void hugo::checkCompileGraphFindEdge<ListGraph>(ListGraph &);
     89template void lemon::checkCompileGraph<ListGraph>(ListGraph &);
     90template void lemon::checkCompileErasableGraph<ListGraph>(ListGraph &);
     91template void lemon::checkCompileGraphFindEdge<ListGraph>(ListGraph &);
    9292
    9393
    9494//Compile SymListGraph
    95 template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &);
    96 template void hugo::checkCompileErasableGraph<SymListGraph>(SymListGraph &);
    97 template void hugo::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &);
     95template void lemon::checkCompileGraph<SymListGraph>(SymListGraph &);
     96template void lemon::checkCompileErasableGraph<SymListGraph>(SymListGraph &);
     97template void lemon::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &);
    9898
    9999//Compile FullGraph
    100 template void hugo::checkCompileStaticGraph<FullGraph>(FullGraph &);
    101 template void hugo::checkCompileGraphFindEdge<FullGraph>(FullGraph &);
     100template void lemon::checkCompileStaticGraph<FullGraph>(FullGraph &);
     101template void lemon::checkCompileGraphFindEdge<FullGraph>(FullGraph &);
    102102
    103103//Compile EdgeSet <ListGraph>
    104 template void hugo::checkCompileGraph<EdgeSet <ListGraph> >
     104template void lemon::checkCompileGraph<EdgeSet <ListGraph> >
    105105(EdgeSet <ListGraph> &);
    106 template void hugo::checkCompileGraphEraseEdge<EdgeSet <ListGraph> >
     106template void lemon::checkCompileGraphEraseEdge<EdgeSet <ListGraph> >
    107107(EdgeSet <ListGraph> &);
    108 template void hugo::checkCompileGraphFindEdge<EdgeSet <ListGraph> >
     108template void lemon::checkCompileGraphFindEdge<EdgeSet <ListGraph> >
    109109(EdgeSet <ListGraph> &);
    110110
    111111//Compile EdgeSet <NodeSet>
    112 template void hugo::checkCompileGraph<EdgeSet <NodeSet> >(EdgeSet <NodeSet> &);
    113 template void hugo::checkCompileGraphEraseEdge<EdgeSet <NodeSet> >
     112template void lemon::checkCompileGraph<EdgeSet <NodeSet> >(EdgeSet <NodeSet> &);
     113template void lemon::checkCompileGraphEraseEdge<EdgeSet <NodeSet> >
    114114(EdgeSet <NodeSet> &);
    115 template void hugo::checkCompileGraphFindEdge<EdgeSet <NodeSet> >
     115template void lemon::checkCompileGraphFindEdge<EdgeSet <NodeSet> >
    116116(EdgeSet <NodeSet> &);
    117117
  • src/test/graph_test.h

    r919 r921  
    11/* -*- C++ -*-
    2  * src/test/graph_test.h - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/graph_test.h - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1414 *
    1515 */
    16 #ifndef HUGO_TEST_GRAPH_TEST_H
    17 #define HUGO_TEST_GRAPH_TEST_H
     16#ifndef LEMON_TEST_GRAPH_TEST_H
     17#define LEMON_TEST_GRAPH_TEST_H
    1818
    1919
     
    2323//! \file
    2424//! \brief Some utility to  test graph classes.
    25 namespace hugo {
     25namespace lemon {
    2626
    2727  struct DummyType {
     
    320320
    321321 
    322 } //namespace hugo
     322} //namespace lemon
    323323
    324324
  • src/test/graph_wrapper_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/graph_wrapper_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/graph_wrapper_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1616
    1717#include<iostream>
    18 #include<hugo/smart_graph.h>
    19 #include<hugo/skeletons/graph.h>
    20 #include<hugo/list_graph.h>
    21 #include<hugo/full_graph.h>
    22 #include<hugo/graph_wrapper.h>
     18#include<lemon/smart_graph.h>
     19#include<lemon/skeletons/graph.h>
     20#include<lemon/list_graph.h>
     21#include<lemon/full_graph.h>
     22#include<lemon/graph_wrapper.h>
    2323
    2424#include"test/test_tools.h"
     
    3232*/
    3333
    34 using namespace hugo;
     34using namespace lemon;
    3535
    3636
  • src/test/kruskal_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/kruskal_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/kruskal_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1919
    2020#include "test_tools.h"
    21 #include <hugo/maps.h>
    22 #include <hugo/kruskal.h>
    23 #include <hugo/list_graph.h>
    24 #include <hugo/skeletons/maps.h>
    25 #include <hugo/skeletons/graph.h>
     21#include <lemon/maps.h>
     22#include <lemon/kruskal.h>
     23#include <lemon/list_graph.h>
     24#include <lemon/skeletons/maps.h>
     25#include <lemon/skeletons/graph.h>
    2626
    2727
    2828using namespace std;
    29 using namespace hugo;
     29using namespace lemon;
    3030
    3131void checkCompileKruskal()
  • src/test/min_cost_flow_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/min_cost_flow_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/min_cost_flow_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1717#include <iostream>
    1818#include "test_tools.h"
    19 #include <hugo/list_graph.h>
    20 #include <hugo/min_cost_flow.h>
     19#include <lemon/list_graph.h>
     20#include <lemon/min_cost_flow.h>
    2121//#include <path.h>
    2222//#include <maps.h>
    2323
    2424using namespace std;
    25 using namespace hugo;
     25using namespace lemon;
    2626
    2727
  • src/test/path_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/path_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/path_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1717#include <string>
    1818#include <iostream>
    19 #include <hugo/skeletons/path.h>
    20 #include <hugo/path.h>
    21 #include <hugo/list_graph.h>
     19#include <lemon/skeletons/path.h>
     20#include <lemon/path.h>
     21#include <lemon/list_graph.h>
    2222
    2323using namespace std;
    24 using namespace hugo;
     24using namespace lemon;
    2525using namespace skeleton;
    2626
  • src/test/preflow_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/preflow_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/preflow_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1919
    2020#include "test_tools.h"
    21 #include <hugo/smart_graph.h>
    22 #include <hugo/dimacs.h>
    23 #include <hugo/preflow.h>
    24 #include <hugo/skeletons/graph.h>
    25 #include <hugo/skeletons/maps.h>
    26 
    27 using namespace hugo;
     21#include <lemon/smart_graph.h>
     22#include <lemon/dimacs.h>
     23#include <lemon/preflow.h>
     24#include <lemon/skeletons/graph.h>
     25#include <lemon/skeletons/maps.h>
     26
     27using namespace lemon;
    2828
    2929void check_Preflow()
  • src/test/suurballe_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/suurballe_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/suurballe_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1616
    1717#include <iostream>
    18 #include <hugo/list_graph.h>
    19 #include <hugo/suurballe.h>
     18#include <lemon/list_graph.h>
     19#include <lemon/suurballe.h>
    2020//#include <path.h>
    2121#include "test_tools.h"
    2222
    2323using namespace std;
    24 using namespace hugo;
     24using namespace lemon;
    2525
    2626
  • src/test/test_tools.h

    r919 r921  
    11/* -*- C++ -*-
    2  * src/test/test_tools.h - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/test_tools.h - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1515 */
    1616
    17 #ifndef HUGO_TEST_TEST_TOOLS_H
    18 #define HUGO_TEST_TEST_TOOLS_H
     17#ifndef LEMON_TEST_TEST_TOOLS_H
     18#define LEMON_TEST_TEST_TOOLS_H
    1919
    2020//! \ingroup misc
  • src/test/test_tools_fail.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/test_tools_fail.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/test_tools_fail.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
  • src/test/test_tools_pass.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/test_tools_pass.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/test_tools_pass.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
  • src/test/time_measure_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/time_measure_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/time_measure_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1515 */
    1616
    17 #include <hugo/time_measure.h>
     17#include <lemon/time_measure.h>
    1818
    1919///\file \brief Test cases for time_measure.h
     
    2222
    2323
    24 using namespace hugo;
     24using namespace lemon;
    2525
    2626int main()
  • src/test/unionfind_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/unionfind_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/unionfind_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1717#include <iostream>
    1818
    19 #include <hugo/maps.h>
    20 #include <hugo/unionfind.h>
     19#include <lemon/maps.h>
     20#include <lemon/unionfind.h>
    2121#include "test_tools.h"
    2222
    23 using namespace hugo;
     23using namespace lemon;
    2424using namespace std;
    2525
  • src/test/xy_test.cc

    r906 r921  
    11/* -*- C++ -*-
    2  * src/test/xy_test.cc - Part of HUGOlib, a generic C++ optimization library
     2 * src/test/xy_test.cc - Part of LEMON, a generic C++ optimization library
    33 *
    44 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     
    1515 */
    1616
    17 #include <hugo/xy.h>
     17#include <lemon/xy.h>
    1818#include <iostream>
    1919#include "test_tools.h"
    2020
    2121using namespace std;
    22 using namespace hugo;
     22using namespace lemon;
    2323int main()
    2424{
Note: See TracChangeset for help on using the changeset viewer.