Class: Bio::AssemblyGraphAlgorithms::TrailSet

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/assembly/acyclic_connection_finder.rb

Overview

Represents a set of trails, and whether or not circularity has been detected, and whether too many paths have been detected.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTrailSet

Returns a new instance of TrailSet.



15
16
17
18
# File 'lib/assembly/acyclic_connection_finder.rb', line 15

def initialize
  @circular_paths_detected = false
  @max_path_limit_exceeded = false
end

Instance Attribute Details

#circular_paths_detectedObject

Returns the value of attribute circular_paths_detected.



11
12
13
# File 'lib/assembly/acyclic_connection_finder.rb', line 11

def circular_paths_detected
  @circular_paths_detected
end

#max_path_limit_exceededObject

Returns the value of attribute max_path_limit_exceeded.



12
13
14
# File 'lib/assembly/acyclic_connection_finder.rb', line 12

def max_path_limit_exceeded
  @max_path_limit_exceeded
end

#trailsObject

Returns the value of attribute trails.



10
11
12
# File 'lib/assembly/acyclic_connection_finder.rb', line 10

def trails
  @trails
end

Instance Method Details

#eachObject



20
21
22
23
24
# File 'lib/assembly/acyclic_connection_finder.rb', line 20

def each
  unless @trails.nil?
    @trails.each{|t| yield t}
  end
end