Adds the ability to print the visited graph