Changeset 921:818510fa3d99 in lemon-0.x for src
- Timestamp:
- 09/29/04 17:30:04 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1232
- Location:
- src
- Files:
-
- 1 added
- 136 edited
- 37 moved
Legend:
- Unmodified
- Added
- Removed
-
src/Makefile.am
r841 r921 1 SUBDIRS = hugobenchmark test1 SUBDIRS = lemon benchmark test -
src/benchmark/bench_tools.h
r750 r921 1 1 // -*- mode:C++ -*- 2 #ifndef HUGO_BENCH_TEST_H3 #define HUGO_BENCH_TEST_H2 #ifndef LEMON_BENCH_TEST_H 3 #define LEMON_BENCH_TEST_H 4 4 5 5 #include<vector> 6 6 #include<iostream> 7 7 8 #include< hugo/time_measure.h>8 #include<lemon/time_measure.h> 9 9 10 10 ///An experimental typedef factory … … 75 75 }; 76 76 77 inline void PrintTime(char *ID, hugo::Timer &T)77 inline void PrintTime(char *ID,lemon::Timer &T) 78 78 { 79 hugo::TimeStamp S(T);79 lemon::TimeStamp S(T); 80 80 std::cout << ID << ' ' << S.getUserTime() << ' ' 81 81 << S.getSystemTime() << ' ' << S.getRealTime() << std::endl; -
src/benchmark/bfs-bench.cc
r839 r921 3 3 #include <queue> 4 4 #include<math.h> 5 #include< hugo/smart_graph.h>5 #include<lemon/smart_graph.h> 6 6 #include"bench_tools.h" 7 7 8 8 using namespace std; 9 using namespace hugo;9 using namespace lemon; 10 10 11 11 inline int numOfOnes(int n,int dim) -
src/benchmark/graph-bench.cc
r718 r921 1 1 #include<math.h> 2 #include< hugo/list_graph.h>2 #include<lemon/list_graph.h> 3 3 4 4 #include"bench_tools.h" 5 5 6 using namespace hugo;6 using namespace lemon; 7 7 8 8 ///Makes a full graph by adding and deleting a lot of edges; … … 46 46 int main() 47 47 { 48 hugo::Timer T;48 lemon::Timer T; 49 49 makeFullGraph<ListGraph>(nextPrim(1000),nextPrim(300),nextPrim(100)); 50 50 -
src/benchmark/hcube.cc
r905 r921 2 2 3 3 #include<math.h> 4 #include< hugo/list_graph.h>5 #include< hugo/smart_graph.h>6 #include< hugo/dijkstra.h>7 #include< hugo/preflow.h>4 #include<lemon/list_graph.h> 5 #include<lemon/smart_graph.h> 6 #include<lemon/dijkstra.h> 7 #include<lemon/preflow.h> 8 8 9 9 #include"bench_tools.h" 10 10 11 11 using namespace std; 12 using namespace hugo;12 using namespace lemon; 13 13 14 14 inline int numOfOnes(int n,int dim) -
src/demo/sub_graph_wrapper_demo.cc
r888 r921 9 9 #include <fstream> 10 10 11 #include < hugo/smart_graph.h>12 #include < hugo/dijkstra.h>13 #include < hugo/maps.h>14 #include < hugo/graph_wrapper.h>15 #include < hugo/dimacs.h>16 #include < hugo/preflow.h>17 #include < hugo/tight_edge_filter_map.h>11 #include <lemon/smart_graph.h> 12 #include <lemon/dijkstra.h> 13 #include <lemon/maps.h> 14 #include <lemon/graph_wrapper.h> 15 #include <lemon/dimacs.h> 16 #include <lemon/preflow.h> 17 #include <lemon/tight_edge_filter_map.h> 18 18 19 using namespace hugo;19 using namespace lemon; 20 20 21 21 using std::cout; -
src/lemon/array_map.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/array_map.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/array_map.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_ARRAY_MAP_H18 #define HUGO_ARRAY_MAP_H17 #ifndef LEMON_ARRAY_MAP_H 18 #define LEMON_ARRAY_MAP_H 19 19 20 20 #include <memory> 21 21 22 #include < hugo/map_iterator.h>23 #include < hugo/map_bits.h>22 #include <lemon/map_iterator.h> 23 #include <lemon/map_bits.h> 24 24 25 25 ///\ingroup graphmaps … … 28 28 ///their elements dynamically. 29 29 30 namespace hugo{30 namespace lemon { 31 31 32 32 … … 347 347 } 348 348 349 #endif // HUGO_ARRAY_MAP_H349 #endif //LEMON_ARRAY_MAP_H -
src/lemon/attic/debug.h
r907 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/debug.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/debug.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_DEBUG_H18 #define HUGO_DEBUG_H17 #ifndef LEMON_DEBUG_H 18 #define LEMON_DEBUG_H 19 19 20 20 //! \file 21 21 //! \brief Basic definitions for debug control. 22 22 23 namespace hugo{23 namespace lemon { 24 24 25 25 //! Debug mode for testing/debugging … … 68 68 69 69 } 70 #endif // HUGO_DEBUG_H70 #endif // LEMON_DEBUG_H -
src/lemon/attic/error.h
r907 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/error.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/error.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_ERROR_H18 #define HUGO_ERROR_H17 #ifndef LEMON_ERROR_H 18 #define LEMON_ERROR_H 19 19 20 20 //! \ingroup misc … … 27 27 28 28 29 namespace hugo{29 namespace lemon { 30 30 31 31 /** … … 75 75 76 76 # define FIXME(msg) \ 77 do { throw :: hugo::Exception() << "FIXME: " msg " (in: " \77 do { throw ::lemon::Exception() << "FIXME: " msg " (in: " \ 78 78 __FILE__ ", " << __LINE__ << ")"; \ 79 79 } while(false) 80 80 81 81 } 82 #endif // HUGO_ERROR_H82 #endif // LEMON_ERROR_H -
src/lemon/attic/tight_edge_filter_map.h
r919 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/tight_edge_filter_map.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/tight_edge_filter_map.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_TIGHT_EDGE_FILTER_MAP_H18 #define HUGO_TIGHT_EDGE_FILTER_MAP_H17 #ifndef LEMON_TIGHT_EDGE_FILTER_MAP_H 18 #define LEMON_TIGHT_EDGE_FILTER_MAP_H 19 19 20 #include < hugo/maps.h>20 #include <lemon/maps.h> 21 21 22 22 // /// \file … … 24 24 // /// \ingroup galgs 25 25 26 namespace hugo{26 namespace lemon { 27 27 28 28 /// \brief A map for filtering the edge-set to those edges … … 57 57 }; 58 58 59 } //namespace hugo59 } //namespace lemon 60 60 61 #endif // HUGO_TIGHT_EDGE_FILTER_MAP_H61 #endif //LEMON_TIGHT_EDGE_FILTER_MAP_H 62 62 63 63 -
src/lemon/bfs.h
r911 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/bfs.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/bfs.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_BFS_H18 #define HUGO_BFS_H17 #ifndef LEMON_BFS_H 18 #define LEMON_BFS_H 19 19 20 20 ///\ingroup flowalgs … … 24 24 ///\todo Revise Manual. 25 25 26 #include < hugo/bin_heap.h>27 #include < hugo/invalid.h>28 29 namespace hugo{26 #include <lemon/bin_heap.h> 27 #include <lemon/invalid.h> 28 29 namespace lemon { 30 30 31 31 /// \addtogroup flowalgs … … 280 280 /// @} 281 281 282 } //END OF NAMESPACE HUGO282 } //END OF NAMESPACE LEMON 283 283 284 284 #endif -
src/lemon/bin_heap.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/bin_heap.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/bin_heap.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_BIN_HEAP_H18 #define HUGO_BIN_HEAP_H17 #ifndef LEMON_BIN_HEAP_H 18 #define LEMON_BIN_HEAP_H 19 19 20 20 ///\ingroup auxdat … … 27 27 #include <functional> 28 28 29 namespace hugo{29 namespace lemon { 30 30 31 31 /// \addtogroup auxdat … … 199 199 ///@} 200 200 201 } // namespace hugo202 203 #endif // HUGO_BIN_HEAP_H201 } // namespace lemon 202 203 #endif // LEMON_BIN_HEAP_H -
src/lemon/default_map.h
r919 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/default_map.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/default_map.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_DEFAULT_MAP_H18 #define HUGO_DEFAULT_MAP_H17 #ifndef LEMON_DEFAULT_MAP_H 18 #define LEMON_DEFAULT_MAP_H 19 19 20 20 21 #include < hugo/array_map.h>22 #include < hugo/vector_map.h>21 #include <lemon/array_map.h> 22 #include <lemon/vector_map.h> 23 23 24 24 ///\ingroup graphmaps … … 27 27 ///their elements dynamically. 28 28 29 namespace hugo{29 namespace lemon { 30 30 31 31 /// \addtogroup graphmaps -
src/lemon/dfs.h
r911 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/dfs.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/dfs.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_DFS_H18 #define HUGO_DFS_H17 #ifndef LEMON_DFS_H 18 #define LEMON_DFS_H 19 19 20 20 ///\ingroup flowalgs … … 24 24 ///\todo Revise Manual. 25 25 26 #include < hugo/bin_heap.h>27 #include < hugo/invalid.h>28 29 namespace hugo{26 #include <lemon/bin_heap.h> 27 #include <lemon/invalid.h> 28 29 namespace lemon { 30 30 31 31 /// \addtogroup flowalgs … … 284 284 /// @} 285 285 286 } //END OF NAMESPACE HUGO286 } //END OF NAMESPACE LEMON 287 287 288 288 #endif -
src/lemon/dijkstra.h
r911 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/dijkstra.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/dijkstra.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_DIJKSTRA_H18 #define HUGO_DIJKSTRA_H17 #ifndef LEMON_DIJKSTRA_H 18 #define LEMON_DIJKSTRA_H 19 19 20 20 ///\ingroup flowalgs … … 22 22 ///\brief Dijkstra algorithm. 23 23 24 #include < hugo/bin_heap.h>25 #include < hugo/invalid.h>26 27 namespace hugo{24 #include <lemon/bin_heap.h> 25 #include <lemon/invalid.h> 26 27 namespace lemon { 28 28 29 29 /// \addtogroup flowalgs … … 338 338 /// @} 339 339 340 } //END OF NAMESPACE HUGO340 } //END OF NAMESPACE LEMON 341 341 342 342 #endif -
src/lemon/dimacs.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/dimacs.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/dimacs.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_DIMACS_H18 #define HUGO_DIMACS_H17 #ifndef LEMON_DIMACS_H 18 #define LEMON_DIMACS_H 19 19 20 20 #include <iostream> 21 21 #include <string> 22 22 #include <vector> 23 #include < hugo/maps.h>23 #include <lemon/maps.h> 24 24 25 25 /// \ingroup misc … … 27 27 /// \brief Dimacs file format reader. 28 28 29 namespace hugo{29 namespace lemon { 30 30 31 31 … … 203 203 /// @} 204 204 205 } //namespace hugo206 207 #endif // HUGO_DIMACS_H205 } //namespace lemon 206 207 #endif //LEMON_DIMACS_H -
src/lemon/extended_pair.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/extended_pair.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/extended_pair.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_EXTENDED_PAIR_H18 #define HUGO_EXTENDED_PAIR_H17 #ifndef LEMON_EXTENDED_PAIR_H 18 #define LEMON_EXTENDED_PAIR_H 19 19 20 20 template <typename T1, typename A1, typename T2, typename A2> -
src/lemon/fib_heap.h
r911 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/fib_heap.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/fib_heap.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_FIB_HEAP_H18 #define HUGO_FIB_HEAP_H17 #ifndef LEMON_FIB_HEAP_H 18 #define LEMON_FIB_HEAP_H 19 19 20 20 ///\file … … 26 26 #include <math.h> 27 27 28 namespace hugo{28 namespace lemon { 29 29 30 30 /// \addtogroup auxdat … … 505 505 ///@} 506 506 507 } //namespace hugo508 509 #endif // HUGO_FIB_HEAP_H510 507 } //namespace lemon 508 509 #endif //LEMON_FIB_HEAP_H 510 -
src/lemon/full_graph.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/full_graph.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/full_graph.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_FULL_GRAPH_H18 #define HUGO_FULL_GRAPH_H17 #ifndef LEMON_FULL_GRAPH_H 18 #define LEMON_FULL_GRAPH_H 19 19 20 20 ///\ingroup graphs … … 25 25 #include <climits> 26 26 27 #include < hugo/invalid.h>28 29 #include < hugo/map_registry.h>30 #include < hugo/array_map.h>31 32 #include < hugo/map_defines.h>33 34 namespace hugo{27 #include <lemon/invalid.h> 28 29 #include <lemon/map_registry.h> 30 #include <lemon/array_map.h> 31 32 #include <lemon/map_defines.h> 33 34 namespace lemon { 35 35 36 36 /// \addtogroup graphs … … 241 241 /// @} 242 242 243 } //namespace hugo244 245 246 247 248 #endif // HUGO_FULL_GRAPH_H243 } //namespace lemon 244 245 246 247 248 #endif //LEMON_FULL_GRAPH_H -
src/lemon/graph_wrapper.h
r911 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/graph_wrapper.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/graph_wrapper.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_GRAPH_WRAPPER_H18 #define HUGO_GRAPH_WRAPPER_H17 #ifndef LEMON_GRAPH_WRAPPER_H 18 #define LEMON_GRAPH_WRAPPER_H 19 19 20 20 ///\ingroup gwrappers … … 26 26 ///\author Marton Makai 27 27 28 #include < hugo/invalid.h>29 #include < hugo/maps.h>30 #include < hugo/map_defines.h>28 #include <lemon/invalid.h> 29 #include <lemon/maps.h> 30 #include <lemon/map_defines.h> 31 31 #include <iostream> 32 32 33 namespace hugo{33 namespace lemon { 34 34 35 35 // Graph wrappers 36 36 37 37 /// \addtogroup gwrappers 38 /// A main parts of HUGOlibare the different graph structures,38 /// A main parts of LEMON are the different graph structures, 39 39 /// generic graph algorithms, graph concepts which couple these, and 40 40 /// graph wrappers. While the previous ones are more or less clear, the … … 1222 1222 ///@} 1223 1223 1224 } //namespace hugo1225 1226 #endif // HUGO_GRAPH_WRAPPER_H1227 1224 } //namespace lemon 1225 1226 #endif //LEMON_GRAPH_WRAPPER_H 1227 -
src/lemon/invalid.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/invalid.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/invalid.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_INVALID_H18 #define HUGO_INVALID_H17 #ifndef LEMON_INVALID_H 18 #define LEMON_INVALID_H 19 19 20 20 ///\file 21 21 ///\brief Definition of INVALID. 22 22 23 namespace hugo{23 namespace lemon { 24 24 25 25 /// Dummy type to make it easier to make invalid iterators. … … 47 47 const Invalid INVALID = Invalid(); 48 48 49 } //namespace hugo49 } //namespace lemon 50 50 51 51 #endif -
src/lemon/kruskal.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/kruskal.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/kruskal.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_KRUSKAL_H18 #define HUGO_KRUSKAL_H17 #ifndef LEMON_KRUSKAL_H 18 #define LEMON_KRUSKAL_H 19 19 20 20 #include <algorithm> 21 #include < hugo/unionfind.h>21 #include <lemon/unionfind.h> 22 22 23 23 /** … … 37 37 ///Kruskal's algorithm to compute a minimum cost tree. 38 38 39 namespace hugo{39 namespace lemon { 40 40 41 41 /// \addtogroup spantree … … 344 344 /// @} 345 345 346 } //namespace hugo347 348 #endif // HUGO_KRUSKAL_H346 } //namespace lemon 347 348 #endif //LEMON_KRUSKAL_H -
src/lemon/list_graph.h
r919 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/list_graph.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/list_graph.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_LIST_GRAPH_H18 #define HUGO_LIST_GRAPH_H17 #ifndef LEMON_LIST_GRAPH_H 18 #define LEMON_LIST_GRAPH_H 19 19 20 20 ///\ingroup graphs … … 25 25 #include <climits> 26 26 27 #include < hugo/invalid.h>28 29 #include < hugo/map_registry.h>30 #include < hugo/array_map.h>31 32 #include < hugo/sym_map.h>33 34 #include < hugo/map_defines.h>35 36 37 namespace hugo{27 #include <lemon/invalid.h> 28 29 #include <lemon/map_registry.h> 30 #include <lemon/array_map.h> 31 32 #include <lemon/sym_map.h> 33 34 #include <lemon/map_defines.h> 35 36 37 namespace lemon { 38 38 39 39 /// \addtogroup graphs … … 424 424 ///of oppositely directed edges. 425 425 ///There is a new edge map type called 426 ///\ref hugo::SymListGraph::SymEdgeMap "SymEdgeMap"426 ///\ref lemon::SymListGraph::SymEdgeMap "SymEdgeMap" 427 427 ///that complements this 428 428 ///feature by 429 429 ///storing shared values for the edge pairs. The usual 430 ///\ref hugo::skeleton::StaticGraph::EdgeMap "EdgeMap"430 ///\ref lemon::skeleton::StaticGraph::EdgeMap "EdgeMap" 431 431 ///can be used 432 432 ///as well. 433 433 /// 434 434 ///The oppositely directed edge can also be obtained easily 435 ///using \ref hugo::SymListGraph::opposite() "opposite()" member function.435 ///using \ref lemon::SymListGraph::opposite() "opposite()" member function. 436 436 /// 437 437 ///Here erase(Edge) deletes a pair of edges. … … 1102 1102 /// @} 1103 1103 1104 } //namespace hugo1105 1106 #endif // HUGO_LIST_GRAPH_H1104 } //namespace lemon 1105 1106 #endif //LEMON_LIST_GRAPH_H -
src/lemon/map_bits.h
r919 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/map_bits.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/map_bits.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_MAP_BITS_H18 #define HUGO_MAP_BITS_H17 #ifndef LEMON_MAP_BITS_H 18 #define LEMON_MAP_BITS_H 19 19 20 20 ///\ingroup graphmaps … … 22 22 ///\brief Some utils to help implement maps. 23 23 24 namespace hugo{24 namespace lemon { 25 25 26 26 -
src/lemon/map_defines.h
r919 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/map_defines.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/map_defines.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_MAP_DEFINES_H18 #define HUGO_MAP_DEFINES_H17 #ifndef LEMON_MAP_DEFINES_H 18 #define LEMON_MAP_DEFINES_H 19 19 20 20 ///\ingroup graphmaps -
src/lemon/map_iterator.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/map_iterator.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/map_iterator.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_MAP_ITERATOR_H18 #define HUGO_MAP_ITERATOR_H17 #ifndef LEMON_MAP_ITERATOR_H 18 #define LEMON_MAP_ITERATOR_H 19 19 20 20 #include <iterator> 21 21 22 #include < hugo/extended_pair.h>22 #include <lemon/extended_pair.h> 23 23 24 24 ///\ingroup graphmaps … … 26 26 ///\brief Iterators on the maps. 27 27 28 namespace hugo{28 namespace lemon { 29 29 30 30 /// \addtogroup graphmaps -
src/lemon/map_registry.h
r919 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/map_registry.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/map_registry.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_MAP_REGISTRY_H18 #define HUGO_MAP_REGISTRY_H17 #ifndef LEMON_MAP_REGISTRY_H 18 #define LEMON_MAP_REGISTRY_H 19 19 20 20 #include <vector> … … 26 26 using namespace std; 27 27 28 namespace hugo{28 namespace lemon { 29 29 30 30 /// \addtogroup graphmapfactory -
src/lemon/maps.h
r911 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/maps.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/maps.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_MAPS_H18 #define HUGO_MAPS_H17 #ifndef LEMON_MAPS_H 18 #define LEMON_MAPS_H 19 19 20 20 ///\file … … 26 26 #include <map> 27 27 28 namespace hugo{28 namespace lemon { 29 29 30 30 /// Base class of maps. … … 174 174 175 175 } 176 #endif // HUGO_MAPS_H176 #endif // LEMON_MAPS_H -
src/lemon/min_cost_flow.h
r910 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/min_cost_flow.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/min_cost_flow.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_MIN_COST_FLOW_H18 #define HUGO_MIN_COST_FLOW_H17 #ifndef LEMON_MIN_COST_FLOW_H 18 #define LEMON_MIN_COST_FLOW_H 19 19 20 20 ///\ingroup flowalgs … … 23 23 24 24 25 #include < hugo/dijkstra.h>26 #include < hugo/graph_wrapper.h>27 #include < hugo/maps.h>25 #include <lemon/dijkstra.h> 26 #include <lemon/graph_wrapper.h> 27 #include <lemon/maps.h> 28 28 #include <vector> 29 29 30 namespace hugo{30 namespace lemon { 31 31 32 32 /// \addtogroup flowalgs … … 37 37 /// 38 38 /// 39 /// The class \ref hugo::MinCostFlow "MinCostFlow" implements39 /// The class \ref lemon::MinCostFlow "MinCostFlow" implements 40 40 /// an algorithm for finding a flow of value \c k 41 41 /// having minimal total cost … … 252 252 ///@} 253 253 254 } //namespace hugo255 256 #endif // HUGO_MIN_COST_FLOW_H254 } //namespace lemon 255 256 #endif //LEMON_MIN_COST_FLOW_H -
src/lemon/path.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/path.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/path.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 18 18 @defgroup paths Path Structures 19 19 @ingroup datas 20 \brief Path structures implemented in Hugo.21 22 Hugolibprovides flexible data structures20 \brief Path structures implemented in LEMON. 21 22 LEMON provides flexible data structures 23 23 to work with paths. 24 24 … … 27 27 algorithm to store its result in any kind of path structure. 28 28 29 \sa hugo::skeleton::Path29 \sa lemon::skeleton::Path 30 30 31 31 */ … … 35 35 ///\brief Classes for representing paths in graphs. 36 36 37 #ifndef HUGO_PATH_H38 #define HUGO_PATH_H37 #ifndef LEMON_PATH_H 38 #define LEMON_PATH_H 39 39 40 40 #include <deque> … … 42 42 #include <algorithm> 43 43 44 #include < hugo/invalid.h>45 46 namespace hugo{44 #include <lemon/invalid.h> 45 46 namespace lemon { 47 47 48 48 /// \addtogroup paths … … 705 705 ///@} 706 706 707 } // namespace hugo708 709 #endif // HUGO_PATH_H707 } // namespace lemon 708 709 #endif // LEMON_PATH_H -
src/lemon/preflow.h
r920 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/preflow.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/preflow.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_PREFLOW_H18 #define HUGO_PREFLOW_H17 #ifndef LEMON_PREFLOW_H 18 #define LEMON_PREFLOW_H 19 19 20 20 #include <vector> 21 21 #include <queue> 22 22 23 #include < hugo/invalid.h>24 #include < hugo/maps.h>23 #include <lemon/invalid.h> 24 #include <lemon/maps.h> 25 25 26 26 /// \file … … 28 28 /// Implementation of the preflow algorithm. 29 29 30 namespace hugo{30 namespace lemon { 31 31 32 32 /// \addtogroup flowalgs … … 45 45 ///setFlow. 46 46 /// 47 ///After running \ref hugo::Preflow::phase1() "phase1()"48 ///or \ref hugo::Preflow::run() "run()", the maximal flow47 ///After running \ref lemon::Preflow::phase1() "phase1()" 48 ///or \ref lemon::Preflow::run() "run()", the maximal flow 49 49 ///value can be obtained by calling \ref flowValue(). The minimum 50 50 ///value cut can be written into a <tt>bool</tt> node map by … … 811 811 812 812 }; 813 } //namespace hugo814 815 #endif // HUGO_PREFLOW_H816 817 818 819 813 } //namespace lemon 814 815 #endif //LEMON_PREFLOW_H 816 817 818 819 -
src/lemon/skeletons/graph.h
r911 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/skeletons/graph.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/skeletons/graph.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_SKELETON_GRAPH_H18 #define HUGO_SKELETON_GRAPH_H17 #ifndef LEMON_SKELETON_GRAPH_H 18 #define LEMON_SKELETON_GRAPH_H 19 19 20 20 ///\ingroup skeletons … … 22 22 ///\brief Declaration of Graph. 23 23 24 #include < hugo/invalid.h>25 #include < hugo/skeletons/maps.h>26 27 namespace hugo{24 #include <lemon/invalid.h> 25 #include <lemon/skeletons/maps.h> 26 27 namespace lemon { 28 28 namespace skeleton { 29 29 … … 504 504 // @} 505 505 } //namespace skeleton 506 } //namespace hugo507 508 509 510 #endif // HUGO_SKELETON_GRAPH_H506 } //namespace lemon 507 508 509 510 #endif // LEMON_SKELETON_GRAPH_H -
src/lemon/skeletons/maps.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/skeletons/maps.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/skeletons/maps.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_MAPSKELETON_H18 #define HUGO_MAPSKELETON_H17 #ifndef LEMON_MAPSKELETON_H 18 #define LEMON_MAPSKELETON_H 19 19 20 20 ///\ingroup skeletons … … 22 22 ///\brief Map concepts checking classes for testing and documenting. 23 23 24 namespace hugo{24 namespace lemon { 25 25 26 26 namespace skeleton { … … 117 117 118 118 } //namespace skeleton 119 } //namespace hugo120 #endif // HUGO_MAPSKELETON_H119 } //namespace lemon 120 #endif // LEMON_MAPSKELETON_H -
src/lemon/skeletons/path.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/skeletons/path.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/skeletons/path.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 19 19 ///\brief Classes for representing paths in graphs. 20 20 21 #ifndef HUGO_SKELETON_PATH_H22 #define HUGO_SKELETON_PATH_H23 24 #include < hugo/invalid.h>25 26 namespace hugo{21 #ifndef LEMON_SKELETON_PATH_H 22 #define LEMON_SKELETON_PATH_H 23 24 #include <lemon/invalid.h> 25 26 namespace lemon { 27 27 namespace skeleton { 28 28 /// \addtogroup skeletons … … 232 232 } 233 233 234 } // namespace hugo235 236 #endif // HUGO_SKELETON_PATH_H234 } // namespace lemon 235 236 #endif // LEMON_SKELETON_PATH_H -
src/lemon/smart_graph.h
r919 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/smart_graph.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/smart_graph.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_SMART_GRAPH_H18 #define HUGO_SMART_GRAPH_H17 #ifndef LEMON_SMART_GRAPH_H 18 #define LEMON_SMART_GRAPH_H 19 19 20 20 ///\ingroup graphs … … 25 25 #include <climits> 26 26 27 #include < hugo/invalid.h>28 29 #include < hugo/array_map.h>30 #include < hugo/sym_map.h>31 32 #include < hugo/map_registry.h>33 34 #include < hugo/map_defines.h>35 36 namespace hugo{27 #include <lemon/invalid.h> 28 29 #include <lemon/array_map.h> 30 #include <lemon/sym_map.h> 31 32 #include <lemon/map_registry.h> 33 34 #include <lemon/map_defines.h> 35 36 namespace lemon { 37 37 38 38 /// \addtogroup graphs … … 357 357 358 358 /// @} 359 } //namespace hugo360 361 362 363 364 #endif // HUGO_SMART_GRAPH_H359 } //namespace lemon 360 361 362 363 364 #endif //LEMON_SMART_GRAPH_H -
src/lemon/suurballe.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/suurballe.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/suurballe.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_SUURBALLE_H18 #define HUGO_SUURBALLE_H17 #ifndef LEMON_SUURBALLE_H 18 #define LEMON_SUURBALLE_H 19 19 20 20 ///\ingroup flowalgs … … 23 23 24 24 25 #include < hugo/maps.h>25 #include <lemon/maps.h> 26 26 #include <vector> 27 #include < hugo/min_cost_flow.h>28 29 namespace hugo{27 #include <lemon/min_cost_flow.h> 28 29 namespace lemon { 30 30 31 31 /// \addtogroup flowalgs … … 35 35 /// of minimal total length 36 36 /// 37 /// The class \ref hugo::Suurballe implements37 /// The class \ref lemon::Suurballe implements 38 38 /// an algorithm for finding k edge-disjoint paths 39 39 /// from a given source node to a given target node in an … … 188 188 ///then the result here will be an empty path (\c j can be 0 as well). 189 189 /// 190 ///\param Path The type of the path structure to put the result to (must meet hugopath concept).190 ///\param Path The type of the path structure to put the result to (must meet lemon path concept). 191 191 ///\param p The path to put the result to 192 192 ///\param j Which path you want to get from the found paths (in a real application you would get the found paths iteratively) … … 211 211 ///@} 212 212 213 } //namespace hugo214 215 #endif // HUGO_SUURBALLE_H213 } //namespace lemon 214 215 #endif //LEMON_SUURBALLE_H -
src/lemon/sym_map.h
r919 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/sym_map.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/sym_map.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_SYM_MAP_H18 #define HUGO_SYM_MAP_H17 #ifndef LEMON_SYM_MAP_H 18 #define LEMON_SYM_MAP_H 19 19 20 20 ///\ingroup graphmaps … … 23 23 ///their elements dynamically. 24 24 25 namespace hugo{25 namespace lemon { 26 26 27 27 /// \addtogroup graphmaps -
src/lemon/template.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/template.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/template.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_TEMPLATE_H18 #define HUGO_TEMPLATE_H17 #ifndef LEMON_TEMPLATE_H 18 #define LEMON_TEMPLATE_H 19 19 20 #endif // HUGO_TEMPLATE_H20 #endif // LEMON_TEMPLATE_H -
src/lemon/time_measure.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/time_measure.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/time_measure.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_TIME_MEASURE_H18 #define HUGO_TIME_MEASURE_H17 #ifndef LEMON_TIME_MEASURE_H 18 #define LEMON_TIME_MEASURE_H 19 19 20 20 ///\ingroup misc … … 28 28 #include <unistd.h> 29 29 30 namespace hugo{30 namespace lemon { 31 31 32 32 /// \addtogroup misc … … 143 143 ///It is quite easy-to-use, here is a short example. 144 144 ///\code 145 ///#include< hugo/time_measure.h>145 ///#include<lemon/time_measure.h> 146 146 ///#include<iostream> 147 147 /// … … 223 223 /// @} 224 224 225 } //namespace hugo226 227 #endif // HUGO_TIME_MEASURE_H225 } //namespace lemon 226 227 #endif //LEMON_TIME_MEASURE_H -
src/lemon/unionfind.h
r914 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/unionfind.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/unionfind.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_UNION_FIND_H18 #define HUGO_UNION_FIND_H17 #ifndef LEMON_UNION_FIND_H 18 #define LEMON_UNION_FIND_H 19 19 20 20 //!\ingroup auxdat … … 31 31 #include <algorithm> 32 32 33 #include < hugo/invalid.h>34 35 namespace hugo{33 #include <lemon/invalid.h> 34 35 namespace lemon { 36 36 37 37 //! \addtogroup auxdat … … 720 720 //! @} 721 721 722 } //namespace hugo723 724 #endif // HUGO_UNION_FIND_H722 } //namespace lemon 723 724 #endif //LEMON_UNION_FIND_H -
src/lemon/vector_map.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/vector_map.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/vector_map.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_VECTOR_MAP_H18 #define HUGO_VECTOR_MAP_H17 #ifndef LEMON_VECTOR_MAP_H 18 #define LEMON_VECTOR_MAP_H 19 19 20 20 #include <vector> 21 21 22 #include < hugo/map_iterator.h>23 #include < hugo/map_bits.h>22 #include <lemon/map_iterator.h> 23 #include <lemon/map_bits.h> 24 24 25 25 ///\ingroup graphmaps … … 27 27 ///\brief Vector based graph maps. 28 28 29 namespace hugo{29 namespace lemon { 30 30 31 31 /// \addtogroup graphmaps -
src/lemon/xy.h
r906 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/xy.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/xy.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_XY_H18 #define HUGO_XY_H17 #ifndef LEMON_XY_H 18 #define LEMON_XY_H 19 19 20 20 #include <iostream> … … 24 24 ///\brief A simple two dimensional vector and a bounding box implementation 25 25 /// 26 /// The class \ref hugo::xy "xy" implements26 /// The class \ref lemon::xy "xy" implements 27 27 ///a two dimensional vector with the usual 28 28 /// operations. 29 29 /// 30 /// The class \ref hugo::BoundingBox "BoundingBox" can be used to determine31 /// the rectangular bounding box a set of \ref hugo::xy "xy"'s.30 /// The class \ref lemon::BoundingBox "BoundingBox" can be used to determine 31 /// the rectangular bounding box a set of \ref lemon::xy "xy"'s. 32 32 /// 33 33 ///\author Attila Bernath 34 34 35 35 36 namespace hugo{36 namespace lemon { 37 37 38 38 /// \addtogroup misc … … 244 244 245 245 246 } //namespace hugo247 248 #endif // HUGO_XY_H246 } //namespace lemon 247 248 #endif //LEMON_XY_H -
src/test/bfs_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/bfs_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/bfs_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 16 16 17 17 #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> 21 21 22 using namespace hugo;22 using namespace lemon; 23 23 24 24 const int PET_SIZE =5; -
src/test/dfs_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/dfs_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/dfs_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 16 16 17 17 #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> 21 21 22 using namespace hugo;22 using namespace lemon; 23 23 24 24 const int PET_SIZE =5; -
src/test/dijkstra_heap_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/dijkstra_heap_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/dijkstra_heap_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 20 20 21 21 //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 both22 //in /lemon_loc/testfiles/dimacs). It runs dijkstra.h on this graph with both 23 23 //heaps, checking two postconditions: 24 24 … … 31 31 #include <math.h> 32 32 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> 39 39 40 using namespace hugo;40 using namespace lemon; 41 41 42 42 int main(int, char **) { -
src/test/dijkstra_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/dijkstra_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/dijkstra_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 16 16 17 17 #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> 22 using namespace lemon; 23 23 24 24 const int PET_SIZE =5; -
src/test/error_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/error_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/error_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 17 17 #include <iostream> 18 18 19 #include < hugo/error.h>19 #include <lemon/error.h> 20 20 #include "test_tools.h" 21 using namespace hugo;21 using namespace lemon; 22 22 using std::cout; 23 23 using std::endl; -
src/test/graph_test.cc
r919 r921 1 1 /* -*- C++ -*- 2 * src/test/graph_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/graph_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 16 16 17 17 #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> 22 22 23 23 #include"test_tools.h" … … 34 34 */ 35 35 36 using namespace hugo;36 using namespace lemon; 37 37 38 38 template<class Graph> void bidirPetersen(Graph &G) … … 69 69 70 70 //Compile Graph 71 template void hugo::checkCompileStaticGraph<skeleton::StaticGraph>71 template void lemon::checkCompileStaticGraph<skeleton::StaticGraph> 72 72 (skeleton::StaticGraph &); 73 73 74 template void hugo::checkCompileGraph<skeleton::ExtendableGraph>74 template void lemon::checkCompileGraph<skeleton::ExtendableGraph> 75 75 (skeleton::ExtendableGraph &); 76 76 77 template void hugo::checkCompileErasableGraph<skeleton::ErasableGraph>77 template void lemon::checkCompileErasableGraph<skeleton::ErasableGraph> 78 78 (skeleton::ErasableGraph &); 79 79 80 80 //Compile SmartGraph 81 template void hugo::checkCompileGraph<SmartGraph>(SmartGraph &);82 template void hugo::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &);81 template void lemon::checkCompileGraph<SmartGraph>(SmartGraph &); 82 template void lemon::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &); 83 83 84 84 //Compile SymSmartGraph 85 template void hugo::checkCompileGraph<SymSmartGraph>(SymSmartGraph &);86 template void hugo::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &);85 template void lemon::checkCompileGraph<SymSmartGraph>(SymSmartGraph &); 86 template void lemon::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &); 87 87 88 88 //Compile ListGraph 89 template void hugo::checkCompileGraph<ListGraph>(ListGraph &);90 template void hugo::checkCompileErasableGraph<ListGraph>(ListGraph &);91 template void hugo::checkCompileGraphFindEdge<ListGraph>(ListGraph &);89 template void lemon::checkCompileGraph<ListGraph>(ListGraph &); 90 template void lemon::checkCompileErasableGraph<ListGraph>(ListGraph &); 91 template void lemon::checkCompileGraphFindEdge<ListGraph>(ListGraph &); 92 92 93 93 94 94 //Compile SymListGraph 95 template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &);96 template void hugo::checkCompileErasableGraph<SymListGraph>(SymListGraph &);97 template void hugo::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &);95 template void lemon::checkCompileGraph<SymListGraph>(SymListGraph &); 96 template void lemon::checkCompileErasableGraph<SymListGraph>(SymListGraph &); 97 template void lemon::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &); 98 98 99 99 //Compile FullGraph 100 template void hugo::checkCompileStaticGraph<FullGraph>(FullGraph &);101 template void hugo::checkCompileGraphFindEdge<FullGraph>(FullGraph &);100 template void lemon::checkCompileStaticGraph<FullGraph>(FullGraph &); 101 template void lemon::checkCompileGraphFindEdge<FullGraph>(FullGraph &); 102 102 103 103 //Compile EdgeSet <ListGraph> 104 template void hugo::checkCompileGraph<EdgeSet <ListGraph> >104 template void lemon::checkCompileGraph<EdgeSet <ListGraph> > 105 105 (EdgeSet <ListGraph> &); 106 template void hugo::checkCompileGraphEraseEdge<EdgeSet <ListGraph> >106 template void lemon::checkCompileGraphEraseEdge<EdgeSet <ListGraph> > 107 107 (EdgeSet <ListGraph> &); 108 template void hugo::checkCompileGraphFindEdge<EdgeSet <ListGraph> >108 template void lemon::checkCompileGraphFindEdge<EdgeSet <ListGraph> > 109 109 (EdgeSet <ListGraph> &); 110 110 111 111 //Compile EdgeSet <NodeSet> 112 template void hugo::checkCompileGraph<EdgeSet <NodeSet> >(EdgeSet <NodeSet> &);113 template void hugo::checkCompileGraphEraseEdge<EdgeSet <NodeSet> >112 template void lemon::checkCompileGraph<EdgeSet <NodeSet> >(EdgeSet <NodeSet> &); 113 template void lemon::checkCompileGraphEraseEdge<EdgeSet <NodeSet> > 114 114 (EdgeSet <NodeSet> &); 115 template void hugo::checkCompileGraphFindEdge<EdgeSet <NodeSet> >115 template void lemon::checkCompileGraphFindEdge<EdgeSet <NodeSet> > 116 116 (EdgeSet <NodeSet> &); 117 117 -
src/test/graph_test.h
r919 r921 1 1 /* -*- C++ -*- 2 * src/test/graph_test.h - Part of HUGOlib, a generic C++ optimization library2 * src/test/graph_test.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 14 14 * 15 15 */ 16 #ifndef HUGO_TEST_GRAPH_TEST_H17 #define HUGO_TEST_GRAPH_TEST_H16 #ifndef LEMON_TEST_GRAPH_TEST_H 17 #define LEMON_TEST_GRAPH_TEST_H 18 18 19 19 … … 23 23 //! \file 24 24 //! \brief Some utility to test graph classes. 25 namespace hugo{25 namespace lemon { 26 26 27 27 struct DummyType { … … 320 320 321 321 322 } //namespace hugo322 } //namespace lemon 323 323 324 324 -
src/test/graph_wrapper_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/graph_wrapper_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/graph_wrapper_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 16 16 17 17 #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> 23 23 24 24 #include"test/test_tools.h" … … 32 32 */ 33 33 34 using namespace hugo;34 using namespace lemon; 35 35 36 36 -
src/test/kruskal_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/kruskal_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/kruskal_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 19 19 20 20 #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> 26 26 27 27 28 28 using namespace std; 29 using namespace hugo;29 using namespace lemon; 30 30 31 31 void checkCompileKruskal() -
src/test/min_cost_flow_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/min_cost_flow_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/min_cost_flow_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 17 17 #include <iostream> 18 18 #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> 21 21 //#include <path.h> 22 22 //#include <maps.h> 23 23 24 24 using namespace std; 25 using namespace hugo;25 using namespace lemon; 26 26 27 27 -
src/test/path_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/path_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/path_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 17 17 #include <string> 18 18 #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> 22 22 23 23 using namespace std; 24 using namespace hugo;24 using namespace lemon; 25 25 using namespace skeleton; 26 26 -
src/test/preflow_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/preflow_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/preflow_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 19 19 20 20 #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 27 using namespace lemon; 28 28 29 29 void check_Preflow() -
src/test/suurballe_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/suurballe_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/suurballe_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 16 16 17 17 #include <iostream> 18 #include < hugo/list_graph.h>19 #include < hugo/suurballe.h>18 #include <lemon/list_graph.h> 19 #include <lemon/suurballe.h> 20 20 //#include <path.h> 21 21 #include "test_tools.h" 22 22 23 23 using namespace std; 24 using namespace hugo;24 using namespace lemon; 25 25 26 26 -
src/test/test_tools.h
r919 r921 1 1 /* -*- C++ -*- 2 * src/test/test_tools.h - Part of HUGOlib, a generic C++ optimization library2 * src/test/test_tools.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_TEST_TEST_TOOLS_H18 #define HUGO_TEST_TEST_TOOLS_H17 #ifndef LEMON_TEST_TEST_TOOLS_H 18 #define LEMON_TEST_TEST_TOOLS_H 19 19 20 20 //! \ingroup misc -
src/test/test_tools_fail.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/test_tools_fail.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/test_tools_fail.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport -
src/test/test_tools_pass.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/test_tools_pass.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/test_tools_pass.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport -
src/test/time_measure_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/time_measure_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/time_measure_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #include < hugo/time_measure.h>17 #include <lemon/time_measure.h> 18 18 19 19 ///\file \brief Test cases for time_measure.h … … 22 22 23 23 24 using namespace hugo;24 using namespace lemon; 25 25 26 26 int main() -
src/test/unionfind_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/unionfind_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/unionfind_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 17 17 #include <iostream> 18 18 19 #include < hugo/maps.h>20 #include < hugo/unionfind.h>19 #include <lemon/maps.h> 20 #include <lemon/unionfind.h> 21 21 #include "test_tools.h" 22 22 23 using namespace hugo;23 using namespace lemon; 24 24 using namespace std; 25 25 -
src/test/xy_test.cc
r906 r921 1 1 /* -*- C++ -*- 2 * src/test/xy_test.cc - Part of HUGOlib, a generic C++ optimization library2 * src/test/xy_test.cc - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #include < hugo/xy.h>17 #include <lemon/xy.h> 18 18 #include <iostream> 19 19 #include "test_tools.h" 20 20 21 21 using namespace std; 22 using namespace hugo;22 using namespace lemon; 23 23 int main() 24 24 { -
src/work/akos/loader_demo.cc
r106 r921 5 5 #include <loader.h> 6 6 7 using namespace hugo;7 using namespace lemon; 8 8 9 9 int main(int, char **) { -
src/work/alpar/bfs-named-param.cc
r744 r921 1 1 // -*- mode:C++ -*- 2 2 3 #include < hugo/smart_graph.h>4 #include < hugo/maps.h>3 #include <lemon/smart_graph.h> 4 #include <lemon/maps.h> 5 5 #include <vector> 6 6 #include <iostream> 7 7 8 using namespace hugo;8 using namespace lemon; 9 9 10 10 struct _BFS_DEFAULT_VIS {}; -
src/work/alpar/boolmap_iter.cc
r348 r921 3 3 #include <smart_graph.h> 4 4 5 using namespace hugo;5 using namespace lemon; 6 6 7 7 ///\todo This is only a static map! -
src/work/alpar/f_ed_ka.h
r108 r921 12 12 //#include <bfs_iterator.hh> 13 13 14 namespace hugo{14 namespace lemon { 15 15 template <typename Graph, typename FlowMap, typename CapacityMap> 16 16 typename FlowMap::ValueType maxFlow(Graph &G, … … 115 115 } 116 116 117 } // namespace hugo117 } // namespace lemon 118 118 119 119 #endif //EDMONDS_KARP_HH -
src/work/alpar/f_ed_ka_demo.cc
r118 r921 9 9 #include "../marci/time_measure.h" 10 10 11 using namespace hugo;11 using namespace lemon; 12 12 13 13 // Use a DIMACS max flow file as stdin. -
src/work/alpar/gwrapper.h
r147 r921 3 3 #define GRAPH_WRAPPER_H 4 4 5 namespace hugo{5 namespace lemon { 6 6 7 7 template<typename G> -
src/work/alpar/list_graph_demo.cc
r880 r921 5 5 #include <vector> 6 6 7 using namespace hugo;7 using namespace lemon; 8 8 9 9 typedef ListGraph Graph; -
src/work/alpar/rw_nonref_map.cc
r351 r921 2 2 #include <smart_graph.h> 3 3 4 using namespace hugo;4 using namespace lemon; 5 5 6 6 template<class GG,class TT> -
src/work/alpar/smart_graph_demo.cc
r880 r921 5 5 #include <vector> 6 6 7 using namespace hugo;7 using namespace lemon; 8 8 9 9 typedef SmartGraph Graph; -
src/work/athos/bfs_test.cc
r671 r921 5 5 #include <sage_graph.h> 6 6 //#include <smart_graph.h> 7 #include < hugo/dimacs.h>8 #include < hugo/time_measure.h>9 #include < hugo/for_each_macros.h>7 #include <lemon/dimacs.h> 8 #include <lemon/time_measure.h> 9 #include <lemon/for_each_macros.h> 10 10 #include <bfs_dfs.h> 11 11 12 using namespace hugo;12 using namespace lemon; 13 13 14 14 int main() { -
src/work/athos/dijkstra_at.h
r250 r921 25 25 using namespace std; 26 26 27 namespace hugo{27 namespace lemon { 28 28 29 29 template <typename graph_type, typename T> … … 119 119 120 120 121 }//namespace hugo121 }//namespace lemon 122 122 123 123 #endif //DIJKSTRA_AT -
src/work/athos/dijkstra_demo.cc
r250 r921 6 6 #include <dijkstra_at.h> 7 7 8 using namespace hugo;8 using namespace lemon; 9 9 10 10 -
src/work/athos/kruskal.h
r250 r921 8 8 #include <union_find.h> 9 9 10 namespace hugo{10 namespace lemon { 11 11 12 12 template <typename graph_type, typename T> … … 57 57 } 58 58 59 }//namespacc hugo59 }//namespacc lemon 60 60 61 61 #endif -
src/work/athos/min_cost_flow.cc
r672 r921 1 1 #include <iostream> 2 2 //#include "test_tools.h" 3 #include < hugo/list_graph.h>3 #include <lemon/list_graph.h> 4 4 #include <mincostflow.h> 5 5 //#include <path.h> … … 7 7 8 8 using namespace std; 9 using namespace hugo;9 using namespace lemon; 10 10 11 11 -
src/work/athos/mincostflow.h
r672 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_MINCOSTFLOW_H3 #define HUGO_MINCOSTFLOW_H2 #ifndef LEMON_MINCOSTFLOW_H 3 #define LEMON_MINCOSTFLOW_H 4 4 5 5 ///\ingroup galgs … … 7 7 ///\brief An algorithm for finding the minimum cost flow of given value in an uncapacitated network 8 8 9 #include < hugo/dijkstra.h>10 #include < hugo/graph_wrapper.h>11 #include < hugo/maps.h>9 #include <lemon/dijkstra.h> 10 #include <lemon/graph_wrapper.h> 11 #include <lemon/maps.h> 12 12 #include <vector> 13 13 #include <list> 14 14 #include <values.h> 15 #include < hugo/for_each_macros.h>16 #include < hugo/unionfind.h>17 #include < hugo/bin_heap.h>15 #include <lemon/for_each_macros.h> 16 #include <lemon/unionfind.h> 17 #include <lemon/bin_heap.h> 18 18 #include <bfs_dfs.h> 19 19 20 namespace hugo{20 namespace lemon { 21 21 22 22 /// \addtogroup galgs … … 27 27 /// 28 28 /// 29 /// The class \ref hugo::MinCostFlow "MinCostFlow" implements29 /// The class \ref lemon::MinCostFlow "MinCostFlow" implements 30 30 /// an algorithm for solving the following general minimum cost flow problem> 31 31 /// … … 509 509 ///@} 510 510 511 } //namespace hugo512 513 #endif // HUGO_MINCOSTFLOW_H511 } //namespace lemon 512 513 #endif //LEMON_MINCOSTFLOW_H -
src/work/athos/minlength_demo.cc
r607 r921 3 3 4 4 #include <list_graph.h> 5 #include < hugo/dimacs.h>6 #include < hugo/time_measure.h>5 #include <lemon/dimacs.h> 6 #include <lemon/time_measure.h> 7 7 #include "minlengthpaths.h" 8 8 //#include <time_measure.h> 9 9 10 using namespace hugo;10 using namespace lemon; 11 11 12 12 // Use a DIMACS max flow file as stdin. -
src/work/athos/old/minlengthpaths.h
r607 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_MINLENGTHPATHS_H3 #define HUGO_MINLENGTHPATHS_H2 #ifndef LEMON_MINLENGTHPATHS_H 3 #define LEMON_MINLENGTHPATHS_H 4 4 5 5 ///\ingroup galgs … … 8 8 9 9 #include <iostream> 10 #include < hugo/dijkstra.h>11 #include < hugo/graph_wrapper.h>12 #include < hugo/maps.h>10 #include <lemon/dijkstra.h> 11 #include <lemon/graph_wrapper.h> 12 #include <lemon/maps.h> 13 13 #include <vector> 14 14 15 15 16 namespace hugo{16 namespace lemon { 17 17 18 18 /// \addtogroup galgs … … 22 22 /// of minimal total length 23 23 /// 24 /// The class \ref hugo::MinLengthPaths "MinLengthPaths" implements24 /// The class \ref lemon::MinLengthPaths "MinLengthPaths" implements 25 25 /// an algorithm for finding k edge-disjoint paths 26 26 /// from a given source node to a given target node in an … … 198 198 ///@} 199 199 200 } //namespace hugo201 202 #endif // HUGO_MINLENGTHPATHS_H200 } //namespace lemon 201 202 #endif //LEMON_MINLENGTHPATHS_H -
src/work/athos/pf_demo.cc
r331 r921 8 8 #include "preflow_push.hh" 9 9 10 using namespace hugo;10 using namespace lemon; 11 11 12 12 -
src/work/athos/preflow_push_wogw.h
r331 r921 1 #ifndef HUGO_PREFLOW_PUSH_HH2 #define HUGO_PREFLOW_PUSH_HH1 #ifndef LEMON_PREFLOW_PUSH_HH 2 #define LEMON_PREFLOW_PUSH_HH 3 3 4 4 //#include <algorithm> … … 14 14 using namespace std; 15 15 16 namespace hugo{16 namespace lemon { 17 17 18 18 template <typename Graph, typename T> … … 459 459 460 460 461 }//namespace hugo461 }//namespace lemon 462 462 463 463 #endif //PREFLOW_PUSH_HH -
src/work/athos/suurballe.cc
r314 r921 7 7 #include <minlengthpaths.h> 8 8 9 using namespace hugo;9 using namespace lemon; 10 10 11 11 -
src/work/athos/uf_demo.cc
r250 r921 5 5 #include <iostream> 6 6 #include <list_graph.hh> 7 using namespace hugo;7 using namespace lemon; 8 8 using namespace std; 9 9 -
src/work/athos/union_find.h
r250 r921 14 14 15 15 16 namespace hugo{16 namespace lemon { 17 17 18 18 template <typename KeyType, typename KeyIntMap> … … 91 91 }; 92 92 93 }//namespace hugo93 }//namespace lemon 94 94 #endif -
src/work/athos/xy/boundingbox.cc
r244 r921 3 3 #include <iostream> 4 4 using namespace std; 5 using namespace hugo;5 using namespace lemon; 6 6 int main() 7 7 { -
src/work/athos/xy/xy.cc
r513 r921 3 3 #include <vector> 4 4 using namespace std; 5 using namespace hugo;5 using namespace lemon; 6 6 7 7 -
src/work/bin_heap_demo.cc
r618 r921 3 3 #include <map> 4 4 5 #include < hugo/bin_heap.h>5 #include <lemon/bin_heap.h> 6 6 7 using namespace hugo;7 using namespace lemon; 8 8 using namespace std; 9 9 -
src/work/deba/array_map_factory.h
r703 r921 7 7 #include "extended_pair.h" 8 8 9 namespace hugo{9 namespace lemon { 10 10 11 11 template <typename MapRegistry> class ArrayMapFactory { -
src/work/deba/bin_heap.h
r698 r921 59 59 60 60 61 #ifndef HUGO_BIN_HEAP_H62 #define HUGO_BIN_HEAP_H61 #ifndef LEMON_BIN_HEAP_H 62 #define LEMON_BIN_HEAP_H 63 63 64 64 ///\ingroup auxdat … … 70 70 #include <functional> 71 71 72 namespace hugo{72 namespace lemon { 73 73 74 74 /// \addtogroup auxdat … … 242 242 ///@} 243 243 244 } // namespace hugo244 } // namespace lemon 245 245 246 246 #endif // BIN_HEAP_HH -
src/work/deba/dijkstra.h
r880 r921 1 1 // -*- C++ -*- 2 #ifndef HUGO_DIJKSTRA_H3 #define HUGO_DIJKSTRA_H2 #ifndef LEMON_DIJKSTRA_H 3 #define LEMON_DIJKSTRA_H 4 4 5 5 ///\ingroup galgs … … 7 7 ///\brief Dijkstra algorithm. 8 8 9 #include < hugo/bin_heap.h>10 #include < hugo/invalid.h>11 12 namespace hugo{9 #include <lemon/bin_heap.h> 10 #include <lemon/invalid.h> 11 12 namespace lemon { 13 13 14 14 /// \addtogroup galgs … … 323 323 /// @} 324 324 325 } //END OF NAMESPACE HUGO325 } //END OF NAMESPACE LEMON 326 326 327 327 #endif -
src/work/deba/invalid.h
r701 r921 1 1 // -*- mode:C++ -*- 2 2 3 #ifndef HUGO_INVALID_H4 #define HUGO_INVALID_H3 #ifndef LEMON_INVALID_H 4 #define LEMON_INVALID_H 5 5 6 6 ///\file 7 7 ///\brief Definition of INVALID. 8 8 9 namespace hugo{9 namespace lemon { 10 10 11 11 /// Dummy type to make it easier to make invalid iterators. … … 33 33 const Invalid INVALID = Invalid(); 34 34 35 } //namespace hugo35 } //namespace lemon 36 36 37 37 #endif -
src/work/deba/list_graph.h
r880 r921 1 1 // -*- mode:C++ -*- 2 2 3 #ifndef HUGO_LIST_GRAPH_H4 #define HUGO_LIST_GRAPH_H3 #ifndef LEMON_LIST_GRAPH_H 4 #define LEMON_LIST_GRAPH_H 5 5 6 6 ///\ingroup graphs … … 18 18 #include "map_defines.h" 19 19 20 namespace hugo{20 namespace lemon { 21 21 22 22 /// \addtogroup graphs … … 397 397 } 398 398 399 #endif // HUGO_LIST_GRAPH_H399 #endif //LEMON_LIST_GRAPH_H -
src/work/deba/map_registry.h
r703 r921 6 6 using namespace std; 7 7 8 namespace hugo{8 namespace lemon { 9 9 10 10 /** -
src/work/deba/pac_map_factory.h
r595 r921 9 9 */ 10 10 11 namespace hugo{11 namespace lemon { 12 12 13 13 template <typename G, typename K, typename KIt, template <typename, typename> class PAC> -
src/work/deba/vector_map_factory.h
r703 r921 7 7 #include "extended_pair.h" 8 8 9 namespace hugo{9 namespace lemon { 10 10 11 11 /** The VectorMapFactory template class is a factory class -
src/work/iterator_bfs_dfs_demo.cc
r107 r921 6 6 #include <bfs_iterator.hh> 7 7 8 using namespace hugo;8 using namespace lemon; 9 9 10 10 int main (int, char*[]) -
src/work/jacint/graph_gen.h
r605 r921 11 11 // ///\author Marton Makai 12 12 13 namespace hugo{13 namespace lemon { 14 14 15 15 … … 118 118 } 119 119 120 } //namespace hugo120 } //namespace lemon -
src/work/jacint/ledacomp.cc
r581 r921 42 42 // } 43 43 44 using namespace hugo;44 using namespace lemon; 45 45 46 46 int main() { -
src/work/jacint/max_flow.h
r709 r921 1 1 // -*- C++ -*- 2 #ifndef HUGO_MAX_FLOW_H3 #define HUGO_MAX_FLOW_H2 #ifndef LEMON_MAX_FLOW_H 3 #define LEMON_MAX_FLOW_H 4 4 5 5 #include <vector> … … 7 7 #include <stack> 8 8 9 #include < hugo/graph_wrapper.h>9 #include <lemon/graph_wrapper.h> 10 10 #include <bfs_dfs.h> 11 #include < hugo/invalid.h>12 #include < hugo/maps.h>13 #include < hugo/for_each_macros.h>11 #include <lemon/invalid.h> 12 #include <lemon/maps.h> 13 #include <lemon/for_each_macros.h> 14 14 15 15 /// \file … … 17 17 /// \ingroup galgs 18 18 19 namespace hugo{19 namespace lemon { 20 20 21 21 /// \addtogroup galgs … … 1194 1194 1195 1195 dfs.pushAndSetReached 1196 ///\bug hugo0.21196 ///\bug lemon 0.2 1197 1197 (typename ErasingResGW::Node 1198 1198 (typename FilterResGW::Node … … 1261 1261 1262 1262 1263 } //namespace hugo1264 1265 #endif // HUGO_MAX_FLOW_H1266 1267 1268 1269 1263 } //namespace lemon 1264 1265 #endif //LEMON_MAX_FLOW_H 1266 1267 1268 1269 -
src/work/jacint/max_flow_bug.cc
r757 r921 1 1 #include <iostream> 2 2 3 //#include < hugo/list_graph.h>3 //#include <lemon/list_graph.h> 4 4 #include <sage_graph.h> 5 #include < hugo/dimacs.h>6 #include < hugo/max_flow.h>5 #include <lemon/dimacs.h> 6 #include <lemon/max_flow.h> 7 7 //#include <max_flow_no_stack.h> 8 #include < hugo/time_measure.h>8 #include <lemon/time_measure.h> 9 9 10 using namespace hugo;10 using namespace lemon; 11 11 12 12 int main(int, char **) { -
src/work/jacint/max_flow_test.cc
r757 r921 1 1 #include <iostream> 2 2 3 #include < hugo/list_graph.h>4 #include < hugo/dimacs.h>3 #include <lemon/list_graph.h> 4 #include <lemon/dimacs.h> 5 5 #include <max_flow.h> 6 6 #include <max_flow_no_stack.h> 7 #include < hugo/time_measure.h>7 #include <lemon/time_measure.h> 8 8 9 using namespace hugo;9 using namespace lemon; 10 10 11 11 int main(int, char **) { -
src/work/jacint/max_matching.cc
r536 r921 11 11 #include <graph_wrapper.h> 12 12 13 using namespace hugo;13 using namespace lemon; 14 14 15 15 int main(int, char **) { -
src/work/jacint/max_matching.h
r682 r921 1 1 // -*- C++ -*- 2 #ifndef HUGO_MAX_MATCHING_H3 #define HUGO_MAX_MATCHING_H2 #ifndef LEMON_MAX_MATCHING_H 3 #define LEMON_MAX_MATCHING_H 4 4 5 5 ///\ingroup galgs … … 12 12 #include <unionfind.h> 13 13 14 namespace hugo{14 namespace lemon { 15 15 16 16 /// \addtogroup galgs … … 565 565 /// @} 566 566 567 } //END OF NAMESPACE HUGO567 } //END OF NAMESPACE LEMON 568 568 569 569 #endif //EDMONDS_H -
src/work/jacint/max_save.h
r620 r921 1 1 // -*- C++ -*- 2 #ifndef HUGO_MAX_FLOW_H3 #define HUGO_MAX_FLOW_H2 #ifndef LEMON_MAX_FLOW_H 3 #define LEMON_MAX_FLOW_H 4 4 5 5 ///\ingroup galgs … … 23 23 /// \brief Dimacs file format reader. 24 24 25 namespace hugo{25 namespace lemon { 26 26 27 27 /// \addtogroup galgs … … 1128 1128 /// @} 1129 1129 1130 } //END OF NAMESPACE HUGO1131 1132 #endif // HUGO_MAX_FLOW_H1133 1134 1135 1136 1130 } //END OF NAMESPACE LEMON 1131 1132 #endif //LEMON_MAX_FLOW_H 1133 1134 1135 1136 -
src/work/jacint/preflow.cc
r470 r921 6 6 #include <time_measure.h> 7 7 8 using namespace hugo;8 using namespace lemon; 9 9 10 10 int main(int, char **) { -
src/work/jacint/preflow_excess.h
r437 r921 44 44 */ 45 45 46 #ifndef HUGO_PREFLOW_H47 #define HUGO_PREFLOW_H46 #ifndef LEMON_PREFLOW_H 47 #define LEMON_PREFLOW_H 48 48 49 49 #define H0 20 … … 54 54 #include <stack> 55 55 56 namespace hugo{56 namespace lemon { 57 57 58 58 template <typename Graph, typename T, … … 656 656 }; 657 657 658 } //namespace hugo658 } //namespace lemon 659 659 660 660 #endif //PREFLOW_H -
src/work/jacint/preflow_excess_test.cc
r437 r921 12 12 #include <time_measure.h> 13 13 14 using namespace hugo;14 using namespace lemon; 15 15 16 16 int main(int, char **) { -
src/work/jacint/preflow_res.h
r444 r921 1 1 // -*- C++ -*- 2 2 //The same as preflow.h, using ResGraphWrapper 3 #ifndef HUGO_PREFLOW_RES_H4 #define HUGO_PREFLOW_RES_H3 #ifndef LEMON_PREFLOW_RES_H 4 #define LEMON_PREFLOW_RES_H 5 5 6 6 #define H0 20 … … 13 13 #include<iostream> 14 14 15 namespace hugo{15 namespace lemon { 16 16 17 17 template <typename Graph, typename T, … … 487 487 }; 488 488 489 } //namespace hugo490 491 #endif // HUGO_PREFLOW_RES_H492 493 494 495 489 } //namespace lemon 490 491 #endif //LEMON_PREFLOW_RES_H 492 493 494 495 -
src/work/jacint/prim.cc
r258 r921 11 11 #include <fib_heap.h> 12 12 13 using namespace hugo;13 using namespace lemon; 14 14 15 15 int main(int, char **) { -
src/work/jacint/prim.h
r211 r921 30 30 */ 31 31 32 #ifndef HUGO_PRIM_H33 #define HUGO_PRIM_H32 #ifndef LEMON_PRIM_H 33 #define LEMON_PRIM_H 34 34 35 35 #include <fib_heap.h> 36 36 #include <invalid.h> 37 37 38 namespace hugo{38 namespace lemon { 39 39 40 40 template <typename Graph, typename T, -
src/work/johanna/contract_wrapper.h
r394 r921 1 1 // -*- C++ -*- // 2 2 3 #ifndef HUGO_CONTRACT_WRAPPER4 #define HUGO_CONTRACT_WRAPPER3 #ifndef LEMON_CONTRACT_WRAPPER 4 #define LEMON_CONTRACT_WRAPPER 5 5 6 6 #include <graph_wrapper.h> 7 7 8 namespace hugo{8 namespace lemon { 9 9 10 10 template<typename Graph> -
src/work/johanna/ma_order.h
r350 r921 1 1 // -*- C++ -*- // 2 2 3 #ifndef HUGO_MA_ORDER_H4 #define HUGO_MA_ORDER_H3 #ifndef LEMON_MA_ORDER_H 4 #define LEMON_MA_ORDER_H 5 5 6 6 #include <vector> … … 8 8 #include <bin_heap.h> 9 9 10 namespace hugo{10 namespace lemon { 11 11 12 12 template <typename Graph, … … 83 83 }; 84 84 85 } // namespace hugo85 } // namespace lemon 86 86 87 #endif // HUGO_MA_ORDER_H87 #endif // LEMON_MA_ORDER_H -
src/work/johanna/ma_order_test.cc
r350 r921 9 9 10 10 using namespace std; 11 using namespace hugo;11 using namespace lemon; 12 12 13 13 int main() { -
src/work/klao/debug.h
r680 r921 1 1 // -*- C++ -*- // 2 2 3 #ifndef HUGO_DEBUG_H4 #define HUGO_DEBUG_H3 #ifndef LEMON_DEBUG_H 4 #define LEMON_DEBUG_H 5 5 6 6 //! \file 7 7 //! \brief Basic definitions for debug control. 8 8 9 namespace hugo{9 namespace lemon { 10 10 11 11 //! Debug mode for testing/debugging … … 54 54 55 55 } 56 #endif // HUGO_DEBUG_H56 #endif // LEMON_DEBUG_H -
src/work/klao/iter_map.h
r555 r921 1 1 // -*- c++ -*- // 2 2 3 #ifndef HUGO_ITER_MAP4 #define HUGO_ITER_MAP3 #ifndef LEMON_ITER_MAP 4 #define LEMON_ITER_MAP 5 5 6 6 #include <vector> … … 11 11 #include <cstring> 12 12 13 #include < hugo/invalid.h>13 #include <lemon/invalid.h> 14 14 15 namespace hugo{15 namespace lemon { 16 16 17 17 /// \brief A map with "small integers" as value set which can enumarate it -
src/work/klao/iter_map_test.cc
r618 r921 1 1 #include <iter_map.h> 2 #include < hugo/maps.h>2 #include <lemon/maps.h> 3 3 4 4 #include <iostream> 5 5 6 using namespace hugo;6 using namespace lemon; 7 7 using namespace std; 8 8 -
src/work/klao/map_test.cc
r618 r921 1 1 #include <iostream> 2 2 3 #include < hugo/maps.h>3 #include <lemon/maps.h> 4 4 5 5 using namespace std; 6 using namespace hugo;6 using namespace lemon; 7 7 8 8 int main() -
src/work/marci/augmenting_flow.h
r888 r921 1 1 // -*- C++ -*- 2 #ifndef HUGO_AUGMENTING_FLOW_H3 #define HUGO_AUGMENTING_FLOW_H2 #ifndef LEMON_AUGMENTING_FLOW_H 3 #define LEMON_AUGMENTING_FLOW_H 4 4 5 5 #include <vector> 6 6 #include <iostream> 7 7 8 #include < hugo/graph_wrapper.h>8 #include <lemon/graph_wrapper.h> 9 9 #include <bfs_dfs.h> 10 #include < hugo/invalid.h>11 #include < hugo/maps.h>12 #include < hugo/tight_edge_filter_map.h>10 #include <lemon/invalid.h> 11 #include <lemon/maps.h> 12 #include <lemon/tight_edge_filter_map.h> 13 13 14 14 /// \file … … 16 16 /// \ingroup galgs 17 17 18 namespace hugo{18 namespace lemon { 19 19 20 20 /// \addtogroup galgs … … 537 537 538 538 dfs.pushAndSetReached 539 /// \bug hugo0.2539 /// \bug lemon 0.2 540 540 (typename ErasingResGW::Node 541 541 (typename FilterResGW::Node … … 595 595 596 596 597 } //namespace hugo598 599 #endif // HUGO_AUGMENTING_FLOW_H600 601 597 } //namespace lemon 598 599 #endif //LEMON_AUGMENTING_FLOW_H 600 601 -
src/work/marci/bfs_dfs.h
r777 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_BFS_DFS_H3 #define HUGO_BFS_DFS_H2 #ifndef LEMON_BFS_DFS_H 3 #define LEMON_BFS_DFS_H 4 4 5 5 /// \ingroup galgs … … 15 15 #include <utility> 16 16 17 #include < hugo/invalid.h>18 19 namespace hugo{17 #include <lemon/invalid.h> 18 19 namespace lemon { 20 20 21 21 /// Bfs searches for the nodes wich are not marked in … … 118 118 /// The conversion operator makes for converting the bfs-iterator 119 119 /// to an \c out-edge-iterator. 120 ///\bug Edge have to be in HUGO0.2120 ///\bug Edge have to be in LEMON 0.2 121 121 operator Edge() const { return actual_edge; } 122 122 /// Returns if b-node has been reached just now. … … 270 270 /// The conversion operator makes for converting the bfs-iterator 271 271 /// to an \c out-edge-iterator. 272 ///\bug Edge have to be in HUGO0.2272 ///\bug Edge have to be in LEMON 0.2 273 273 operator Edge() const { return actual_edge; } 274 274 /// Returns if b-node has been reached just now. … … 344 344 345 345 346 } // namespace hugo347 348 #endif // HUGO_BFS_DFS_H346 } // namespace lemon 347 348 #endif //LEMON_BFS_DFS_H -
src/work/marci/bfs_dfs_misc.h
r762 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_BFS_DFS_MISC_H3 #define HUGO_BFS_DFS_MISC_H2 #ifndef LEMON_BFS_DFS_MISC_H 3 #define LEMON_BFS_DFS_MISC_H 4 4 5 5 /// \ingroup galgs … … 14 14 #include <for_each_macros.h> 15 15 16 namespace hugo{16 namespace lemon { 17 17 18 18 /// This function eats a read-write \c BoolMap& bool_map, … … 72 72 ++dfs; 73 73 if (dfs.isBNodeNewlyReached()) { 74 ///\bug hugo0.2-ben Edge kell74 ///\bug lemon 0.2-ben Edge kell 75 75 pred.set(dfs.aNode(), typename Graph::OutEdgeIt(dfs)); 76 76 } else { … … 78 78 if (g.valid(typename Graph::OutEdgeIt(dfs)) && 79 79 !examined[dfs.bNode()]) { 80 ///\bug hugo0.2-ben Edge kell80 ///\bug lemon 0.2-ben Edge kell 81 81 pred.set(dfs.bNode(), typename Graph::OutEdgeIt(dfs)); 82 82 return dfs.aNode(); … … 93 93 } 94 94 95 } //namespace hugo95 } //namespace lemon 96 96 97 #endif // HUGO_BFS_DFS_MISC_H97 #endif //LEMON_BFS_DFS_MISC_H -
src/work/marci/bfsit_vs_byhand.cc
r777 r921 4 4 5 5 #include <sage_graph.h> 6 #include < hugo/smart_graph.h>7 #include < hugo/dimacs.h>8 #include < hugo/time_measure.h>9 //#include < hugo/for_each_macros.h>6 #include <lemon/smart_graph.h> 7 #include <lemon/dimacs.h> 8 #include <lemon/time_measure.h> 9 //#include <lemon/for_each_macros.h> 10 10 #include <bfs_dfs.h> 11 11 12 using namespace hugo;12 using namespace lemon; 13 13 14 14 using std::cout; -
src/work/marci/bipartite_graph_wrapper.h
r902 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_BIPARTITE_GRAPH_WRAPPER_H3 #define HUGO_BIPARTITE_GRAPH_WRAPPER_H2 #ifndef LEMON_BIPARTITE_GRAPH_WRAPPER_H 3 #define LEMON_BIPARTITE_GRAPH_WRAPPER_H 4 4 5 5 ///\ingroup gwrappers … … 11 11 ///\author Marton Makai 12 12 13 #include < hugo/invalid.h>13 #include <lemon/invalid.h> 14 14 #include <iter_map.h> 15 #include < hugo/graph_wrapper.h>15 #include <lemon/graph_wrapper.h> 16 16 #include <for_each_macros.h> 17 17 18 namespace hugo{18 namespace lemon { 19 19 20 20 /// \brief A wrapper for composing a bipartite graph from a graph … … 927 927 ///@} 928 928 929 } //namespace hugo930 931 932 #endif // HUGO_BIPARTITE_GRAPH_WRAPPER_H933 929 } //namespace lemon 930 931 932 #endif //LEMON_BIPARTITE_GRAPH_WRAPPER_H 933 -
src/work/marci/bipartite_graph_wrapper_test.cc
r902 r921 5 5 6 6 //#include <sage_graph.h> 7 #include < hugo/smart_graph.h>7 #include <lemon/smart_graph.h> 8 8 //#include <dimacs.h> 9 #include < hugo/time_measure.h>9 #include <lemon/time_measure.h> 10 10 //#include <for_each_macros.h> 11 11 #include <bfs_dfs.h> 12 #include < hugo/graph_wrapper.h>12 #include <lemon/graph_wrapper.h> 13 13 #include <bipartite_graph_wrapper.h> 14 #include < hugo/maps.h>15 #include < hugo/preflow.h>14 #include <lemon/maps.h> 15 #include <lemon/preflow.h> 16 16 #include <augmenting_flow.h> 17 17 … … 19 19 using std::endl; 20 20 21 using namespace hugo;21 using namespace lemon; 22 22 23 23 int main() { -
src/work/marci/bipartite_matching_demo.cc
r771 r921 7 7 //#include <smart_graph.h> 8 8 //#include <dimacs.h> 9 #include < hugo/time_measure.h>9 #include <lemon/time_measure.h> 10 10 #include <for_each_macros.h> 11 11 #include <bfs_dfs.h> 12 12 #include <bipartite_graph_wrapper.h> 13 #include < hugo/maps.h>14 #include < hugo/max_flow.h>13 #include <lemon/maps.h> 14 #include <lemon/max_flow.h> 15 15 #include <graph_gen.h> 16 16 #include <max_bipartite_matching.h> 17 17 18 using namespace hugo;18 using namespace lemon; 19 19 20 20 using std::cin; -
src/work/marci/const_map_time.cc
r890 r921 4 4 #include <iostream> 5 5 6 #include < hugo/maps.h>7 #include < hugo/smart_graph.h>8 #include < hugo/time_measure.h>9 #include < hugo/dimacs.h>10 #include < hugo/graph_wrapper.h>6 #include <lemon/maps.h> 7 #include <lemon/smart_graph.h> 8 #include <lemon/time_measure.h> 9 #include <lemon/dimacs.h> 10 #include <lemon/graph_wrapper.h> 11 11 12 using namespace hugo;12 using namespace lemon; 13 13 14 14 int main() { -
src/work/marci/experiment/bfs_iterator.h
r281 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_BFS_ITERATOR_H3 #define HUGO_BFS_ITERATOR_H2 #ifndef LEMON_BFS_ITERATOR_H 3 #define LEMON_BFS_ITERATOR_H 4 4 5 5 #include <queue> … … 8 8 #include <graph_wrapper.h> 9 9 10 namespace hugo{10 namespace lemon { 11 11 12 12 // template <typename Graph> … … 837 837 838 838 839 } // namespace hugo840 841 #endif // HUGO_BFS_ITERATOR_H839 } // namespace lemon 840 841 #endif //LEMON_BFS_ITERATOR_H -
src/work/marci/experiment/bfs_iterator_1.h
r298 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_BFS_ITERATOR_H3 #define HUGO_BFS_ITERATOR_H2 #ifndef LEMON_BFS_ITERATOR_H 3 #define LEMON_BFS_ITERATOR_H 4 4 5 5 #include <queue> … … 8 8 #include <graph_wrapper_1.h> 9 9 10 namespace hugo{10 namespace lemon { 11 11 12 12 // template <typename Graph> … … 832 832 833 833 834 } // namespace hugo835 836 #endif // HUGO_BFS_ITERATOR_H834 } // namespace lemon 835 836 #endif //LEMON_BFS_ITERATOR_H -
src/work/marci/experiment/edmonds_karp.h
r281 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_EDMONDS_KARP_H3 #define HUGO_EDMONDS_KARP_H2 #ifndef LEMON_EDMONDS_KARP_H 3 #define LEMON_EDMONDS_KARP_H 4 4 5 5 #include <algorithm> … … 10 10 #include <invalid.h> 11 11 12 namespace hugo{12 namespace lemon { 13 13 14 14 template<typename Graph, typename Number, typename FlowMap, typename CapacityMap> … … 1234 1234 1235 1235 1236 } // namespace hugo1237 1238 #endif // HUGO_EDMONDS_KARP_H1236 } // namespace lemon 1237 1238 #endif //LEMON_EDMONDS_KARP_H -
src/work/marci/experiment/edmonds_karp_1.h
r298 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_EDMONDS_KARP_H3 #define HUGO_EDMONDS_KARP_H2 #ifndef LEMON_EDMONDS_KARP_H 3 #define LEMON_EDMONDS_KARP_H 4 4 5 5 #include <algorithm> … … 11 11 #include <graph_wrapper_1.h> 12 12 13 namespace hugo{13 namespace lemon { 14 14 15 15 template<typename Graph, typename Number, typename FlowMap, typename CapacityMap> … … 1144 1144 1145 1145 1146 } // namespace hugo1147 1148 #endif // HUGO_EDMONDS_KARP_H1146 } // namespace lemon 1147 1148 #endif //LEMON_EDMONDS_KARP_H -
src/work/marci/experiment/edmonds_karp_demo.cc
r281 r921 15 15 }; 16 16 17 using namespace hugo;17 using namespace lemon; 18 18 19 19 // Use a DIMACS max flow file as stdin. -
src/work/marci/experiment/edmonds_karp_demo_1.cc
r281 r921 15 15 }; 16 16 17 using namespace hugo;17 using namespace lemon; 18 18 19 19 // Use a DIMACS max flow file as stdin. -
src/work/marci/experiment/graph_wrapper.h
r880 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_GRAPH_WRAPPER_H3 #define HUGO_GRAPH_WRAPPER_H2 #ifndef LEMON_GRAPH_WRAPPER_H 3 #define LEMON_GRAPH_WRAPPER_H 4 4 5 5 #include <invalid.h> 6 6 7 namespace hugo{7 namespace lemon { 8 8 9 9 template<typename Graph> … … 1702 1702 // }; 1703 1703 1704 } //namespace hugo1705 1706 #endif // HUGO_GRAPH_WRAPPER_H1707 1704 } //namespace lemon 1705 1706 #endif //LEMON_GRAPH_WRAPPER_H 1707 -
src/work/marci/experiment/graph_wrapper_1.h
r880 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_GRAPH_WRAPPER_H3 #define HUGO_GRAPH_WRAPPER_H2 #ifndef LEMON_GRAPH_WRAPPER_H 3 #define LEMON_GRAPH_WRAPPER_H 4 4 5 5 #include <invalid.h> 6 6 7 namespace hugo{7 namespace lemon { 8 8 9 9 template<typename Graph> … … 1343 1343 // }; 1344 1344 1345 } //namespace hugo1346 1347 #endif // HUGO_GRAPH_WRAPPER_H1348 1345 } //namespace lemon 1346 1347 #endif //LEMON_GRAPH_WRAPPER_H 1348 -
src/work/marci/experiment/graph_wrapper_st_ostream_op.h
r445 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_GRAPH_WRAPPER_H3 #define HUGO_GRAPH_WRAPPER_H2 #ifndef LEMON_GRAPH_WRAPPER_H 3 #define LEMON_GRAPH_WRAPPER_H 4 4 5 5 #include <invalid.h> 6 6 #include <iter_map.h> 7 7 8 namespace hugo{8 namespace lemon { 9 9 10 10 // Graph wrappers 11 11 12 12 /// \addtogroup gwrappers 13 /// A main parts of HUGOlibare the different graph structures,13 /// A main parts of LEMON are the different graph structures, 14 14 /// generic graph algorithms, graph concepts which couple these, and 15 15 /// graph wrappers. While the previous ones are more or less clear, the … … 1647 1647 ///@} 1648 1648 1649 } //namespace hugo1650 1651 1652 #endif // HUGO_GRAPH_WRAPPER_H1653 1649 } //namespace lemon 1650 1651 1652 #endif //LEMON_GRAPH_WRAPPER_H 1653 -
src/work/marci/experiment/iterator_bfs_demo.cc
r303 r921 9 9 #include <graph_wrapper.h> 10 10 11 using namespace hugo;11 using namespace lemon; 12 12 using std::cout; 13 13 using std::endl; -
src/work/marci/experiment/iterator_bfs_demo_1.cc
r303 r921 9 9 #include <graph_wrapper_1.h> 10 10 11 using namespace hugo;11 using namespace lemon; 12 12 using std::cout; 13 13 using std::endl; -
src/work/marci/experiment/list_graph.h
r281 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_LIST_GRAPH_H3 #define HUGO_LIST_GRAPH_H2 #ifndef LEMON_LIST_GRAPH_H 3 #define LEMON_LIST_GRAPH_H 4 4 5 5 #include <iostream> … … 8 8 #include <invalid.h> 9 9 10 namespace hugo{10 namespace lemon { 11 11 12 12 template <typename It> … … 566 566 567 567 568 } //namespace hugo569 570 #endif // HUGO_LIST_GRAPH_H568 } //namespace lemon 569 570 #endif //LEMON_LIST_GRAPH_H -
src/work/marci/for_each_macros.h
r725 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_FOR_EACH_MACROS_H3 #define HUGO_FOR_EACH_MACROS_H2 #ifndef LEMON_FOR_EACH_MACROS_H 3 #define LEMON_FOR_EACH_MACROS_H 4 4 5 5 // /// \ingroup gwrappers … … 8 8 /// 9 9 /// This file contains several macros which make easier writting 10 /// for cycles in HUGO using HUGOiterators.10 /// for cycles in LEMON using LEMON iterators. 11 11 /// 12 12 /// \author Marton Makai 13 13 14 namespace hugo{14 namespace lemon { 15 15 16 /// This macro provides a comfortable interface for iterating with HUGO16 /// This macro provides a comfortable interface for iterating with LEMON 17 17 /// iterators. 18 18 /// \code … … 34 34 #define FOR_EACH_GLOB(e, g) for((g).first((e)); (g).valid((e)); (g).next((e))) 35 35 36 /// This macro provides a comfortable interface for iterating with HUGO36 /// This macro provides a comfortable interface for iterating with LEMON 37 37 /// iterators. 38 38 /// \code … … 126 126 // } 127 127 128 /// This macro provides a comfortable interface for iterating with HUGO128 /// This macro provides a comfortable interface for iterating with LEMON 129 129 /// iterators. 130 130 /// \code … … 144 144 #define FOR_EACH_LOC(Ittype, e, g) for(Ittype e=loopFirst(Ittype(), (g)); (g).valid(e); (g).next(e)) 145 145 146 /// This macro provides a comfortable interface for iterating with HUGO146 /// This macro provides a comfortable interface for iterating with LEMON 147 147 /// iterators. 148 148 /// \code … … 171 171 // #define FOR_EACH_OUTEDGE_LOC(e, g, v) for((g).first((e), (v)); (g).valid((e)); (g).next((e))) 172 172 173 } //namespace hugo173 } //namespace lemon 174 174 175 #endif // HUGO_FOR_EACH_MACROS_H175 #endif //LEMON_FOR_EACH_MACROS_H -
src/work/marci/graph_concept.h
r826 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_GRAPH_H3 #define HUGO_GRAPH_H2 #ifndef LEMON_GRAPH_H 3 #define LEMON_GRAPH_H 4 4 5 5 ///\file 6 6 ///\brief Declaration of GraphConcept. 7 7 8 #include < hugo/invalid.h>9 10 namespace hugo{8 #include <lemon/invalid.h> 9 10 namespace lemon { 11 11 12 12 /// @defgroup empty_graph The GraphConcept class … … 472 472 /// @} 473 473 474 } //namespace hugo474 } //namespace lemon 475 475 476 476 … … 492 492 // } 493 493 494 #endif // HUGO_GRAPH_H494 #endif // LEMON_GRAPH_H -
src/work/marci/graph_wrapper_time.cc
r849 r921 8 8 #include <string> 9 9 #include <vector> 10 #include < hugo/invalid.h>11 #include < hugo/time_measure.h>12 #include < hugo/graph_wrapper.h>13 #include < hugo/preflow.h>14 #include < hugo/dimacs.h>15 #include < hugo/list_graph.h>10 #include <lemon/invalid.h> 11 #include <lemon/time_measure.h> 12 #include <lemon/graph_wrapper.h> 13 #include <lemon/preflow.h> 14 #include <lemon/dimacs.h> 15 #include <lemon/list_graph.h> 16 16 17 using namespace hugo;17 using namespace lemon; 18 18 19 19 using std::cout; -
src/work/marci/gw_vs_not.cc
r270 r921 10 10 #include <graph_wrapper.h> 11 11 12 using namespace hugo;12 using namespace lemon; 13 13 14 14 // Use a DIMACS max flow file as stdin. -
src/work/marci/iterator_bfs_demo.cc
r777 r921 5 5 6 6 #include <sage_graph.h> 7 #include < hugo/smart_graph.h>7 #include <lemon/smart_graph.h> 8 8 #include <bfs_dfs.h> 9 #include < hugo/graph_wrapper.h>10 11 using namespace hugo;9 #include <lemon/graph_wrapper.h> 10 11 using namespace lemon; 12 12 13 13 using std::cout; -
src/work/marci/leda/bipartite_matching_comparison.cc
r771 r921 14 14 //#include <smart_graph.h> 15 15 //#include <dimacs.h> 16 #include < hugo/time_measure.h>16 #include <lemon/time_measure.h> 17 17 #include <for_each_macros.h> 18 #include < hugo/graph_wrapper.h>18 #include <lemon/graph_wrapper.h> 19 19 #include <bipartite_graph_wrapper.h> 20 #include < hugo/maps.h>21 #include < hugo/max_flow.h>20 #include <lemon/maps.h> 21 #include <lemon/max_flow.h> 22 22 23 23 using std::cin; … … 25 25 using std::endl; 26 26 27 using namespace hugo;27 using namespace lemon; 28 28 29 29 int main() { … … 92 92 max_flow_test(stgw, stgw.S_NODE, stgw.T_NODE, const1map, flow/*, true*/); 93 93 max_flow_test.run(); 94 cout << " HUGOmax matching algorithm based on preflow." << endl94 cout << "LEMON max matching algorithm based on preflow." << endl 95 95 << "Size of matching: " 96 96 << max_flow_test.flowValue() << endl; … … 108 108 // typedef SageGraph MutableGraph; 109 109 // while (max_flow_test.augmentOnBlockingFlow<MutableGraph>()) { } 110 // cout << " HUGOmax matching algorithm based on blocking flow augmentation."110 // cout << "LEMON max matching algorithm based on blocking flow augmentation." 111 111 // << endl << "Matching size: " 112 112 // << max_flow_test.flowValue() << endl; … … 142 142 max_flow_test(hg, s, t, cm, flow); 143 143 max_flow_test.run(); 144 cout << " HUGOmax matching algorithm on SageGraph by copying the graph, based on preflow."144 cout << "LEMON max matching algorithm on SageGraph by copying the graph, based on preflow." 145 145 << endl 146 146 << "Size of matching: " -
src/work/marci/leda/bipartite_matching_leda.cc
r769 r921 14 14 //#include <smart_graph.h> 15 15 //#include <dimacs.h> 16 #include < hugo/time_measure.h>16 #include <lemon/time_measure.h> 17 17 #include <for_each_macros.h> 18 #include < hugo/graph_wrapper.h>18 #include <lemon/graph_wrapper.h> 19 19 #include <bipartite_graph_wrapper.h> 20 #include < hugo/maps.h>21 #include < hugo/max_flow.h>20 #include <lemon/maps.h> 21 #include <lemon/max_flow.h> 22 22 23 23 /** … … 43 43 } 44 44 45 using namespace hugo;45 using namespace lemon; 46 46 47 47 int main() { -
src/work/marci/leda/bipartite_matching_leda_gen.cc
r769 r921 14 14 //#include <smart_graph.h> 15 15 //#include <dimacs.h> 16 #include < hugo/time_measure.h>16 #include <lemon/time_measure.h> 17 17 #include <for_each_macros.h> 18 #include < hugo/graph_wrapper.h>18 #include <lemon/graph_wrapper.h> 19 19 #include <bipartite_graph_wrapper.h> 20 #include < hugo/maps.h>21 #include < hugo/max_flow.h>20 #include <lemon/maps.h> 21 #include <lemon/max_flow.h> 22 22 #include <augmenting_flow.h> 23 23 … … 44 44 } 45 45 46 using namespace hugo;46 using namespace lemon; 47 47 48 48 int main() { … … 111 111 max_flow_test(stgw, stgw.S_NODE, stgw.T_NODE, const1map, flow/*, true*/); 112 112 max_flow_test.run(); 113 std::cout << " HUGOmax matching algorithm based on preflow." << std::endl113 std::cout << "LEMON max matching algorithm based on preflow." << std::endl 114 114 << "Size of matching: " 115 115 << max_flow_test.flowValue() << std::endl; … … 130 130 max_flow_test_1(stgw, stgw.S_NODE, stgw.T_NODE, const1map, flow/*, true*/); 131 131 while (max_flow_test_1.augmentOnBlockingFlow<MutableGraph>()) { } 132 std::cout << " HUGOmax matching algorithm based on blocking flow augmentation."132 std::cout << "LEMON max matching algorithm based on blocking flow augmentation." 133 133 << std::endl << "Matching size: " 134 134 << max_flow_test_1.flowValue() << std::endl; -
src/work/marci/leda/leda_graph_wrapper.h
r650 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_LEDA_GRAPH_WRAPPER_H3 #define HUGO_LEDA_GRAPH_WRAPPER_H2 #ifndef LEMON_LEDA_GRAPH_WRAPPER_H 3 #define LEMON_LEDA_GRAPH_WRAPPER_H 4 4 5 5 #include <LEDA/graph.h> … … 15 15 //#endif 16 16 17 #include < hugo/invalid.h>18 19 namespace hugo{20 21 /// \brief A graph wrapper structure for wrapping LEDA graphs in HUGO.17 #include <lemon/invalid.h> 18 19 namespace lemon { 20 21 /// \brief A graph wrapper structure for wrapping LEDA graphs in LEMON. 22 22 /// 23 23 /// This graph wrapper class wraps LEDA graphs and LEDA parametrized graphs 24 /// to satisfy HUGOgraph concepts.25 /// Then the generic HUGOlibalgorithms and wrappers can be used24 /// to satisfy LEMON graph concepts. 25 /// Then the generic LEMON algorithms and wrappers can be used 26 26 /// with LEDA graphs. 27 27 /// \ingroup gwrapper … … 299 299 300 300 /// This class is to wrap existing 301 /// LEDA node-maps to HUGOones.301 /// LEDA node-maps to LEMON ones. 302 302 template<typename T> class NodeMapWrapper 303 303 { … … 321 321 322 322 /// This class is to wrap existing 323 /// LEDA edge-maps to HUGOones.323 /// LEDA edge-maps to LEMON ones. 324 324 template<typename T> class EdgeMapWrapper 325 325 { … … 380 380 }; 381 381 382 } //namespace hugo383 384 #endif // HUGO_LEDA_GRAPH_WRAPPER_H382 } //namespace lemon 383 384 #endif // LEMON_LEDA_GRAPH_WRAPPER_H -
src/work/marci/leda/max_bipartite_matching_demo.cc
r771 r921 37 37 } 38 38 39 using namespace hugo;39 using namespace lemon; 40 40 41 41 using std::cout; -
src/work/marci/leda_bfs_dfs.cc
r189 r921 12 12 #include <leda_graph_wrapper.h> 13 13 14 using namespace hugo;14 using namespace lemon; 15 15 using std::cout; 16 16 using std::endl; -
src/work/marci/leda_graph_demo.cc
r189 r921 9 9 #include <edmonds_karp.h> 10 10 11 using namespace hugo;11 using namespace lemon; 12 12 13 13 using std::cout; -
src/work/marci/lg_vs_sg_vs_sg.cc
r777 r921 5 5 6 6 #include <sage_graph.h> 7 #include < hugo/list_graph.h>8 #include < hugo/smart_graph.h>9 #include < hugo/dimacs.h>10 #include < hugo/max_flow.h>7 #include <lemon/list_graph.h> 8 #include <lemon/smart_graph.h> 9 #include <lemon/dimacs.h> 10 #include <lemon/max_flow.h> 11 11 #include <augmenting_flow.h> 12 #include < hugo/time_measure.h>12 #include <lemon/time_measure.h> 13 13 #include <for_each_macros.h> 14 14 15 using namespace hugo;15 using namespace lemon; 16 16 17 17 // Use a DIMACS max flow file as stdin. -
src/work/marci/lp/lp_solver_wrapper.h
r888 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_LP_SOLVER_WRAPPER_H3 #define HUGO_LP_SOLVER_WRAPPER2 #ifndef LEMON_LP_SOLVER_WRAPPER_H 3 #define LEMON_LP_SOLVER_WRAPPER 4 4 5 5 ///\ingroup misc … … 21 21 22 22 //#include <sage_graph.h> 23 //#include < hugo/list_graph.h>24 //#include < hugo/graph_wrapper.h>25 #include < hugo/invalid.h>23 //#include <lemon/list_graph.h> 24 //#include <lemon/graph_wrapper.h> 25 #include <lemon/invalid.h> 26 26 //#include <bfs_dfs.h> 27 27 //#include <stp.h> 28 //#include < hugo/max_flow.h>28 //#include <lemon/max_flow.h> 29 29 //#include <augmenting_flow.h> 30 30 //#include <iter_map.h> … … 34 34 using std::endl; 35 35 36 namespace hugo{36 namespace lemon { 37 37 38 38 … … 45 45 /// stl vector, the range is partitioned into sets and each set is 46 46 /// doubly linked in a list. 47 /// That is, each class is iterable by hugoiterators, and any member of47 /// That is, each class is iterable by lemon iterators, and any member of 48 48 /// the vector can bo moved to an other class. 49 49 template <typename T> … … 64 64 /// The classes are indexed by integers from \c 0 to \c classNum()-1. 65 65 int classNum() const { return tips.size(); } 66 /// This hugostyle iterator iterates through a class.66 /// This lemon style iterator iterates through a class. 67 67 class ClassIt; 68 68 /// Constructor. The number of classes is to be given which is fixed … … 158 158 /// \brief Wrappers for LP solvers 159 159 /// 160 /// This class implements a hugowrapper for glpk.161 /// Later other LP-solvers will be wrapped into hugo.160 /// This class implements a lemon wrapper for glpk. 161 /// Later other LP-solvers will be wrapped into lemon. 162 162 /// The aim of this class is to give a general surface to different 163 163 /// solvers, i.e. it makes possible to write algorithms using LP's, … … 425 425 /// @} 426 426 427 } //namespace hugo428 429 #endif // HUGO_LP_SOLVER_WRAPPER_H427 } //namespace lemon 428 429 #endif //LEMON_LP_SOLVER_WRAPPER_H -
src/work/marci/lp/max_flow_by_lp.cc
r764 r921 4 4 5 5 #include <sage_graph.h> 6 #include < hugo/smart_graph.h>7 #include < hugo/dimacs.h>8 #include < hugo/time_measure.h>6 #include <lemon/smart_graph.h> 7 #include <lemon/dimacs.h> 8 #include <lemon/time_measure.h> 9 9 //#include <graph_wrapper.h> 10 #include < hugo/max_flow.h>10 #include <lemon/max_flow.h> 11 11 #include <augmenting_flow.h> 12 12 //#include <preflow_res.h> … … 14 14 #include <lp_solver_wrapper.h> 15 15 16 using namespace hugo;16 using namespace lemon; 17 17 18 18 // Use a DIMACS max flow file as stdin. -
src/work/marci/macro_test.cc
r762 r921 6 6 #include <for_each_macros.h> 7 7 8 using namespace hugo;8 using namespace lemon; 9 9 10 10 int main() -
src/work/marci/max_bipartite_matching.h
r768 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_MAX_BIPARTITE_MATCHING_H3 #define HUGO_MAX_BIPARTITE_MATCHING_H2 #ifndef LEMON_MAX_BIPARTITE_MATCHING_H 3 #define LEMON_MAX_BIPARTITE_MATCHING_H 4 4 5 5 /// \ingroup galgs … … 15 15 //#include <for_each_macros.h> 16 16 #include <bipartite_graph_wrapper.h> 17 //#include < hugo/maps.h>18 #include < hugo/max_flow.h>17 //#include <lemon/maps.h> 18 #include <lemon/max_flow.h> 19 19 20 namespace hugo{20 namespace lemon { 21 21 22 22 // template <typename Graph, typename EdgeCap, typename NodeCap, … … 136 136 }; 137 137 138 } //namespace hugo138 } //namespace lemon 139 139 140 #endif // HUGO_MAX_BIPARTITE_MATCHING_H140 #endif //LEMON_MAX_BIPARTITE_MATCHING_H -
src/work/marci/max_flow_1.cc
r762 r921 4 4 5 5 #include <sage_graph.h> 6 #include < hugo/smart_graph.h>7 #include < hugo/dimacs.h>8 #include < hugo/time_measure.h>6 #include <lemon/smart_graph.h> 7 #include <lemon/dimacs.h> 8 #include <lemon/time_measure.h> 9 9 //#include <graph_wrapper.h> 10 #include < hugo/max_flow.h>10 #include <lemon/max_flow.h> 11 11 //#include <preflow_res.h> 12 12 #include <for_each_macros.h> 13 13 14 using namespace hugo;14 using namespace lemon; 15 15 16 16 // Use a DIMACS max flow file as stdin. -
src/work/marci/max_flow_demo.cc
r854 r921 7 7 #include <fstream> 8 8 9 #include < hugo/smart_graph.h>10 #include < hugo/list_graph.h>11 #include < hugo/dimacs.h>12 #include < hugo/time_measure.h>13 #include < hugo/preflow.h>9 #include <lemon/smart_graph.h> 10 #include <lemon/list_graph.h> 11 #include <lemon/dimacs.h> 12 #include <lemon/time_measure.h> 13 #include <lemon/preflow.h> 14 14 #include <augmenting_flow.h> 15 15 #include <graph_concept.h> 16 16 17 using namespace hugo;17 using namespace lemon; 18 18 19 19 int main(int, char **) { -
src/work/marci/merge_node_graph_wrapper.h
r917 r921 1 1 /* -*- C++ -*- 2 * src/ hugo/merge_node_graph_wrapper.h - Part of HUGOlib, a generic C++ optimization library2 * src/lemon/merge_node_graph_wrapper.h - Part of LEMON, a generic C++ optimization library 3 3 * 4 4 * Copyright (C) 2004 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport … … 15 15 */ 16 16 17 #ifndef HUGO_MERGE_NODE_GRAPH_WRAPPER_H18 #define HUGO_MERGE_NODE_GRAPH_WRAPPER_H17 #ifndef LEMON_MERGE_NODE_GRAPH_WRAPPER_H 18 #define LEMON_MERGE_NODE_GRAPH_WRAPPER_H 19 19 20 #include < hugo/invalid.h>21 #include < hugo/maps.h>22 #include < hugo/map_defines.h>23 #include < hugo/graph_wrapper.h>20 #include <lemon/invalid.h> 21 #include <lemon/maps.h> 22 #include <lemon/map_defines.h> 23 #include <lemon/graph_wrapper.h> 24 24 #include <iostream> 25 25 26 namespace hugo{26 namespace lemon { 27 27 28 28 template <typename Graph1, typename Graph2, typename Enable=void> … … 173 173 }; 174 174 175 } //namespace hugo175 } //namespace lemon 176 176 177 #endif // HUGO_MERGE_NODE_GRAPH_WRAPPER_H177 #endif //LEMON_MERGE_NODE_GRAPH_WRAPPER_H -
src/work/marci/merge_node_graph_wrapper_test.cc
r917 r921 1 1 #include <iostream> 2 2 3 #include < hugo/list_graph.h>4 #include < hugo/smart_graph.h>3 #include <lemon/list_graph.h> 4 #include <lemon/smart_graph.h> 5 5 #include <merge_node_graph_wrapper.h> 6 6 … … 8 8 using std::endl; 9 9 10 using namespace hugo;10 using namespace lemon; 11 11 12 12 int main() { -
src/work/marci/oldies/edmonds_karp.h
r474 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_EDMONDS_KARP_H3 #define HUGO_EDMONDS_KARP_H2 #ifndef LEMON_EDMONDS_KARP_H 3 #define LEMON_EDMONDS_KARP_H 4 4 5 5 #include <algorithm> … … 13 13 #include <for_each_macros.h> 14 14 15 namespace hugo{15 namespace lemon { 16 16 17 17 template <typename Graph, typename Num, … … 952 952 953 953 954 } // namespace hugo955 956 #endif // HUGO_EDMONDS_KARP_H954 } // namespace lemon 955 956 #endif //LEMON_EDMONDS_KARP_H -
src/work/marci/oldies/marci_graph_demo.cc
r280 r921 7 7 #include <edmonds_karp.h> 8 8 9 using namespace hugo;9 using namespace lemon; 10 10 11 11 int main (int, char*[]) -
src/work/marci/preflow_bug.cc
r747 r921 4 4 5 5 #include <sage_graph.h> 6 #include < hugo/smart_graph.h>7 #include < hugo/dimacs.h>8 //#include < hugo/time_measure.h>6 #include <lemon/smart_graph.h> 7 #include <lemon/dimacs.h> 8 //#include <lemon/time_measure.h> 9 9 //#include <graph_wrapper.h> 10 #include < hugo/max_flow.h>10 #include <lemon/max_flow.h> 11 11 //#include <preflow_res.h> 12 12 #include <for_each_macros.h> … … 16 16 using std::endl; 17 17 18 using namespace hugo;18 using namespace lemon; 19 19 20 20 // Use a DIMACS min cost flow file as stdin. -
src/work/marci/preflow_demo_athos.cc
r522 r921 7 7 #include <time_measure.h> 8 8 9 using namespace hugo;9 using namespace lemon; 10 10 11 11 // Use a DIMACS max flow file as stdin. -
src/work/marci/preflow_demo_jacint.cc
r105 r921 8 8 #include <time_measure.h> 9 9 10 using namespace hugo;10 using namespace lemon; 11 11 12 12 // Use a DIMACS max flow file as stdin. -
src/work/marci/top_sort_test.cc
r762 r921 4 4 #include <list> 5 5 6 #include < hugo/dimacs.h>6 #include <lemon/dimacs.h> 7 7 #include <bfs_dfs_misc.h> 8 8 #include <sage_graph.h> 9 #include < hugo/graph_wrapper.h>10 #include < hugo/maps.h>9 #include <lemon/graph_wrapper.h> 10 #include <lemon/maps.h> 11 11 #include <for_each_macros.h> 12 12 13 using namespace hugo;13 using namespace lemon; 14 14 15 15 using std::cout; -
src/work/peter/edgepathgraph.h
r880 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_NET_GRAPH_H3 #define HUGO_NET_GRAPH_H2 #ifndef LEMON_NET_GRAPH_H 3 #define LEMON_NET_GRAPH_H 4 4 5 5 ///\file 6 6 ///\brief Declaration of EdgePathGraph. 7 7 8 #include < hugo/invalid.h>9 #include < hugo/maps.h>10 11 /// The namespace of HugoLib12 namespace hugo{8 #include <lemon/invalid.h> 9 #include <lemon/maps.h> 10 11 /// The namespace of LEMON 12 namespace lemon { 13 13 14 14 // @defgroup empty_graph The EdgePathGraph class … … 402 402 // @} 403 403 404 } //namespace hugo405 406 407 #endif // HUGO_SKELETON_GRAPH_H404 } //namespace lemon 405 406 407 #endif // LEMON_SKELETON_GRAPH_H -
src/work/peter/edgepathgraph_test.cc
r677 r921 4 4 5 5 #include "edgepathgraph.h" 6 #include < hugo/list_graph.h>7 #include < hugo/smart_graph.h>6 #include <lemon/list_graph.h> 7 #include <lemon/smart_graph.h> 8 8 #include <path.h> 9 9 10 using namespace hugo;10 using namespace lemon; 11 11 using namespace std; 12 12 -
src/work/peter/hierarchygraph.h
r880 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_NET_GRAPH_H3 #define HUGO_NET_GRAPH_H2 #ifndef LEMON_NET_GRAPH_H 3 #define LEMON_NET_GRAPH_H 4 4 5 5 ///\file 6 6 ///\brief Declaration of HierarchyGraph. 7 7 8 #include < hugo/invalid.h>9 #include < hugo/maps.h>10 11 /// The namespace of HugoLib12 namespace hugo8 #include <lemon/invalid.h> 9 #include <lemon/maps.h> 10 11 /// The namespace of LEMON 12 namespace lemon 13 13 { 14 14 … … 576 576 // @} 577 577 578 } //namespace hugo579 580 581 #endif // HUGO_SKELETON_GRAPH_H578 } //namespace lemon 579 580 581 #endif // LEMON_SKELETON_GRAPH_H -
src/work/peter/hierarchygraph_test.cc
r690 r921 4 4 5 5 #include "hierarchygraph.h" 6 #include < hugo/list_graph.h>7 #include < hugo/smart_graph.h>6 #include <lemon/list_graph.h> 7 #include <lemon/smart_graph.h> 8 8 #include <path.h> 9 9 10 using namespace hugo;10 using namespace lemon; 11 11 using namespace std; 12 12 -
src/work/peter/path/debug.h
r815 r921 1 1 // -*- C++ -*- // 2 2 3 #ifndef HUGO_DEBUG_H4 #define HUGO_DEBUG_H3 #ifndef LEMON_DEBUG_H 4 #define LEMON_DEBUG_H 5 5 6 6 //! \file 7 7 //! \brief Basic definitions for debug control. 8 8 9 namespace hugo{9 namespace lemon { 10 10 11 11 //! Debug mode for testing/debugging … … 54 54 55 55 } 56 #endif // HUGO_DEBUG_H56 #endif // LEMON_DEBUG_H -
src/work/peter/path/path.h
r815 r921 4 4 @defgroup paths Path Structures 5 5 @ingroup datas 6 \brief Path structures implemented in Hugo.7 8 Hugolibprovides flexible data structures6 \brief Path structures implemented in LEMON. 7 8 LEMON provides flexible data structures 9 9 to work with paths. 10 10 … … 13 13 algorithm to store its result in any kind of path structure. 14 14 15 \sa hugo::skeleton::Path15 \sa lemon::skeleton::Path 16 16 17 17 */ … … 21 21 ///\brief Classes for representing paths in graphs. 22 22 23 #ifndef HUGO_PATH_H24 #define HUGO_PATH_H23 #ifndef LEMON_PATH_H 24 #define LEMON_PATH_H 25 25 26 26 #include <deque> … … 28 28 #include <algorithm> 29 29 30 #include < hugo/invalid.h>31 #include < hugo/error.h>30 #include <lemon/invalid.h> 31 #include <lemon/error.h> 32 32 #include <debug.h> 33 33 34 namespace hugo{34 namespace lemon { 35 35 36 36 /// \addtogroup paths … … 1170 1170 ///@} 1171 1171 1172 } // namespace hugo1173 1174 #endif // HUGO_PATH_H1172 } // namespace lemon 1173 1174 #endif // LEMON_PATH_H -
src/work/peter/path/path_skeleton.h
r815 r921 6 6 ///\brief Classes for representing paths in graphs. 7 7 8 #ifndef HUGO_PATH_H9 #define HUGO_PATH_H10 11 #include < hugo/invalid.h>12 13 namespace hugo{8 #ifndef LEMON_PATH_H 9 #define LEMON_PATH_H 10 11 #include <lemon/invalid.h> 12 13 namespace lemon { 14 14 namespace skeleton { 15 15 /// \addtogroup skeletons … … 219 219 } 220 220 221 } // namespace hugo222 223 #endif // HUGO_PATH_H221 } // namespace lemon 222 223 #endif // LEMON_PATH_H -
src/work/peter/path/path_test.cc
r815 r921 6 6 7 7 using namespace std; 8 using namespace hugo;8 using namespace lemon; 9 9 using namespace skeleton; 10 10 -
src/work/sage_graph.h
r774 r921 1 1 // -*- c++ -*- 2 #ifndef HUGO_SAGE_GRAPH_H3 #define HUGO_SAGE_GRAPH_H2 #ifndef LEMON_SAGE_GRAPH_H 3 #define LEMON_SAGE_GRAPH_H 4 4 5 5 #include <iostream> 6 6 #include <vector> 7 7 8 #include < hugo/invalid.h>9 10 namespace hugo{8 #include <lemon/invalid.h> 9 10 namespace lemon { 11 11 12 12 // template <typename It> … … 537 537 }; 538 538 539 } //namespace hugo540 541 #endif // HUGO_SAGE_GRAPH_H539 } //namespace lemon 540 541 #endif //LEMON_SAGE_GRAPH_H
Note: See TracChangeset
for help on using the changeset viewer.