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