generated gv dot file for DFS a word on the graph