You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
530 B

  1. /* maxflow.h */
  2. /* Written by Andrew Makhorin <mao@gnu.org>, October 2015. */
  3. #ifndef MAXFLOW_H
  4. #define MAXFLOW_H
  5. int max_flow(int nn, int ne, const int beg[/*1+ne*/],
  6. const int end[/*1+ne*/], const int cap[/*1+ne*/], int s, int t,
  7. int x[/*1+ne*/]);
  8. /* find max flow in undirected capacitated network */
  9. int max_flow_lp(int nn, int ne, const int beg[/*1+ne*/],
  10. const int end[/*1+ne*/], const int cap[/*1+ne*/], int s, int t,
  11. int x[/*1+ne*/]);
  12. /* find max flow with simplex method */
  13. #endif
  14. /* eof */