#ifndef FLOWINFO_H
#define FLOWINFO_H

#include<iostream.h>
#include<LINK/graph/Graph.h>

class FlowInfo {
	Graph *_g;
	int _maxflow;
public:
	FlowInfo(Graph *gg=0, int mf=0) : _g(gg), _maxflow(mf) 	       {}
	Graph * graph()	         const 	{ return _g;  			}
	int     maxFlow()   	 const 	{ return _maxflow; 		}
	int     flow(Edge *e)    const;
	int     capacity(Edge *e)const;
	void    display()        const;
	int     operator< (const FlowInfo& f)  const 
					{ return _maxflow < f._maxflow;	} 
	int     operator==(const FlowInfo& f)  const 
					{ return _maxflow ==f._maxflow;	} 

	friend  ostream& operator<<(ostream& os, const FlowInfo& a);
};
#endif
