Skip to content

Instantly share code, notes, and snippets.

@ironhouzi
Created December 30, 2016 17:01
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 ironhouzi/effdb7c7e608d1bc8517d153e891e8f7 to your computer and use it in GitHub Desktop.
Save ironhouzi/effdb7c7e608d1bc8517d153e891e8f7 to your computer and use it in GitHub Desktop.
def occurrance(graph_links):
normalized_graph_links = []
# validate_proc_defs() is a generator
for l in validate_proc_defs(proc_defs, graph_links, is_input=True):
normalized_graph_links.extend(l)
for l in validate_proc_defs(proc_defs, graph_links, is_input=False):
normalized_graph_links.extend(l)
return normalized_graph_links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment