class Crystalg::Graph::FlowGraph(C)

Overview

C: type of capacity

Defined in:

crystalg/graph/flow_graph.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(size : Int32) #

[View source]

Instance Method Detail

def add(edge : FlowEdge(C)) #

[View source]
def adjacent_nodes(node_id : NodeID) : Array(Tuple(NodeID, C, Int32)) #

[View source]
def flow(v : NodeID, index : Int32, f : C) : C #

[View source]
def size #

[View source]