Don't visit already visited edges