equal
deleted
inserted
replaced
201 template <typename ArcListIterator> |
201 template <typename ArcListIterator> |
202 void build(int n, ArcListIterator first, ArcListIterator last) { |
202 void build(int n, ArcListIterator first, ArcListIterator last) { |
203 built = true; |
203 built = true; |
204 |
204 |
205 node_num = n; |
205 node_num = n; |
206 arc_num = std::distance(first, last); |
206 arc_num = static_cast<int>(std::distance(first, last)); |
207 |
207 |
208 node_first_out = new int[node_num + 1]; |
208 node_first_out = new int[node_num + 1]; |
209 node_first_in = new int[node_num]; |
209 node_first_in = new int[node_num]; |
210 |
210 |
211 arc_source = new int[arc_num]; |
211 arc_source = new int[arc_num]; |