genpark-push-relabel-fifo-max-flow-skill
mcp
Uyari
Health Uyari
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 7 GitHub stars
Code Gecti
- Code scan — Scanned 6 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Goldberg-Tarjan Push-Relabel maximum flow algorithm with FIFO vertex discharge and height relabeling
README.md
Push-Relabel Max Flow Algorithm Skill
Robust, zero-dependency Python implementation of the Goldberg-Tarjan Push-Relabel Algorithm for asymptotic (O(V^3)) maximum flow computation.
Features
- Preflow-Push Dynamics: Operates locally by pushing excess flow across downhill residual edges.
- Height Function Relabeling: Maintains valid labeling bounds ensuring no augmenting path exists when excess dissipates.
- Zero External Dependencies: Pure Python standard library.
- Native MCP Protocol: JSON-RPC 2.0 stdio server compatible with Claude Desktop, Cursor, and Windsurf.
Architecture
graph TD
NodeU["Vertex u with Excess Flow e(u) > 0"] --> CheckHeight{"Height h(u) == h(v) + 1?"}
CheckHeight -- Yes --> Push["Push delta = min(e(u), c_f(u, v))"]
CheckHeight -- No --> Relabel["Relabel: h(u) = 1 + min h(v)"]
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi