# Check valid flow in a graph

For a flow network $$G=(V,E)$$ where $$s,t \in V$$ and capacities $$c_e>0$$ for $$e \in E$$. A flow $$f$$ is given. How can I check whether of not $$f$$ is a valid flow within the network?