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