implemented ReachableNodesDetector graph algorithm to get nodes within at most X edges