reachable-nodes function

Get the Forward or Backward Reachable Nodes for a Set of Nodes