From acb41890ee067cdda0ef2e4134607a2783ce1098 Mon Sep 17 00:00:00 2001 From: Florian <florian.heinrichs@informatik.hu-berlin.de> Date: Tue, 23 Apr 2019 12:47:38 +0200 Subject: [PATCH] Function added to associate graph with the solver --- bnb/bnb.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bnb/bnb.cpp b/bnb/bnb.cpp index 06606fe..7975382 100644 --- a/bnb/bnb.cpp +++ b/bnb/bnb.cpp @@ -64,6 +64,10 @@ void solver::resize_nodes(size_t count) { assignment_.resize_nodes(count); } +void solver::define_graph(graph& g){ + nodes_ = g; +} + void solver::solve() { //anfangs upper bound? best_objective_ = nodes_.num_vertices(); -- GitLab