Skip to content

Commit

Permalink
Add a todo note
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Feb 8, 2024
1 parent 64ad307 commit 2cce39b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions day25/src/day25.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def main():
graph = {k: set(v.split(' ')) for l in f.readlines() for k, v in [l.strip().split(': ')]}

# Cut edges (found visually by inspecting using GraphViz's sfdp output)
# TODO: Implement https://en.wikipedia.org/wiki/Karger%27s_algorithm instead
for n1, n2 in [['xnn', 'txf'], ['tmc', 'lms'], ['jjn', 'nhg']]:
if n1 in graph and n2 in graph[n1]:
graph[n1].remove(n2)
Expand Down

0 comments on commit 2cce39b

Please sign in to comment.