COIN-OR::LEMON - Graph Library

Changeset 2:37117ebbabe2 in lemon-0.x for src/include/graph.h


Ignore:
Timestamp:
12/11/03 08:24:53 (21 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@13
Message:

bfs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/include/graph.h

    r1 r2  
    7373      bool operator!=(const NodeIterator &i) const {return n!=i.n;}
    7474     
     75      int Index() { return n; } //If the nodes are indexable
    7576      friend class Graph;
    7677      friend class EdgeIterator;
     
    115116      bool operator==(const EdgeIterator &i) const {return e==i.e;}
    116117      bool operator!=(const EdgeIterator &i) const {return e!=i.e;}
    117      
     118       
     119      int Index() { return e.index.block*EDGE_BLOCK_SIZE+e.index.index; }
     120      //If the edges are indexable
     121
    118122      friend class Graph;
    119123      friend class InEdgeIterator;
Note: See TracChangeset for help on using the changeset viewer.