struct WeightedEdge2(T)

Included Modules

Defined in:

graph/edge.cr

Constructors

Instance Method Summary

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

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

Constructor Detail

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

[View source]
def self.new(from, edge : WeightedEdge(T)) #

[View source]

Instance Method Detail

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

[View source]
def cost : T #

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

[View source]
def from : Int32 #

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

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

[View source]
def reverse : self #

[View source]
def sort : self #

[View source]
def to : Int32 #

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

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

[View source]