This commit is contained in:
deadsmond 2019-11-25 20:43:28 +01:00
parent 1d555b2226
commit 92c64577ca

View File

@ -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])