To install the required dependencies, run the following command:
$ pip install -r requirements.txt
To run the program, use the following command:
$ ./main.py [-g|--graph] [-d|--debug] [-r|--read]
By default, the program generates a graphical representation of Pascal's triangle and saves it as a PNG image in the ./out/Graph.gv.png
directory.
-g, --graph
: Generates a pictorial representation of Pascal's triangle. The output is saved as a PNG image.-d, --debug
: Displays the schema of the graph and the elapsed time.-r, --read
: Reads Pascal's triangle data from a local.gv
file.
Below is an example of a pictorial representation of Pascal's triangle with PNG support.