class Bundler::Molinillo::Resolver::Resolution
def initial_state
-
(DependencyState)
- the initial state for the resolution
def initial_state graph = DependencyGraph.new.tap do |dg| original_requested.each { |r| dg.add_root_vertex(name_for(r), nil).tap { |v| v.explicit_requirements << r } } end requirements = sort_dependencies(original_requested, graph, {}) initial_requirement = requirements.shift DependencyState.new( initial_requirement && name_for(initial_requirement), requirements, graph, initial_requirement, initial_requirement && search_for(initial_requirement), 0, {} ) end