Skip to content

Commit

Permalink
Clarify that weights are capacities in Edmonds-Karp
Browse files Browse the repository at this point in the history
  • Loading branch information
AloizioMacedo committed Jan 7, 2024
1 parent 089d98a commit 4956bd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,8 @@ where
{
/// Runs the Edmonds-Karp algorithm on the graph to find max flow.
///
/// Assumes the edge weights are the capacities.
///
/// Returns a HashMap with the flow values for each edge.
///
/// Please select a number type for W which allows for subtraction
Expand Down Expand Up @@ -1080,6 +1082,8 @@ where
{
/// Runs the Edmonds-Karp algorithm on the graph to find max flow.
///
/// Assumes the edge weights are the capacities.
///
/// Returns a HashMap with the flow values for each edge.
///
/// Please select a number type for W which allows for subtraction
Expand Down
2 changes: 2 additions & 0 deletions src/graph/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,8 @@ where

/// Runs the Edmonds-Karp algorithm on the graph to find max flow.
///
/// Assumes the edge weights are the capacities.
///
/// Returns a HashMap with the flow values for each edge.
///
/// Please select a number type for W which allows for subtraction
Expand Down

0 comments on commit 4956bd7

Please sign in to comment.