module RGFA::Links

Methods for the RGFA class, which allow to handle links in the graph.

Public Instance Methods

neighbours(segment_end) click to toggle source

Finds segment ends connected to the specified segment end.

@param [RGFA::SegmentEnd] segment_end a segment end

@return [Array<RGFA::SegmentEnd>>] segment ends connected by links

to +segment_end+
# File lib/rgfa/links.rb, line 99
def neighbours(segment_end)
  links_of(segment_end).map {|l| l.other_end(segment_end) }
end

Protected Instance Methods