pybel / pybel-tools

A PyBEL extension for analyzing BEL graphs
http://pybel-tools.readthedocs.io/
MIT License
5 stars 5 forks source link

Upstream controller recursive implementation #127

Open ddomingof opened 6 years ago

ddomingof commented 6 years ago

Given a BELGraph and a node, find all of the upstream controllers:

controllers(g, n) = set.union(controllers(g, u) for u upstream of n in g)

cthoyt commented 5 years ago

@ewollert this would be a cool thing to work towards at the end of march. We'll enrich some graphs we have with drugs/chemicals and apply this function to ask the question: which molecules increase (or decrease) a given node?