private void checkNoSelfIntersectingRings(GeometryGraph graph){
  for (Iterator i=graph.getEdgeIterator(); i.hasNext(); ) {
    Edge e=(Edge)i.next();
    checkNoSelfIntersectingRing(e.getEdgeIntersectionList());
    if (validErr != null)     return;
  }
}

private void checkNoSelfIntersectingRings ( GeometryGraph graph ) { for ( Iterator i = graph . getEdgeIterator ( ) ; i . hasNext ( ) ; ) { Edge e = ( Edge ) i . next ( ) ; checkNoSelfIntersectingRing ( e . getEdgeIntersectionList ( ) ) ; if ( validErr != null ) return ; } }
check that there is no ring which self - intersects ( except of course at its endpoints ) . this is required by ogc topology rules ( but not by other models such as esri sde , which allow inverted shells and exverted holes ) .
