public static string PrintDot <T>(DfaState <T> state, bool useStateNumbers = false) { var ctx = new DfaContext <T>(state, useStateNumbers); var printer = new DotPrinter <DfaState <T>, T>(ctx, "dfa"); return(printer.Print()); }
internal static string PrintDot <T>(RawDfa <T> rawDfa, bool useStateNumbers = false) { var ctx = new RawDfaContext <T>(rawDfa, useStateNumbers); var printer = new DotPrinter <int, T>(ctx, "rawdfa"); return(printer.Print()); }
public static string PrintDot <T>(Nfa <T> nfa, int state, bool useStateNumbers = false) { var ctx = new NfaContext <T>(nfa, state, useStateNumbers); var printer = new DotPrinter <int, T>(ctx, "nfa"); return(printer.Print()); }