Class: Mementus::Pipes::OutgoingEdges

Inherits:
Object
  • Object
show all
Defined in:
lib/mementus/pipes/outgoing_edges.rb

Instance Method Summary collapse

Instance Method Details

#process(node) ⇒ Object



4
5
6
7
8
# File 'lib/mementus/pipes/outgoing_edges.rb', line 4

def process(node)
  @graph.each_adjacent(node.id).map do |id|
    Mementus::Edge.new(from: node, to: id)
  end
end