Changeset 2:37117ebbabe2 in lemon-0.x for src/include/graph.h
- Timestamp:
- 12/11/03 08:24:53 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@13
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/include/graph.h
r1 r2 73 73 bool operator!=(const NodeIterator &i) const {return n!=i.n;} 74 74 75 int Index() { return n; } //If the nodes are indexable 75 76 friend class Graph; 76 77 friend class EdgeIterator; … … 115 116 bool operator==(const EdgeIterator &i) const {return e==i.e;} 116 117 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 118 122 friend class Graph; 119 123 friend class InEdgeIterator;
Note: See TracChangeset
for help on using the changeset viewer.