Function pathfinding::directed::edmonds_karp::edmonds_karp_sparse
source · pub fn edmonds_karp_sparse<N, C, IC>(
vertices: &[N],
source: &N,
sink: &N,
caps: IC
) -> EKFlows<N, C>where
N: Eq + Hash + Copy,
C: Zero + Bounded + Signed + Ord + Copy,
IC: IntoIterator<Item = Edge<N, C>>,Expand description
Helper for the edmonds_karp function using adjacency maps for sparse graphs.