test/graph_utils_test.cc
changeset 2239 18c24fe93b99
parent 1956 a055123339d5
child 2242 16523135943d
equal deleted inserted replaced
6:291f1b8f7ca1 7:1f0d188f3803
    84 	check(fg.source(con) == src, "Wrong source.");
    84 	check(fg.source(con) == src, "Wrong source.");
    85 	check(fg.target(con) == trg, "Wrong target.");
    85 	check(fg.target(con) == trg, "Wrong target.");
    86 	check(++con == INVALID, "There is more connecting edge.");
    86 	check(++con == INVALID, "There is more connecting edge.");
    87       }
    87       }
    88     }
    88     }
       
    89     AllEdgeLookUp<FullGraph> el(fg);
       
    90     for (FullGraph::NodeIt src(fg); src != INVALID; ++src) {
       
    91       for (FullGraph::NodeIt trg(fg); trg != INVALID; ++trg) {
       
    92 	FullGraph::Edge con = el(src, trg);
       
    93 	check(con != INVALID, "There is no connecting edge.");
       
    94 	check(fg.source(con) == src, "Wrong source.");
       
    95 	check(fg.target(con) == trg, "Wrong target.");
       
    96 	check(el(src,trg,con) == INVALID, "There is more connecting edge.");
       
    97       }
       
    98     }
    89   }
    99   }
    90 
   100 
    91   //check In/OutDegMap (and Snapshot feature)
   101   //check In/OutDegMap (and Snapshot feature)
    92 
   102 
    93   checkSnapDeg<ListGraph>();
   103   checkSnapDeg<ListGraph>();