plot edge only when its running for --visualize, make it much faster. (for BFS, DFS)