equal
deleted
inserted
replaced
22 |
22 |
23 //! \ingroup misc |
23 //! \ingroup misc |
24 //! \file |
24 //! \file |
25 //! \brief Some utility to test symmetric graph classes. |
25 //! \brief Some utility to test symmetric graph classes. |
26 namespace lemon { |
26 namespace lemon { |
|
27 |
|
28 /// \e |
27 |
29 |
|
30 /// \todo This should go to lemon/skeleton/symgraph.h |
|
31 /// |
28 template<class Graph> void checkCompileStaticSymGraph(Graph &G) |
32 template<class Graph> void checkCompileStaticSymGraph(Graph &G) |
29 { |
33 { |
30 typedef typename Graph::Node Node; |
34 typedef typename Graph::Node Node; |
31 typedef typename Graph::NodeIt NodeIt; |
35 typedef typename Graph::NodeIt NodeIt; |
32 typedef typename Graph::SymEdge SymEdge; |
36 typedef typename Graph::SymEdge SymEdge; |
34 typedef typename Graph::Edge Edge; |
38 typedef typename Graph::Edge Edge; |
35 typedef typename Graph::EdgeIt EdgeIt; |
39 typedef typename Graph::EdgeIt EdgeIt; |
36 typedef typename Graph::InEdgeIt InEdgeIt; |
40 typedef typename Graph::InEdgeIt InEdgeIt; |
37 typedef typename Graph::OutEdgeIt OutEdgeIt; |
41 typedef typename Graph::OutEdgeIt OutEdgeIt; |
38 |
42 |
39 checkCompileStaticGraph(G); |
43 lemon::skeleton::checkCompileStaticGraph(G); |
40 |
44 |
41 { |
45 { |
42 SymEdge i; SymEdge j(i); SymEdge k(INVALID); |
46 SymEdge i; SymEdge j(i); SymEdge k(INVALID); |
43 i=j; |
47 i=j; |
44 bool b; b=true; |
48 bool b; b=true; |
151 } |
155 } |
152 |
156 |
153 template<class Graph> void checkCompileErasableSymGraph(Graph &G) |
157 template<class Graph> void checkCompileErasableSymGraph(Graph &G) |
154 { |
158 { |
155 checkCompileSymGraph(G); |
159 checkCompileSymGraph(G); |
156 checkCompileGraphEraseNode(G); |
160 lemon::skeleton::checkCompileGraphEraseNode(G); |
157 checkCompileSymGraphEraseSymEdge(G); |
161 checkCompileSymGraphEraseSymEdge(G); |
158 } |
162 } |
159 |
163 |
160 template<class Graph> void checkGraphSymEdgeList(Graph &G, int nn) |
164 template<class Graph> void checkGraphSymEdgeList(Graph &G, int nn) |
161 { |
165 { |