// retrieve the data, driver
void retrieveData(std::string URL, int maxDepth, Digraph& G,
bool localOnly, bool verbose);
// retrieve the data, recursive
void retrieveData(std::string URL, int maxDepth, Digraph& G,
bool localOnly, bool verbose,
int currentDepth, VertexURL* vParent);
(also see Section 5.1.4).
Test your WET application by running
[./wet
http://www.enseignement.polytechnique.fr/profs/informatique/Leo.Liberti/test.html4]
and verifying that the output is
# graphviz output by WET (L. Liberti 2006)
digraph www_1199989821 {
0 [ label = "www.enseignement.polytechnique.fr" ];
1 [ label = "www.enseignement.polytechnique.fr" ];
2 [ label = "www.enseignement.polytechnique.fr" ];
3 [ label = "Thu Jan 10 19:30:21 2008", color = red ];
0 -> 1;
1 -> 0;
1 -> 2;
2 -> 0;
2 -> 1;
0 -> 2;
}
By saving wet's output as wetout.dot and running