A flow network is a graph where:

  • is a set of nodes
  • is a set of edges (links)
  • For each , is the capacity of edge If , then for convenience we define
  • There are two distinguished nodes: source and sink where