class Theseus::Algorithms::Prim

Constants

FRONTIER
IN

Public Instance Methods

each_frontier() { |x, y| ... } click to toggle source

Iterates over each cell in the frontier space, yielding the coordinates of each one.

# File lib/theseus/algorithms/prim.rb, line 30
def each_frontier
  @frontier.each do |x, y|
    yield x, y
  end
end