push to github

This commit is contained in:
2024-10-28 11:04:39 +01:00
parent e3b5d1f7da
commit 509f0a54e8
3 changed files with 99 additions and 87 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
# code
import random
# Algorithm from GeeksforGeeks (wrong)
# https://www.geeksforgeeks.org/tree-back-edge-and-cross-edges-in-dfs-of-graph/
import random
class Graph:
# instance variables
+3
View File
@@ -1,3 +1,6 @@
# Algorithm from MIT OpenCourseWare (seems correct)
# https://courses.csail.mit.edu/6.006/fall11/rec/rec14.pdf
class DFSResult:
def __init__(self):
self.parent = {}