Support for the Ruby 2.4 series has ended. See here for reference.
@!visibility private @see DependencyGraph#detach_vertex_named
(see Action#down
)
# File rubygems/resolver/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb, line 37 def down(graph) return unless @vertex graph.vertices[@vertex.name] = @vertex @vertex.outgoing_edges.each do |e| e.destination.incoming_edges << e end @vertex.incoming_edges.each do |e| e.origin.outgoing_edges << e end end
(see Action#up
)
# File rubygems/resolver/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb, line 16 def up(graph) return [] unless @vertex = graph.vertices.delete(name) removed_vertices = [@vertex] @vertex.outgoing_edges.each do |e| v = e.destination v.incoming_edges.delete(e) if !v.root? && v.incoming_edges.empty? removed_vertices.concat graph.detach_vertex_named(v.name) end end @vertex.incoming_edges.each do |e| v = e.origin v.outgoing_edges.delete(e) end removed_vertices end