COIN-OR::LEMON - Graph Library

Changeset 784:9d6c3e8b2421 in lemon for test/digraph_test.cc


Ignore:
Timestamp:
08/23/09 11:11:49 (15 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Add a resize() function to HypercubeGraph? (#311)
just like the similar functions in other static graph structures,
and extend the test files to check these functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/digraph_test.cc

    r783 r784  
    379379  typedef FullDigraph Digraph;
    380380  DIGRAPH_TYPEDEFS(Digraph);
     381
    381382  Digraph G(num);
     383  check(G.nodeNum() == num && G.arcNum() == num * num, "Wrong size");
     384
     385  G.resize(num);
     386  check(G.nodeNum() == num && G.arcNum() == num * num, "Wrong size");
    382387
    383388  checkGraphNodeList(G, num);
Note: See TracChangeset for help on using the changeset viewer.