MCPcopy Create free account
hub / github.com/EbTech/rust-algorithms / add_edge

Method add_edge

src/graph/flow.rs:29–35  ·  view source on GitHub ↗

Adds an edge with specified directional capacities and cost per unit of flow. If only forward flow is allowed, rcap should be zero.

(&mut self, u: usize, v: usize, cap: i64, rcap: i64, cost: i64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

test_basic_flowFunction · 0.45
test_min_cost_flowFunction · 0.45
test_max_matchingFunction · 0.45

Calls 2

add_undirected_edgeMethod · 0.80
pushMethod · 0.45

Tested by 3

test_basic_flowFunction · 0.36
test_min_cost_flowFunction · 0.36
test_max_matchingFunction · 0.36