COIN-OR::LEMON - Graph Library

Changeset 776:eff1caf6d32e in lemon-1.2 for test


Ignore:
Timestamp:
09/29/09 10:39:20 (10 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
777:5764dd9b6e18, 778: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

    r774 r776  
    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.