Method: Puppet::Graph::SimpleGraph#adjacent
- Defined in:
- lib/puppet/graph/simple_graph.rb
#adjacent(v, options = {}) ⇒ Object
Find adjacent edges.
349 350 351 352 353 354 |
# File 'lib/puppet/graph/simple_graph.rb', line 349 def adjacent(v, = {}) ns = ([:direction] == :in) ? @in_to[v] : @out_from[v] return [] unless ns ([:type] == :edges) ? ns.values.flatten : ns.keys end |