counteredges
Counteredges are a concept used in graph theory to denote the reverse or opposite edge of a directed edge. Given a directed edge (u, v) in a graph, the counteredge is the edge (v, u). In many graph representations, especially bidirected or oriented graphs, edges may occur in counteredge pairs, signifying a two-way relationship between the same pair of vertices.
In formal terms, a directed graph can be viewed as a set of arcs, and for each
Counteredges also play a central role in network flow and residual graph concepts. In a flow network,
Terminology varies across literature; some authors simply call the reverse edge the opposite edge or the reverse