Place trees or move them with the mouse. Edges are created if their distances are less than 100px.
This algorithm calculates the shortest path using A*.
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.