Skip to content

Commit

Permalink
use i64::MAX instead of 0x3f3f3f3f3f3f3f3f (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
dllu committed Aug 14, 2021
1 parent dc2fabd commit 7b71843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph/flow.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 7b71843

Please sign in to comment.