protected void removeCycles(){
  int visited[]=new int[m_nodes.size()];
  for (int i=0; i < graphMatrix.length; i++) {
    if (visited[i] == 0) {
      removeCycles2(i,visited);
      visited[i]=1;
    }
  }
}

protected void removeCycles ( ) { int visited [ ] = new int [ m_nodes . size ( ) ] ; for ( int i = 0 ; i < graphMatrix . length ; i ++ ) { if ( visited [ i ] == 0 ) { removeCycles2 ( i , visited ) ; visited [ i ] = 1 ; } } }
the following two methods remove cycles from the graph .
