Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
cgl
v0.2.0
CGL
AbstractDiGraph
AbstractGraph
AdjacencyDiGraph
AdjacencyGraph
AdjacencyHash
AnyEdge
AnyGraph
BFSIterator
BinaryHeap
Color
DFSIterator
DiEdge
DiGraph
Directed
DotVisitor
Edge
EdgeError
EdgeIterator
Graph
GraphError
GraphIterator
GraphSourceIterator
Labelable
LabeledDiGraph
LabeledGraph
LDiEdge
LEdge
MultiGraph
Undirected
Visitor
WDiEdge
WEdge
Weightable
WeightedDiGraph
WeightedGraph
WeightedLabeledDiGraph
WeightedLabeledGraph
Built with Crystal 1.9.2
2023-10-08 14:41:20 UTC
module
CGL::Weightable(T)
Direct including types
CGL::WDiEdge(V, W)
CGL::WEdge(V, W)
Defined in:
cgl/edges.cr
Constructors
.new
(u, v, weight)
Instance Method Summary
#==
(other : Weightable)
#clone
#hash
(hasher)
#to_tuple
#weight
: T
#weight=
(weight : T)
Constructor Detail
def self.
new
(u, v, weight)
#
[
View source
]
Instance Method Detail
def
==
(other :
Weightable
)
#
[
View source
]
def
clone
#
[
View source
]
def
hash
(hasher)
#
[
View source
]
def
to_tuple
#
[
View source
]
def
weight
: T
#
[
View source
]
def
weight=
(weight : T)
#
[
View source
]