class Molinillo::DependencyGraph::Vertex

def _path_to?(other, visited = new_vertex_set)

Returns:
  • (Boolean) - whether there is a path to `other` from `self`

Parameters:
  • visited (Set) -- the vertices of {#graph} that have been visited
  • other (Vertex) -- the vertex to check if there's a path to
def _path_to?(other, visited = new_vertex_set)
  return false unless visited.add?(self)
  return true if equal?(other)
  successors.any? { |v| v._path_to?(other, visited) }
end