# File lib/puppet/simple_graph.rb, line 146 146: def matching_edges(event, base = nil) 147: source = base || event.resource 148: 149: unless vertex?(source) 150: Puppet.warning "Got an event from invalid vertex #{source.ref}" 151: return [] 152: end 153: # Get all of the edges that this vertex should forward events 154: # to, which is the same thing as saying all edges directly below 155: # This vertex in the graph. 156: adjacent(source, :direction => :out, :type => :edges).find_all do |edge| 157: edge.match?(event.name) 158: end 159: end