From f6cf34ce6e677272b409d46f043a72ede9db0847 Mon Sep 17 00:00:00 2001 From: Marvin Erdmann Date: Fri, 13 Dec 2024 10:56:59 +0100 Subject: [PATCH] Bugfix unit test for MIS --- tests/modules/applications/optimization/MIS/test_MIS.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/modules/applications/optimization/MIS/test_MIS.py b/tests/modules/applications/optimization/MIS/test_MIS.py index 73ff6cb1..2230a96f 100644 --- a/tests/modules/applications/optimization/MIS/test_MIS.py +++ b/tests/modules/applications/optimization/MIS/test_MIS.py @@ -49,9 +49,9 @@ def test_process_solution(self): def test_validate(self): logging.disable(logging.WARNING) - self.mis_instance.application = nx.Graph() - self.mis_instance.application.add_nodes_from([0, 1, 2]) - self.mis_instance.application.add_edges_from([(0, 1), (1, 2)]) + self.mis_instance.graph = nx.Graph() + self.mis_instance.graph.add_nodes_from([0, 1, 2]) + self.mis_instance.graph.add_edges_from([(0, 1), (1, 2)]) valid_solution = [0, 2] is_valid, validation_time = self.mis_instance.validate(valid_solution)