Changeset 778:08a1d1e3070d in lemon-0.x for src
- Timestamp:
- 08/31/04 19:59:33 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1071
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/hugo/dimacs.h
r575 r778 173 173 174 174 int i=1; 175 NodeIt v; 176 for(g.first(v); g.valid(v); g.next(v)) { 175 for(NodeIt v(g); v!=INVALID; ++v) { 177 176 nodes.set(v, i); 178 177 ++i; … … 181 180 os << "p mat " << g.nodeNum() << " " << g.edgeNum() << std::endl; 182 181 183 EdgeIt e; 184 for(g.first(e); g.valid(e); g.next(e)) { 182 for(EdgeIt e(g); e!=INVALID; ++e) { 185 183 os << "a " << nodes[g.tail(e)] << " " << nodes[g.head(e)] << std::endl; 186 184 }
Note: See TracChangeset
for help on using the changeset viewer.