Skip to content

Commit

Permalink
Bugfix unit test for MIS
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Erdmann authored and Marvin Erdmann committed Dec 13, 2024
1 parent 6830aaf commit f6cf34c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/modules/applications/optimization/MIS/test_MIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f6cf34c

Please sign in to comment.