Method: Puppet::Graph::SimpleGraph#add_vertex
- Defined in:
- lib/puppet/graph/simple_graph.rb
#add_vertex(vertex) ⇒ Object
Add a new vertex to the graph.
273 274 275 276 |
# File 'lib/puppet/graph/simple_graph.rb', line 273 def add_vertex(vertex) @in_to[vertex] ||= {} @out_from[vertex] ||= {} end |