equal
deleted
inserted
replaced
865 |
865 |
866 void first(Arc& arc) const { |
866 void first(Arc& arc) const { |
867 arc.id = arcs.size() - 1; |
867 arc.id = arcs.size() - 1; |
868 } |
868 } |
869 |
869 |
870 void next(Arc& arc) const { |
870 static void next(Arc& arc) { |
871 --arc.id; |
871 --arc.id; |
872 } |
872 } |
873 |
873 |
874 void firstOut(Arc& arc, const Node& node) const { |
874 void firstOut(Arc& arc, const Node& node) const { |
875 arc.id = (*_nodes)[node].first_out; |
875 arc.id = (*_nodes)[node].first_out; |
1171 |
1171 |
1172 void first(Arc& arc) const { |
1172 void first(Arc& arc) const { |
1173 arc.id = arcs.size() - 1; |
1173 arc.id = arcs.size() - 1; |
1174 } |
1174 } |
1175 |
1175 |
1176 void next(Arc& arc) const { |
1176 static void next(Arc& arc) { |
1177 --arc.id; |
1177 --arc.id; |
1178 } |
1178 } |
1179 |
1179 |
1180 void first(Edge& arc) const { |
1180 void first(Edge& arc) const { |
1181 arc.id = arcs.size() / 2 - 1; |
1181 arc.id = arcs.size() / 2 - 1; |
1182 } |
1182 } |
1183 |
1183 |
1184 void next(Edge& arc) const { |
1184 static void next(Edge& arc) { |
1185 --arc.id; |
1185 --arc.id; |
1186 } |
1186 } |
1187 |
1187 |
1188 void firstOut(Arc& arc, const Node& node) const { |
1188 void firstOut(Arc& arc, const Node& node) const { |
1189 arc.id = (*_nodes)[node].first_out; |
1189 arc.id = (*_nodes)[node].first_out; |