maximum-flow

Model flow networks and verify max-flow solutions with cut certificates.

7|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/Arcadi4/nerdy --skill maximum-flow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maximum-flow
Source: https://github.com/Arcadi4/nerdy/tree/main/clrs/maximum-flow
Command: npx skills add https://github.com/Arcadi4/nerdy --skill maximum-flow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps model, analyze, and certify max-flow problems, enabling correct maximum-flow outcomes, min-cut proofs, and robust network-flow reasoning in algorithms and implementations.

Core Features & Use Cases

  • Model flow networks with sources, sinks, capacities, and conservation constraints
  • Decide between Ford-Fulkerson, Edmonds-Karp, and scaling approaches
  • Provide cut certificates, residual networks, and proofs of optimality

Quick Start

Transform your problem into a max-flow model and request an explicit certificate of optimality.

Frequently Asked Questions about maximum-flow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I model a max-flow problem with multiple sources and sinks?

To model a max-flow problem with multiple sources and sinks, you add a super-source connected to all sources and a super-sink connected from all sinks, applying infinite capacities to these new edges while maintaining standard network conservation constraints.

When should I choose Edmonds-Karp over Ford-Fulkerson for network flow?

Choose Edmonds-Karp over Ford-Fulkerson when you need guaranteed polynomial time complexity, as Edmonds-Karp uses breadth-first search for augmenting paths, preventing the potential infinite loops of standard Ford-Fulkerson on irrational capacities.

How do I extract a min-cut certificate after computing a maximum flow?

You extract a min-cut certificate by finding all vertices reachable from the source in the residual network, defining the cut partition, and proving optimality by demonstrating that the flow equals the capacity across this specific cut.

Can I use max-flow reductions to solve bipartite matching problems?

Yes, you can solve bipartite matching by transforming it into a max-flow model, connecting a source to one partition and the other to a sink with unit capacities, so the maximum flow equals the maximum matching.

What are the limitations of using scaling algorithms for maximum flow?

Scaling algorithms for maximum flow require additional complexity to manage capacity thresholds and may be unnecessary for simple networks, though they prevent worst-case augmenting path behaviors found in naive Ford-Fulkerson implementations.

How do I verify the optimality of a computed maximum flow?

You verify maximum flow optimality by constructing the residual network, identifying a saturated min-cut, and providing a mathematical certificate proving no augmenting paths exist from the source to the sink.