Sha256: ba562d8b0b13963c18e550292f28623f70cff0d942e88168692759d8467069d3

Contents?: true

Size: 837 Bytes

Versions: 1

Compression:

Stored size: 837 Bytes

Contents

##
# Provides native implementation of Dijkstra's algorithm for finding the shortest
# path between two vertices in a large, sparse graph.
#
# Underlying algorithm is implemented in C using a priority queue.  Edges are
# represented using linked lists rather than an adjacency matrix to reduce memory
# footprint when operating on very large graphs where the average number of edges
# between nodes is relatively small (e.g. < 1/10 the number of nodes). See
#
# @see README
# @see https://en.wikipedia.org/wiki/Dijkstra's_algorithm
##
module DijkstraFast

  autoload :BestPath,           'dijkstra_fast/best_path'
  autoload :Graph,              'dijkstra_fast/graph'
  autoload :NoPathExistsError,  'dijkstra_fast/no_path_exists_error'
  autoload :VERSION,            'dijkstra_fast/version'

end

require 'dijkstra_fast/dijkstra_fast'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dijkstra_fast-1.4.2 lib/dijkstra_fast.rb