Changeset 793:9cd0aeea47b0 in lemon-0.x for src/test/dfs_test.cc
- Timestamp:
- 09/03/04 11:41:50 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1087
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/test/dfs_test.cc
r780 r793 2 2 #include <hugo/smart_graph.h> 3 3 #include <hugo/dfs.h> 4 #include<hugo/skeletons/graph.h> 4 5 5 6 using namespace hugo; … … 10 11 void check_Dfs_SmartGraph_Compile() 11 12 { 12 typedef int VType; 13 typedef SmartGraph Graph; 13 typedef skeleton::StaticGraphSkeleton Graph; 14 14 15 15 typedef Graph::Edge Edge; … … 17 17 typedef Graph::EdgeIt EdgeIt; 18 18 typedef Graph::NodeIt NodeIt; 19 typedef Graph::EdgeMap<VType> LengthMap;20 19 21 typedef Dfs<Graph> BType;20 typedef Dfs<Graph> DType; 22 21 23 22 Graph G; 24 23 Node n; 25 24 Edge e; 26 VTypel;25 int l; 27 26 bool b; 28 BType::DistMap d(G); 29 BType::PredMap p(G); 30 BType::PredNodeMap pn(G); 31 LengthMap cap(G); 27 DType::DistMap d(G); 28 DType::PredMap p(G); 29 DType::PredNodeMap pn(G); 32 30 33 BType dfs_test(G);31 DType dfs_test(G); 34 32 35 33 dfs_test.run(n);
Note: See TracChangeset
for help on using the changeset viewer.