Graph representations and depth-first search traversal in undirected graphs.