class Bundler::Molinillo::DependencyGraph

def add_vertex(name, payload)

Returns:
  • (Vertex) - the vertex that was added to `self`

Parameters:
  • payload (Object) --
  • name (String) --
def add_vertex(name, payload)
  vertex = vertices[name] ||= Vertex.new(self, name, payload)
  vertex.tap { |v| v.payload = payload }
end