EdgeLookUp and AllEdgeLookUp tests added.
1.1 --- a/test/graph_utils_test.cc Thu Oct 12 10:53:25 2006 +0000
1.2 +++ b/test/graph_utils_test.cc Thu Oct 12 10:53:49 2006 +0000
1.3 @@ -86,6 +86,16 @@
1.4 check(++con == INVALID, "There is more connecting edge.");
1.5 }
1.6 }
1.7 + AllEdgeLookUp<FullGraph> el(fg);
1.8 + for (FullGraph::NodeIt src(fg); src != INVALID; ++src) {
1.9 + for (FullGraph::NodeIt trg(fg); trg != INVALID; ++trg) {
1.10 + FullGraph::Edge con = el(src, trg);
1.11 + check(con != INVALID, "There is no connecting edge.");
1.12 + check(fg.source(con) == src, "Wrong source.");
1.13 + check(fg.target(con) == trg, "Wrong target.");
1.14 + check(el(src,trg,con) == INVALID, "There is more connecting edge.");
1.15 + }
1.16 + }
1.17 }
1.18
1.19 //check In/OutDegMap (and Snapshot feature)