Skip to content

Commit

Permalink
day25: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ong committed Dec 28, 2023
1 parent 80e0c67 commit 12644b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions day25/day25.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_data(path: str) -> list[Connection]:
return connections


def show_graph(graph: nx.Graph) -> None:
def show_graph(graph: nx.Graph) -> None: # pragma: no cover
"""Draws a graph that you can see"""
nx.draw(graph, with_labels=True)
plt.draw()
Expand All @@ -52,7 +52,7 @@ def solve_nodes(connections: list[Connection]) -> int:
G.add_node(node_name)
if node_name != connection.src:
G.add_edge(connection.src, node_name)
if SHOW_GRAPH:
if SHOW_GRAPH: # pragma: no cover
show_graph(G)
cut_value, partition = nx.stoer_wagner(G)
print(f"num_cuts: {cut_value}")
Expand Down

0 comments on commit 12644b8

Please sign in to comment.