struct WeightedEdge(T)

Included Modules

Defined in:

graph/edge.cr

Constructors

Instance Method Summary

Instance methods inherited from module Comparable(WeightedEdge(T))

max(x : T(T)) max, min(x : T(T)) min

Constructor Detail

def self.new(to, cost : T) #

[View source]

Instance Method Detail

def <=>(other : WeightedEdge(T)) #

[View source]
def cost : T #

[View source]
def cost=(cost : T) #

[View source]
def inspect(io) : Nil #

[View source]
def to : Int32 #

[View source]
def to=(to : Int32) #

[View source]
def to_s(io) : Nil #

[View source]