code: int removeConnectedSegment(RoadSegment segment, boolean attachToStartPoint) {
  		if (segment == null) {
  			return -1;
  		}
  		final int idx = indexOf(segment, attachToStartPoint);
  		if (idx != -1) {
  			this.connectedSegments.remove(idx);
  			fireIteratorUpdate();
  		}
  		return idx;
  	}
docs: Remove a connection with a segment.
  
  @param segment is the segment to remove.
  @param attachToStartPoint indicates if the segment is attached by
  its start point (if value is <code>true</code>) or by its end point
  @return the index of the removed segment, or {@code -1} if none was found