@Override public String toString(){
  final StringBuilder sb=new StringBuilder();
  for (  Edge<S> edge : edges) {
    final S src=edge.getSrc();
    sb.append(printItems(src.getItems()));
    sb.append(" | " + edge.getSymbol() + " | ");
    final S dest=edge.getDest();
    sb.append(printItems(dest.getItems()));
    if (isEndState(dest)) {
      sb.append("[ ACCEPT ]");
    }
    sb.append("\n");
  }
  return sb.toString();
}

@ Override public String toString ( ) { final StringBuilder sb = new StringBuilder ( ) ; for ( Edge < S > edge : edges ) { final S src = edge . getSrc ( ) ; sb . append ( printItems ( src . getItems ( ) ) ) ; sb . append ( " | " + edge . getSymbol ( ) + " | " ) ; final S dest = edge . getDest ( ) ; sb . append ( printItems ( dest . getItems ( ) ) ) ; if ( isEndState ( dest ) ) { sb . append ( "[ ACCEPT ]" ) ; } sb . append ( "\n" ) ; } return sb . toString ( ) ; }
pattern : [ srcitem . getprdocution ( ) ] . . . | symbol | [ dstitems ] . . . ( [ accept ] )
