I am sure there must be some existing graph algorithm for what I am trying to do but I just don\'t know the right search terms.
The algorithm would perform what I am goin