Theorem 22.10 in CLRS - Introduction to Algorithms says that
In a depth first search of an undirected graph G, every edge of G is either a tree edge or a back edge.
Now in this the explanation for tree edge portion is obvious, but I didn't get the back edge part. For eg:- take an undirected graph such that
1----2----3
Now in this if edge 1-2 is explored first such that d1 < d[2], then edge 1-2 will be the tree edge. Now as this is an undirected graph so can we say that edge 2-1 is the back edge in the graph (d[2] > d1) ??
I am not getting the hang of this back edge thingy.