Skip to content

Commit

Permalink
1222
Browse files Browse the repository at this point in the history
  • Loading branch information
petarpetrovv committed Nov 22, 2024
1 parent 9890237 commit 71d29cd
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/test_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,16 +1139,6 @@ def test_max_cut_simple_graph():
assert isinstance(solution, list), "Expected a list as the solution"
assert len(solution) <= len(graph.nodes), "Solution set should not exceed the number of nodes in the graph"


def test_max_cut_single_node():
"""Test Max-Cut on a single-node graph."""
graph = nx.Graph()
graph.add_node(1)
solution = KarpGraphs.max_cut(graph, solve=True)

assert solution == [], "Expected an empty solution for a single-node graph with no edges"


def test_spin_only() -> None:
"""Test only the construction of spin variables"""
constraint = Constraints()
Expand Down

0 comments on commit 71d29cd

Please sign in to comment.