public void computeVertexSnaps(Collection edges){
  for (Iterator i0=edges.iterator(); i0.hasNext(); ) {
    NodedSegmentString edge0=(NodedSegmentString)i0.next();
    for (Iterator i1=edges.iterator(); i1.hasNext(); ) {
      NodedSegmentString edge1=(NodedSegmentString)i1.next();
      computeVertexSnaps(edge0,edge1);
    }
  }
}

public void computeVertexSnaps ( Collection edges ) { for ( Iterator i0 = edges . iterator ( ) ; i0 . hasNext ( ) ; ) { NodedSegmentString edge0 = ( NodedSegmentString ) i0 . next ( ) ; for ( Iterator i1 = edges . iterator ( ) ; i1 . hasNext ( ) ; ) { NodedSegmentString edge1 = ( NodedSegmentString ) i1 . next ( ) ; computeVertexSnaps ( edge0 , edge1 ) ; } } }
computes nodes introduced as a result of snapping segments to vertices of other segments
