COIN-OR::LEMON - Graph Library

Changeset 823:eff1caf6d32e in lemon for test/digraph_test.cc


Ignore:
Timestamp:
09/29/09 10:39:20 (15 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
824:5764dd9b6e18, 825:a143f19f465b
Phase:
public
Message:

Extend the interface of StaticDigraph? (#68)
with index(), arc() and node() functions similarly to
other static graph structures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/digraph_test.cc

    r821 r823  
    446446  checkGraphNodeMap(G);
    447447  checkGraphArcMap(G);
     448 
     449  int n = G.nodeNum();
     450  int m = G.arcNum();
     451  check(G.index(G.node(n-1)) == n-1, "Wrong index.");
     452  check(G.index(G.arc(m-1)) == m-1, "Wrong index.");
    448453}
    449454
Note: See TracChangeset for help on using the changeset viewer.