This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
_path_to?(other, visited = Set.new)
protected
@param [Vertex]
other the vertex to check if there’s a path to @param [Set] visited the vertices of {#graph} that
have been visited @return [Boolean] whether there is a
path to `other` from `self`
# File lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb, line 119
def _path_to?(other, visited = Set.new)
return false unless visited.add?(self)
return true if equal?(other)
successors.any? { |v| v._path_to?(other, visited) }
end