class Dijkstra::Graph(T)

Defined in:

dijkstra.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(directed : Bool = false) #

[View source]

Instance Method Detail

def add_edge(source : T, target : T, weight : Int32) #

[View source]
def shortest_path(source : T, target : T) : Tuple(Int32, Array(T)) | Nil #

[View source]
def shortest_paths(source : T) : Array(Tuple(T, T, Int32 | Nil, Array(T) | Nil)) #

[View source]