mikemccand commented on code in PR #1016:
URL: https://github.com/apache/lucene/pull/1016#discussion_r933168964
##########
lucene/core/src/java/org/apache/lucene/util/automaton/Automaton.java:
##########
@@ -616,7 +621,7 @@ public String toDot() {
appendCharString(t.max, b);
}
b.append("\"]\n");
- // System.out.println(" t=" + t);
+ queue.add(t.dest);
}
}
Review Comment:
Could we add a simple check at the end of this, confirming that the number
of states emitted is exactly equal to the total number of states in the
incoming automaton?
This would catch accidental bugs in the future that might hide states in
disconnected graphs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]