Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created December 17, 2013 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save einarwh/8012473 to your computer and use it in GitHub Desktop.
Save einarwh/8012473 to your computer and use it in GitHub Desktop.
Pseudo code for processing a node.
def process S
if exists s in S where not I contains s
I = I union S
O = map g I
foreach e in edges
process e.target O
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment