Convert tab / space indented list to graphviz dot and then generate a graph: python todot.py [textfile] [dotfile] dot -Tpng [dotfile] > [pngfile]