public boolean containsSegment(Segment s) {
		Iterator<Point> it = this.iterator();
		
		while (it.hasNext()) {
			Point p = it.next();
			if (p.equals(s.getP1())) {
				Point q;
				if (it.hasNext()) {
					q = it.next();
				} else {
					q = this.getFirst();
				}
				if (q.equals(s.getP2())) {
					return true;
				}
			} else if (p.equals(s.getP2())) {
				Point q;
				if (it.hasNext()) {
					q = it.next();
				} else {
					q = this.getFirst();
				}
				if(q.equals(s.getP1())) {
					return true;
				}
			}
		}
		return false;
	}