# HG changeset patch
# User Peter Kovacs <kpeter@inf.elte.hu>
# Date 1251236464 -7200
# Node ID 4cad1981d18da48cd043d39cb4c827ada4ddf146
# Parent 2d82f9560e1a2578c9d768c7962a0aa018ce6dae
Add tags to provide smaller iterator classes (#68, #252)
diff --git a/lemon/static_graph.h b/lemon/static_graph.h
a
|
b
|
|
75 | 75 | Node source(const Arc& e) const { return Node(arc_source[e.id]); } |
76 | 76 | Node target(const Arc& e) const { return Node(arc_target[e.id]); } |
77 | 77 | |
| 78 | typedef True StaticNextNodeTag; |
| 79 | typedef True StaticNextArcTag; |
| 80 | |
78 | 81 | void first(Node& n) const { n.id = node_num - 1; } |
79 | 82 | static void next(Node& n) { --n.id; } |
80 | 83 | |