Make a random graph and see how BFS, DFS and Bridges Searching Algorythms work. Select the main vertex clicking on it. You can count the distance from the selected vertex to any one just pointing on it.