COIN-OR::LEMON - Graph Library

Changeset 2236:9f329faa4aee in lemon-0.x


Ignore:
Timestamp:
10/12/06 12:53:49 (17 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2979
Message:

EdgeLookUp? and AllEdgeLookUp? tests added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/graph_utils_test.cc

    r1956 r2236  
    8787      }
    8888    }
     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    }
    8999  }
    90100
Note: See TracChangeset for help on using the changeset viewer.