Remark. Generalizing from undirected to directed graphs [00N7]
Lots of things generalize naturally to directed graphs: instead of paths we have directed paths, which follow edges "in the right direction", as if the directions are one-way signs we have to obey. Instead of degree we have indegree (the number of edges pointing into a vertex) and outdegree (the number of edges pointing out). DFS and BFS extend naturally to directed graphs as well. If we only follow edges in the direction they are supposed to go—i.e. if at each vertex we only look at outgoing neighbors—then neither algorithm needs any changes, and they find directed paths.
In some ways, directed graphs are actually more "fundamental" than undirected graphs. The various ways we have to represent graphs (adjacency matrices and adjacency lists) naturally represent directed graphs, and if we want an undirected edge we essentially have to put in two directed edges, one in each direction.