Method ToDot
ToDot<T>(FST<T>, TextWriter, Boolean, Boolean)
Dumps an FST<T> to a GraphViz's dot
language description
for visualization. Example of use:
using (TextWriter sw = new StreamWriter("out.dot"))
{
Util.ToDot(fst, sw, true, true);
}
and then, from command line:
dot -Tpng -o out.png out.dot
Note: larger FSTs (a few thousand nodes) won't even render, don't bother. If the FST is > 2.1 GB in size then this method will throw strange exceptions.
See also http://www.graphviz.org/.
Declaration
public static void ToDot<T>(FST<T> fst, TextWriter out, bool sameRank, bool labelStates)
Parameters
Type | Name | Description |
---|---|---|
FST<T> | fst | |
TextWriter | out | |
System.Boolean | sameRank | If |
System.Boolean | labelStates | If |
Type Parameters
Name | Description |
---|---|
T |