do the arrows mean you cannot traverse from c to b, but can traverse from b to c?
This is a directed graph, Yes.
You do not need to specify which nodes to start with DFS with, as you will iterate over all the nodes anyway.
DFS process:
DFSmain(G): For v=1 to n: if v is not yet visited, do DFS(v). DFS(v): mark v as visited. // entering node v for each unmarked out-neighbor w of v: do DFS(w). return. // exiting node v.
Thus, he finally visits every node on the chart. A similar rationale for BFS.
taocp source share