diff -r 48801095a410 -r 9f329faa4aee test/graph_utils_test.cc --- a/test/graph_utils_test.cc Thu Oct 12 10:53:25 2006 +0000 +++ b/test/graph_utils_test.cc Thu Oct 12 10:53:49 2006 +0000 @@ -86,6 +86,16 @@ check(++con == INVALID, "There is more connecting edge."); } } + AllEdgeLookUp el(fg); + for (FullGraph::NodeIt src(fg); src != INVALID; ++src) { + for (FullGraph::NodeIt trg(fg); trg != INVALID; ++trg) { + FullGraph::Edge con = el(src, trg); + check(con != INVALID, "There is no connecting edge."); + check(fg.source(con) == src, "Wrong source."); + check(fg.target(con) == trg, "Wrong target."); + check(el(src,trg,con) == INVALID, "There is more connecting edge."); + } + } } //check In/OutDegMap (and Snapshot feature)