Skip to content

Commit

Permalink
fix node ordering and temporary numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
miklos1 committed Dec 13, 2016
1 parent 81209bd commit 166b608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gem/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def traversal(expression_dags):
while lifo:
node = lifo.pop()
yield node
for child in node.children:
for child in reversed(node.children):
if child not in seen:
seen.add(child)
lifo.append(child)
Expand Down

0 comments on commit 166b608

Please sign in to comment.