Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crystalg
0.1.0
Top Level Namespace
Crystalg
DataStructures
FenwickTree
FenwickTree2D
KDTree
LeftistHeap
LinkCutTree
NodeID
PersistentUnionFind
NodeID
PriorityQueue
Queue
RandomizedBinarySearchTree
Node
RandomizedMeldableHeap
SegmetTree
SkewHeap
SkipList
Stack
UnionFind
Geometry
CCW
Circle
Line
Point
Polygon
Containment
Segment
Graph
ConnectedComponents
ArticulationPoints
Bridges
CycleDetection
Dinic
DirectedGraph
Edge
FlowEdge
FlowGraph
FordFulkerson
Graph
HopcroftKarp
NodeID
ShortestPath
Dijkstra
SpanningTree
Kruskal
UndirectedGraph
WeightedFlowEdge
NumberTheory
Fraction
Mod
SternBrocotTree
Random
Xor128
Strings
AhoCorasick
Node
BakerBird
RollingHash
SuffixArray
Float
Built with Crystal 1.9.2
2023-10-08 10:01:00 UTC
class
Crystalg::Graph::WeightedFlowEdge(T, U)
Crystalg::Graph::WeightedFlowEdge(T, U)
Reference
Object
Defined in:
crystalg/graph/edge.cr
Constructors
.new
(source : NodeID, target : NodeID, cost : T, capacity : U)
Instance Method Summary
#capacity
#cost
#source
#target
Constructor Detail
def self.
new
(source :
NodeID
, target :
NodeID
, cost : T, capacity : U)
#
[
View source
]
Instance Method Detail
def
capacity
#
[
View source
]
def
cost
#
[
View source
]
def
source
#
[
View source
]
def
target
#
[
View source
]