class Elasticsearch::Model::Extensions::AssociationPathFinding::ShortestPath::Node
Public Instance Methods
breadth_first_search(&block)
click to toggle source
# File lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb, line 43 def breadth_first_search(&block) ShortestPath.breadth_first_search self, &block end
each(&block)
click to toggle source
# File lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb, line 11 def each(&block) raise "A required method #{self.class}#each is not implemented." end
each_with_name(&block)
click to toggle source
# File lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb, line 19 def each_with_name(&block) iterator = each.lazy.map do |edge| [edge, edge.name] end if block.nil? iterator else iterator.each(&block) end end
edge_class()
click to toggle source
# File lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb, line 39 def edge_class ShortestPath::Edge end
eql?(other)
click to toggle source
# File lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb, line 35 def eql?(other) self.class == other.class && (name.eql? other.name) end
hash()
click to toggle source
# File lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb, line 31 def hash name.hash end
name()
click to toggle source
# File lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb, line 15 def name raise "A required method #{self.class}#name is not implemented." end