Euler order of visiting vertices
Euler order of visiting vertices
Classification of graph edges
Edges can be classified by the entry and exit times of the end vertices and of the edge .
Such a classification is often used in various problems.
DFS is performed, and all encountered edges are classified according to the following rules:
-
If vertex is not visited:
- — if is visited after , then the edge is called a tree edge.