Discarding incoming nodes in a directed graph

I'd like to discard incoming nodes in a directed graph. tl;dr (jump to section 3) I have a graph on which I perform a BFS to remove all unrelated nodes (relative to a candidate edge). 1. Sample graph data Let this be a graph data structure: Wher...
more »

2016-09-30 02:09 (1) Answers