Removed characters, Hopcroft now supports all characters

This commit is contained in:
2017-06-12 14:04:55 +02:00
committed by Yorick Rommers
parent a33b7b9164
commit 7bfb0d671d
11 changed files with 97 additions and 69 deletions
+2 -2
View File
@@ -96,9 +96,9 @@ public class Graph {
try {
MutableGraph g = Parser.read(Graph.generateImageString(a));
if (fileName != null) {
Graphviz.fromGraph(g).width(1080).render(Format.PNG).toFile(new File("images/" + fileName + ".png"));
Graphviz.fromGraph(g).width(Math.max(a.states.size() * 150, 750)).render(Format.PNG).toFile(new File("images/" + fileName + ".png"));
} else {
Graphviz.fromGraph(g).width(1080).render(Format.PNG).toFile(new File("images/" + a.hashCode() + ".png"));
Graphviz.fromGraph(g).width(Math.max(a.states.size() * 150, 750)).render(Format.PNG).toFile(new File("images/" + a.hashCode() + ".png"));
}
} catch (IOException e) {
e.printStackTrace();