public Point getNeighbor(Point pt, int radius) {
		int x = pt.getX();
		int y = pt.getY();
		boolean found = false;
		Iterator<Line> it = lineList.iterator();
		Line l = null;
		int iptX, iptY, fptX, fptY;
		// Iterate hover lines to get the neighbor of point pt
		while (it.hasNext() && !found) {
			l = it.next();
			iptX = l.getInitialPoint().getX();
			iptY = l.getInitialPoint().getY();
			fptX = l.getFinalPoint().getX();
			fptY = l.getFinalPoint().getY();

			found = (euclideanDistance(iptX, iptY, x, y) <= radius) && 
			(pt != l.getInitialPoint());
			if (found)
				return l.getInitialPoint();
			found = (euclideanDistance(fptX, fptY, x, y) <= radius) && 
			(pt != l.getFinalPoint());
			if (found)
				return l.getFinalPoint();
		}
		return null;
	}