Removed logic that accounted for nodes with the same coordinates.