# HG changeset patch # User alpar # Date 1160650429 0 # Node ID 9f329faa4aeeaf5e67c0b152fac9c402790f1529 # Parent 48801095a41023087389e2fe1411efb3606f3b4c EdgeLookUp and AllEdgeLookUp tests added. 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)