From d363bf182d0b5f82a15c559003429ae90ab2aa53 Mon Sep 17 00:00:00 2001 From: "Daniel L. Lu" Date: Wed, 11 Aug 2021 21:51:34 -0700 Subject: [PATCH] use i64::MAX instead of 0x3f3f3f3f3f3f3f3f --- src/graph/flow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/flow.rs b/src/graph/flow.rs index 0cd2af6..0b6e684 100644 --- a/src/graph/flow.rs +++ b/src/graph/flow.rs @@ -13,7 +13,7 @@ pub struct FlowGraph { impl FlowGraph { /// An upper limit to the flow. - const INF: i64 = 0x3f3f_3f3f_3f3f_3f3f; + const INF: i64 = i64::MAX; /// Initializes an flow network with vmax vertices and no edges. pub fn new(vmax: usize, emax_hint: usize) -> Self {