$ sudo apt-get install graphviz
save in file.dot:
digraph trie { root[label="root"] 0[label="0"] 1[label="1"] 10[label="10"] 11[label="11"] root->0[label="root->0"] root->1[label="root->1"] 1->10[label="1->0"] 1->11[label="1->1"] }
$ dot file.dot -Tpng -o file.png
output:
No comments:
Post a Comment