class Bundler::Molinillo::DependencyGraph
def add_edge(origin, destination, requirement)
-
(Edge)
- the added edge
Parameters:
-
requirement
(Object
) -- the requirement that this edge represents -
destination
(Vertex
) -- -
origin
(Vertex
) --
def add_edge(origin, destination, requirement) if origin == destination || destination.path_to?(origin) raise CircularDependencyError.new([origin, destination]) end Edge.new(origin, destination, [requirement]).tap { |e| edges << e } end