|
|
@ -10,6 +10,9 @@ import java.util.Set; |
|
|
import parser.ast.Expression; |
|
|
import parser.ast.Expression; |
|
|
import parser.ast.ExpressionLabel; |
|
|
import parser.ast.ExpressionLabel; |
|
|
import parser.ast.ExpressionRegular; |
|
|
import parser.ast.ExpressionRegular; |
|
|
|
|
|
import prism.PrismException; |
|
|
|
|
|
import prism.PrismFileLog; |
|
|
|
|
|
import prism.PrismLog; |
|
|
/** |
|
|
/** |
|
|
* Class to store a non-deterministic finite automaton. |
|
|
* Class to store a non-deterministic finite automaton. |
|
|
*/ |
|
|
*/ |
|
|
@ -449,7 +452,7 @@ public class NondeterministicFiniteAutomaton<Symbol> extends FiniteAutomaton<Sym |
|
|
* Generate a representation in GraphViz's dot format. |
|
|
* Generate a representation in GraphViz's dot format. |
|
|
* States are black, red when accepting, blue when initial and violet when both. |
|
|
* States are black, red when accepting, blue when initial and violet when both. |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
|
|
|
|
|
|
*/ |
|
|
public String toDot() { |
|
|
public String toDot() { |
|
|
StringBuffer result = new StringBuffer(); |
|
|
StringBuffer result = new StringBuffer(); |
|
|
result.append("digraph G {\n"); |
|
|
result.append("digraph G {\n"); |
|
|
|