Skip to main content

CAP_INF

Constant CAP_INF 

Source
pub const CAP_INF: i64 = i64::MAX /* 9_223_372_036_854_775_807i64 */;
Expand description

Sentinel used inside network_simplex_int to mean “unbounded / +infinity” capacity. Any capacity >= i64::MAX is treated as infinite. Rust callers that want an infinite-capacity edge should pass i64::MAX for that edge’s capacity.