Changeset 713:57c0b110b31e in lemon-0.x for src/hugo/full_graph.h
- Timestamp:
- 07/20/04 12:58:11 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@965
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/hugo/full_graph.h
r710 r713 78 78 e=InEdgeIt(*this,v); return e; } 79 79 80 static bool valid(Edge e) const{ return e.n!=-1; }81 static bool valid(Node n) const{ return n.n!=-1; }80 static bool valid(Edge e) { return e.n!=-1; } 81 static bool valid(Node n) { return n.n!=-1; } 82 82 83 83 template <typename It> It getNext(It it) const … … 92 92 InEdgeIt& next(InEdgeIt& it) const 93 93 { if(!((++it.n)%NodeNum)) it.n=-1; return it; } 94 static EdgeIt& next(EdgeIt& it) const{ --it.n; return it; }95 96 static int id(Node v) const{ return v.n; }97 static int id(Edge e) const{ return e.n; }94 static EdgeIt& next(EdgeIt& it) { --it.n; return it; } 95 96 static int id(Node v) { return v.n; } 97 static int id(Edge e) { return e.n; } 98 98 99 99 class Node {
Note: See TracChangeset
for help on using the changeset viewer.