Changeset 1270:dceba191c00d in lemon for test/arc_look_up_test.cc
- Timestamp:
- 08/09/13 11:28:17 (11 years ago)
- Branch:
- default
- Children:
- 1271:fb1c7da561ce, 1381:e0ccc1f0268f
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/arc_look_up_test.cc
r1149 r1270 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 69 69 std::istringstream lgfs(lgf); 70 70 DigraphReader<ListDigraph>(graph, lgfs).run(); 71 71 72 72 AllArcLookUp<ListDigraph> lookup(graph); 73 73 74 74 int numArcs = countArcs(graph); 75 75 76 76 int arcCnt = 0; 77 77 for(ListDigraph::NodeIt n1(graph); n1 != INVALID; ++n1) 78 78 for(ListDigraph::NodeIt n2(graph); n2 != INVALID; ++n2) 79 79 for(ListDigraph::Arc a = lookup(n1, n2); a != INVALID; 80 81 80 a = lookup(n1, n2, a)) 81 ++arcCnt; 82 82 check(arcCnt==numArcs, "Wrong total number of arcs"); 83 83
Note: See TracChangeset
for help on using the changeset viewer.