Method: Puppet::Graph::SimpleGraph#edge?

Defined in:
lib/puppet/graph/simple_graph.rb

#edge?(source, target) ⇒ Boolean

Is there an edge between the two vertices?

Returns:

  • (Boolean)


326
327
328
# File 'lib/puppet/graph/simple_graph.rb', line 326

def edge?(source, target)
  vertex?(source) and vertex?(target) and @out_from[source][target]
end