method

add_vertex

ruby latest stable - Class: Gem::Resolver::Molinillo::DependencyGraph
add_vertex(name, payload, root = false)
public

Adds a vertex with the given name, or updates the existing one. @param [String] name @param [Object] payload @return [Vertex] the vertex that was added to `self`