Remove visited and edges-not-exist as optional params