Skip to content

Commit

Permalink
fix wrong naming
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-cassioli-maersk committed Apr 3, 2024
1 parent 33a2510 commit fa8caee
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/rcsp_single_solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,14 @@ int main() {
*/

const auto s = boost::add_vertex("s", graph);
const auto B = boost::add_vertex("A", graph);
const auto t = boost::add_vertex("B", graph);
const auto A = boost::add_vertex("t", graph);
const auto A = boost::add_vertex("A", graph);
const auto B = boost::add_vertex("B", graph);
const auto t = boost::add_vertex("t", graph);

boost::add_edge(s, A, edge_prop(1,0), graph);
boost::add_edge(s, A, edge_prop(1, 0), graph);
boost::add_edge(s, B, edge_prop(2, 1), graph);

// swapping these two edges lead to a different solution
boost::add_edge(A, t, edge_prop(10, 0), graph);
boost::add_edge(B, t, edge_prop(3,1), graph);
boost::add_edge(B, t, edge_prop(3, 1), graph);

const auto solution_resource_container = run_rcsp(graph, s, t);

Expand Down

0 comments on commit fa8caee

Please sign in to comment.