I could resort to copy and paste from the e-book, but would rather have all the code as C++, Java, etc., files. For example:
Example 6-1 contains a sample C++ solution. Note that vertex color information is used only within the dfsVisit methods.
Example 6-1. Depth-First Search implementation
// visit a vertex, u, in the graph and update information
void dfsVisit (Graph const &graph, int u, /* in */
but dfs.h is not included anywhere?
Help get this topic noticed by sharing it on Twitter, Facebook, or email.