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