class Bundler::Graph

def _populate_relations

def _populate_relations
  parent_dependencies = _groups.values.to_set.flatten
  loop do
    break if parent_dependencies.empty?
    tmp = Set.new
    parent_dependencies.each do |dependency|
      child_dependencies = spec_for_dependency(dependency).runtime_dependencies.to_set
      @relations[dependency.name] += child_dependencies.map(&:name).to_set
      tmp += child_dependencies
      @node_options[dependency.name] = _make_label(dependency, :node)
      child_dependencies.each do |c_dependency|
        @edge_options["#{dependency.name}_#{c_dependency.name}"] = _make_label(c_dependency, :edge)
      end
    end
    parent_dependencies = tmp
  end
end