A visual study of Breath-First Search algorithm

Place trees or move them with the mouse. Edges are created if their distances are less than 100px. This algorithm calculates the path that will stop by the least number of vertices. Click on a tree to select it, then hover over another tree to see the shortest path (in terms of vertices) from the selected tree to the hovered tree.