Class: Clusta::Transforms::EdgesToNeighborhoods::Mapper

Inherits:
Wukong::Streamer::StructStreamer
  • Object
show all
Defined in:
lib/clusta/transforms/edges_to_neighborhoods.rb

Instance Method Summary collapse

Instance Method Details

#process(edge, *record) ⇒ Object



14
15
16
17
# File 'lib/clusta/transforms/edges_to_neighborhoods.rb', line 14

def process edge, *record
  emit edge
  emit edge.reversed unless edge.directed?
end