Added a visited count to each edge.