lemon/static_graph.h
changeset 1153 233ad6942a26
parent 877 141f9c0db4a3
child 1157 0898f3371d1d
equal deleted inserted replaced
8:cde5cdb1c9db 9:411a17756f3c
   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];