Skip to content
← All questions

Why does the order in (u,v)(u,v) matter?

The order matters because the graph is directed. The notation (u,v)(u,v) specifically denotes an edge pointing from node uu to node vv. Reversing the order to (v,u)(v,u) would represent an edge in the opposite direction, which is a distinct edge in a directed graph.

Conditions

  • The graph is a directed graph.
  • Edges are represented as ordered pairs.

Reasoning, step by step

  1. Recall that a flow network is modeled as a directed graph.
  2. Observe the definition of an edge (u,v)(u,v) as pointing from uu to vv.
  3. Note that direction is an inherent property of the edge in this model.
  4. Conclude that swapping uu and vv changes the direction of the edge, thus referring to a different edge.

Example

The presenter draws a sketch with two vertices labeled uu and vv connected by an arrow from uu to vv, explicitly stating that edge uvuv means an edge pointing from node uu to node vv because the graph is directed.

Common misconceptions

  • Treating (u,v)(u,v) as an unordered pair, as in undirected graphs.
  • Assuming that an edge from uu to vv implies an automatic edge from vv to uu with the same capacity.

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.