Changeset 959:c80ef5912903 in lemon-0.x for src
- Timestamp:
- 11/04/04 21:24:59 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1342
- Location:
- src
- Files:
-
- 5 added
- 5 deleted
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/Makefile.am
r946 r959 37 37 38 38 noinst_HEADERS = \ 39 skeletons/graph.h\40 skeletons/graph_component.h \41 skeletons/sym_graph.h\42 skeletons/maps.h\43 skeletons/path.h39 concept/graph.h \ 40 concept/graph_component.h \ 41 concept/sym_graph.h \ 42 concept/maps.h \ 43 concept/path.h -
src/lemon/dijkstra.h
r921 r959 34 34 ///This class provides an efficient implementation of %Dijkstra algorithm. 35 35 ///The edge lengths are passed to the algorithm using a 36 ///\ref skeleton::ReadMap "ReadMap",36 ///\ref concept::ReadMap "ReadMap", 37 37 ///so it is easy to change it to any kind of length. 38 38 /// 39 39 ///The type of the length is determined by the 40 ///\ref skeleton::ReadMap::ValueType "ValueType" of the length map.40 ///\ref concept::ReadMap::ValueType "ValueType" of the length map. 41 41 /// 42 42 ///It is also possible to change the underlying priority heap. … … 49 49 ///may involve in relatively time consuming process to compute the edge 50 50 ///length if it is necessary. The default map type is 51 ///\ref skeleton::StaticGraph::EdgeMap "Graph::EdgeMap<int>"51 ///\ref concept::StaticGraph::EdgeMap "Graph::EdgeMap<int>" 52 52 ///\param Heap The heap type used by the %Dijkstra 53 53 ///algorithm. The default -
src/lemon/full_graph.h
r951 r959 195 195 ///edges or nodes. 196 196 ///Thus it conforms to 197 ///the \ref skeleton::StaticGraph "StaticGraph" concept198 ///\sa skeleton::StaticGraph.197 ///the \ref concept::StaticGraph "StaticGraph" concept 198 ///\sa concept::StaticGraph. 199 199 ///\todo What about loops? 200 200 ///\todo Don't we need SymEdgeMap? -
src/lemon/list_graph.h
r949 r959 318 318 /// 319 319 ///It conforms to the 320 ///\ref skeleton::ErasableGraph "ErasableGraph" concept.321 ///\sa skeleton::ErasableGraph.320 ///\ref concept::ErasableGraph "ErasableGraph" concept. 321 ///\sa concept::ErasableGraph. 322 322 323 323 class ListGraph : public ErasableListGraphBase -
src/lemon/maps.h
r921 r959 21 21 ///\brief Miscellaneous property maps 22 22 /// 23 ///\todo This file has the same name as the concept file in skeletons,23 ///\todo This file has the same name as the concept file in concept/, 24 24 /// and this is not easily detectable in docs... 25 25 -
src/lemon/path.h
r921 r959 27 27 algorithm to store its result in any kind of path structure. 28 28 29 \sa lemon:: skeleton::Path29 \sa lemon::concept::Path 30 30 31 31 */ -
src/lemon/smart_graph.h
r950 r959 230 230 ///that <b> it does not support node and edge deletion</b>. 231 231 ///It conforms to 232 ///the \ref skeleton::ExtendableGraph "ExtendableGraph" concept.233 ///\sa skeleton::ExtendableGraph.232 ///the \ref concept::ExtendableGraph "ExtendableGraph" concept. 233 ///\sa concept::ExtendableGraph. 234 234 /// 235 235 ///\todo Some member functions could be \c static. -
src/test/bfs_test.cc
r921 r959 18 18 #include <lemon/smart_graph.h> 19 19 #include <lemon/bfs.h> 20 #include<lemon/ skeletons/graph.h>20 #include<lemon/concept/graph.h> 21 21 22 22 using namespace lemon; … … 27 27 void check_Bfs_Compile() 28 28 { 29 typedef skeleton::StaticGraph Graph;29 typedef concept::StaticGraph Graph; 30 30 31 31 typedef Graph::Edge Edge; -
src/test/dfs_test.cc
r921 r959 18 18 #include <lemon/smart_graph.h> 19 19 #include <lemon/dfs.h> 20 #include <lemon/skeletons/graph.h>20 #include <lemon/concept/graph.h> 21 21 22 22 using namespace lemon; … … 27 27 void check_Dfs_SmartGraph_Compile() 28 28 { 29 typedef skeleton::StaticGraph Graph;29 typedef concept::StaticGraph Graph; 30 30 31 31 typedef Graph::Edge Edge; -
src/test/dijkstra_test.cc
r921 r959 18 18 #include <lemon/smart_graph.h> 19 19 #include <lemon/dijkstra.h> 20 #include <lemon/skeletons/graph.h>21 #include <lemon/skeletons/maps.h>20 #include <lemon/concept/graph.h> 21 #include <lemon/concept/maps.h> 22 22 using namespace lemon; 23 23 … … 28 28 { 29 29 typedef int VType; 30 typedef skeleton::StaticGraph Graph;30 typedef concept::StaticGraph Graph; 31 31 32 32 typedef Graph::Edge Edge; … … 34 34 typedef Graph::EdgeIt EdgeIt; 35 35 typedef Graph::NodeIt NodeIt; 36 typedef skeleton::ReadMap<Edge,VType> LengthMap;36 typedef concept::ReadMap<Edge,VType> LengthMap; 37 37 38 38 typedef Dijkstra<Graph, LengthMap> DType; -
src/test/graph_factory_test.cc
r946 r959 17 17 #include<iostream> 18 18 #include<lemon/smart_graph.h> 19 #include<lemon/ skeletons/graph.h>20 #include<lemon/ skeletons/maps.h>19 #include<lemon/concept/graph.h> 20 #include<lemon/concept/maps.h> 21 21 #include<lemon/list_graph_base.h> 22 22 #include<lemon/full_graph.h> … … 69 69 70 70 //Compile Graph 71 template void lemon:: skeleton::checkCompileStaticGraph<skeleton::StaticGraph>72 ( skeleton::StaticGraph &);71 template void lemon::concept::checkCompileStaticGraph<concept::StaticGraph> 72 (concept::StaticGraph &); 73 73 74 74 template 75 void lemon:: skeleton::checkCompileExtendableGraph<skeleton::ExtendableGraph>76 ( skeleton::ExtendableGraph &);75 void lemon::concept::checkCompileExtendableGraph<concept::ExtendableGraph> 76 (concept::ExtendableGraph &); 77 77 78 78 template 79 void lemon:: skeleton::checkCompileErasableGraph<skeleton::ErasableGraph>80 ( skeleton::ErasableGraph &);79 void lemon::concept::checkCompileErasableGraph<concept::ErasableGraph> 80 (concept::ErasableGraph &); 81 81 82 82 //Compile SmartGraph 83 83 template 84 void lemon:: skeleton::checkCompileExtendableGraph<SmartGraph>(SmartGraph &);84 void lemon::concept::checkCompileExtendableGraph<SmartGraph>(SmartGraph &); 85 85 template 86 void lemon:: skeleton::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &);86 void lemon::concept::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &); 87 87 88 88 //Compile SymSmartGraph … … 92 92 //Compile ListGraph 93 93 template 94 void lemon:: skeleton::checkCompileExtendableGraph<ListGraph>(ListGraph &);94 void lemon::concept::checkCompileExtendableGraph<ListGraph>(ListGraph &); 95 95 template 96 void lemon:: skeleton::checkCompileErasableGraph<ListGraph>(ListGraph &);96 void lemon::concept::checkCompileErasableGraph<ListGraph>(ListGraph &); 97 97 template 98 void lemon:: skeleton::checkCompileGraphFindEdge<ListGraph>(ListGraph &);98 void lemon::concept::checkCompileGraphFindEdge<ListGraph>(ListGraph &); 99 99 100 100 … … 105 105 106 106 //Compile FullGraph 107 template void lemon:: skeleton::checkCompileStaticGraph<FullGraph>(FullGraph &);107 template void lemon::concept::checkCompileStaticGraph<FullGraph>(FullGraph &); 108 108 template 109 void lemon:: skeleton::checkCompileGraphFindEdge<FullGraph>(FullGraph &);109 void lemon::concept::checkCompileGraphFindEdge<FullGraph>(FullGraph &); 110 110 111 111 … … 142 142 // Some map tests. 143 143 // FIXME: These shouldn't be here. 144 using namespace skeleton;144 using namespace concept; 145 145 function_requires< ReadMapConcept< ReadMap<int,int> > >(); 146 146 function_requires< WriteMapConcept< WriteMap<int,int> > >(); -
src/test/graph_test.cc
r946 r959 4 4 #include <vector> 5 5 6 #include <lemon/ skeletons/graph.h>6 #include <lemon/concept/graph.h> 7 7 #include <lemon/list_graph.h> 8 8 #include <lemon/smart_graph.h> … … 15 15 16 16 using namespace lemon; 17 using namespace lemon:: skeleton;17 using namespace lemon::concept; 18 18 19 19 -
src/test/graph_wrapper_test.cc
r946 r959 19 19 20 20 #include<lemon/smart_graph.h> 21 #include<lemon/ skeletons/graph.h>21 #include<lemon/concept/graph.h> 22 22 23 23 #include<lemon/list_graph.h> … … 36 36 37 37 using namespace lemon; 38 using namespace lemon:: skeleton;38 using namespace lemon::concept; 39 39 40 40 -
src/test/kruskal_test.cc
r921 r959 22 22 #include <lemon/kruskal.h> 23 23 #include <lemon/list_graph.h> 24 #include <lemon/ skeletons/maps.h>25 #include <lemon/ skeletons/graph.h>24 #include <lemon/concept/maps.h> 25 #include <lemon/concept/graph.h> 26 26 27 27 … … 31 31 void checkCompileKruskal() 32 32 { 33 skeleton::WriteMap<skeleton::StaticGraph::Edge,bool> w;33 concept::WriteMap<concept::StaticGraph::Edge,bool> w; 34 34 35 kruskalEdgeMap( skeleton::StaticGraph(),36 skeleton::ReadMap<skeleton::StaticGraph::Edge,int>(),35 kruskalEdgeMap(concept::StaticGraph(), 36 concept::ReadMap<concept::StaticGraph::Edge,int>(), 37 37 w); 38 38 } -
src/test/new_graph_test.cc
r946 r959 15 15 */ 16 16 17 #include <lemon/ skeletons/graph.h>17 #include <lemon/concept/graph.h> 18 18 // #include <boost/concept_check.hpp> 19 19 20 using namespace lemon:: skeleton;20 using namespace lemon::concept; 21 21 22 22 // Borrowed from boost: -
src/test/path_test.cc
r921 r959 17 17 #include <string> 18 18 #include <iostream> 19 #include <lemon/ skeletons/path.h>19 #include <lemon/concept/path.h> 20 20 #include <lemon/path.h> 21 21 #include <lemon/list_graph.h> … … 23 23 using namespace std; 24 24 using namespace lemon; 25 using namespace skeleton;25 using namespace lemon::concept; 26 26 27 27 template<class Path> void checkCompilePath(Path &P) … … 87 87 } 88 88 89 template void checkCompilePath< skeleton::Path<ListGraph> >(skeleton::Path<ListGraph> &);89 template void checkCompilePath< concept::Path<ListGraph> >(concept::Path<ListGraph> &); 90 90 template void checkCompilePath< DirPath<ListGraph> >(DirPath<ListGraph> &); 91 91 template void checkCompilePath< UndirPath<ListGraph> >(UndirPath<ListGraph> &); -
src/test/preflow_test.cc
r940 r959 22 22 #include <lemon/dimacs.h> 23 23 #include <lemon/preflow.h> 24 #include <lemon/ skeletons/graph.h>25 #include <lemon/ skeletons/maps.h>24 #include <lemon/concept/graph.h> 25 #include <lemon/concept/maps.h> 26 26 27 27 using namespace lemon; … … 30 30 { 31 31 typedef int VType; 32 typedef skeleton::StaticGraph Graph;32 typedef concept::StaticGraph Graph; 33 33 34 34 typedef Graph::Node Node; 35 35 typedef Graph::Edge Edge; 36 typedef skeleton::ReadMap<Edge,VType> CapMap;37 typedef skeleton::ReadWriteMap<Edge,VType> FlowMap;38 typedef skeleton::ReadWriteMap<Node,bool> CutMap;36 typedef concept::ReadMap<Edge,VType> CapMap; 37 typedef concept::ReadWriteMap<Edge,VType> FlowMap; 38 typedef concept::ReadWriteMap<Node,bool> CutMap; 39 39 40 40 typedef Preflow<Graph, int, CapMap, FlowMap> PType; -
src/test/sym_graph_test.cc
r938 r959 17 17 #include<iostream> 18 18 19 #include<lemon/ skeletons/sym_graph.h>19 #include<lemon/concept/sym_graph.h> 20 20 21 21 #include<lemon/list_graph.h> … … 55 55 56 56 //Compile Graph 57 template void lemon::checkCompileStaticSymGraph< skeleton::StaticSymGraph>58 ( skeleton::StaticSymGraph &);57 template void lemon::checkCompileStaticSymGraph<concept::StaticSymGraph> 58 (concept::StaticSymGraph &); 59 59 60 template void lemon::checkCompileSymGraph< skeleton::ExtendableSymGraph>61 ( skeleton::ExtendableSymGraph &);60 template void lemon::checkCompileSymGraph<concept::ExtendableSymGraph> 61 (concept::ExtendableSymGraph &); 62 62 63 template void lemon::checkCompileErasableSymGraph< skeleton::ErasableSymGraph>64 ( skeleton::ErasableSymGraph &);63 template void lemon::checkCompileErasableSymGraph<concept::ErasableSymGraph> 64 (concept::ErasableSymGraph &); 65 65 66 66 … … 68 68 template void lemon::checkCompileSymGraph<SymSmartGraph>(SymSmartGraph &); 69 69 template 70 void lemon:: skeleton::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &);70 void lemon::concept::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &); 71 71 72 72 //Compile SymListGraph … … 74 74 template void lemon::checkCompileErasableSymGraph<SymListGraph>(SymListGraph &); 75 75 template 76 void lemon:: skeleton::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &);76 void lemon::concept::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &); 77 77 78 78 int main() -
src/test/sym_graph_test.h
r938 r959 28 28 /// \e 29 29 30 /// \todo This should go to lemon/ skeleton/symgraph.h30 /// \todo This should go to lemon/concept/symgraph.h 31 31 /// 32 32 template<class Graph> void checkCompileStaticSymGraph(Graph &G) … … 41 41 typedef typename Graph::OutEdgeIt OutEdgeIt; 42 42 43 lemon:: skeleton::checkCompileStaticGraph(G);43 lemon::concept::checkCompileStaticGraph(G); 44 44 45 45 { … … 158 158 { 159 159 checkCompileSymGraph(G); 160 lemon:: skeleton::checkCompileGraphEraseNode(G);160 lemon::concept::checkCompileGraphEraseNode(G); 161 161 checkCompileSymGraphEraseSymEdge(G); 162 162 } -
src/work/Doxyfile
r939 r959 397 397 ../../doc/groups.dox \ 398 398 ../lemon \ 399 ../lemon/ skeletons\399 ../lemon/concept \ 400 400 ../test/test_tools.h \ 401 401 klao/path.h \ -
src/work/alpar/dijkstra.h
r955 r959 101 101 ///This class provides an efficient implementation of %Dijkstra algorithm. 102 102 ///The edge lengths are passed to the algorithm using a 103 ///\ref skeleton::ReadMap "ReadMap",103 ///\ref concept::ReadMap "ReadMap", 104 104 ///so it is easy to change it to any kind of length. 105 105 /// 106 106 ///The type of the length is determined by the 107 ///\ref skeleton::ReadMap::ValueType "ValueType" of the length map.107 ///\ref concept::ReadMap::ValueType "ValueType" of the length map. 108 108 /// 109 109 ///It is also possible to change the underlying priority heap. … … 118 118 ///may involve in relatively time consuming process to compute the edge 119 119 ///length if it is necessary. The default map type is 120 ///\ref skeleton::StaticGraph::EdgeMap "Graph::EdgeMap<int>".120 ///\ref concept::StaticGraph::EdgeMap "Graph::EdgeMap<int>". 121 121 ///The value of LM is not used directly by Dijkstra, it 122 122 ///is only passed to \ref DijkstraDefaultTraits. -
src/work/alpar/list_graph_demo.cc
r921 r959 1 1 #include<list_graph.h> 2 #include< skeletons/graph.h>2 #include<concept/graph.h> 3 3 4 4 #include <iostream> -
src/work/marci/bfs_mm_test.cc
r944 r959 18 18 #include <lemon/smart_graph.h> 19 19 #include <bfs_mm.h> 20 #include <lemon/ skeletons/graph.h>20 #include <lemon/concept/graph.h> 21 21 22 22 using namespace lemon; … … 27 27 void check_Bfs_Compile() 28 28 { 29 typedef skeleton::StaticGraph Graph;29 typedef concept::StaticGraph Graph; 30 30 31 31 typedef Graph::Edge Edge; -
src/work/peter/path/path.h
r921 r959 13 13 algorithm to store its result in any kind of path structure. 14 14 15 \sa lemon:: skeleton::Path15 \sa lemon::concept::Path 16 16 17 17 */ -
src/work/peter/path/path_skeleton.h
r921 r959 2 2 // -*- c++ -*- // 3 3 4 ///\ingroup skeletons4 ///\ingroup concept 5 5 ///\file 6 6 ///\brief Classes for representing paths in graphs. … … 12 12 13 13 namespace lemon { 14 namespace skeleton{15 /// \addtogroup skeletons14 namespace concept { 15 /// \addtogroup concept 16 16 /// @{ 17 17 18 18 19 //! \brief A skeleto mstructure for representing directed paths in a graph.19 //! \brief A skeleton structure for representing directed paths in a graph. 20 20 //! 21 21 //! A skeleton structure for representing directed paths in a graph. … … 86 86 * \brief Iterator class to iterate on the edges of the paths 87 87 * 88 * \ingroup skeletons88 * \ingroup concept 89 89 * This class is used to iterate on the edges of the paths 90 90 * … … 119 119 * \brief Iterator class to iterate on the nodes of the paths 120 120 * 121 * \ingroup skeletons121 * \ingroup concept 122 122 * This class is used to iterate on the nodes of the paths 123 123 * … … 154 154 * \brief Class to build paths 155 155 * 156 * \ingroup skeletons156 * \ingroup concept 157 157 * This class is used to fill a path with edges. 158 158 * -
src/work/peter/path/path_test.cc
r921 r959 7 7 using namespace std; 8 8 using namespace lemon; 9 using namespace skeleton;9 using namespace concept; 10 10 11 11 bool passed = true;
Note: See TracChangeset
for help on using the changeset viewer.