Skip to content
Kelvin DeCosta edited this page Dec 23, 2019 · 3 revisions

graph

This subcommand loads a Turing machine from a file and outputs the definition for the same in DOT, a language that ships with Graphviz

usage: alan graph [-h] [-f FILENAME] definition

positional arguments:
  definition            path to definition file

optional arguments:
  -h, --help            show this help message and exit
  -f FILENAME, --filename FILENAME
                        path to save graph

Example

Graph the machine:

alan graph examples/binary-palindrome.aln -f assets/readme/binary-palindrome.png

Clone this wiki locally