|
@ -31,7 +31,7 @@ namespace data { |
|
|
m_flow.resize(m_num_vertices, std::vector<Capacity>(m_num_vertices, 0)); |
|
|
m_flow.resize(m_num_vertices, std::vector<Capacity>(m_num_vertices, 0)); |
|
|
m_capapcities.resize(m_num_vertices, std::vector<Capacity>(m_num_vertices, 0)); |
|
|
m_capapcities.resize(m_num_vertices, std::vector<Capacity>(m_num_vertices, 0)); |
|
|
for(auto const &arc : m_arc_list) { |
|
|
for(auto const &arc : m_arc_list) { |
|
|
m_capapcities.at(arc.start - 1).at(arc.end - 1) = arc.capacity; |
|
|
|
|
|
|
|
|
m_capapcities.at(arc.start - 1).at(arc.end - 1) += arc.capacity; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|