'hm'
This commit is contained in:
parent
1d555b2226
commit
92c64577ca
@ -58,9 +58,12 @@ class automata:
|
|||||||
result = []
|
result = []
|
||||||
# if the node exists
|
# if the node exists
|
||||||
if self.graph[q]:
|
if self.graph[q]:
|
||||||
|
print(self.graph[q])
|
||||||
# search through all its connections to find value
|
# search through all its connections to find value
|
||||||
for connections in self.graph[q]:
|
for connections in self.graph[q]:
|
||||||
|
print(connections)
|
||||||
for value in connections:
|
for value in connections:
|
||||||
|
print(value, i)
|
||||||
if value == i:
|
if value == i:
|
||||||
# append next node
|
# append next node
|
||||||
result.append(connections[value])
|
result.append(connections[value])
|
||||||
|
Loading…
Reference in New Issue
Block a user