Sha256: 9a467ba2e94cd05c293cce6e63f0e4910f2962111b96224c46bc438559d4c35a
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
module DijkstraFast ## # The "best path" from applying Dijkstra's algorithm contains both the ordered # list of nodes travelled as well as the total distance travelled. ## class BestPath attr_reader :path attr_accessor :distance def initialize @path = [] @distance = 0 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dijkstra_fast-1.4.2 | lib/dijkstra_fast/best_path.rb |