lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb
# Adds a new {Edge} to the dependency graph
# @param [Vertex] origin
# @param [Vertex] destination
# @param [Object] requirement the requirement that this edge represents
# @return [Edge] the added edge
Adds a new {Edge} to the dependency graph
Adds a new { Edge } to the dependency graph
def add_edge(origin, destination, requirement)
      if destination.path_to?(origin)
        raise CircularDependencyError.new(path(destination, origin))
      end
      add_edge_no_circular(origin, destination, requirement)
    end
def add_edge ( origin , destination , requirement ) if destination . path_to? ( origin ) raise CircularDependencyError . new ( path ( destination , origin ) ) end add_edge_no_circular ( origin , destination , requirement ) end
Adds a new {Edge} to the dependency graph
Adds a new { Edge } to the dependency graph
the added edge
the added edge
Edge
origin
<not_specific>
destination
<not_specific>
requirement
<not_specific>
<not_specific>
requirement the requirement that this edge represents
requirement the requirement that this edge represents