To execute the coloring algorithm, open your terminal and follow these steps:
-
Basic Execution:
Type the following command to run the script:
python3 coloring_algorithm.py
-
Redirecting Output to a File:
If you wish to save the output to a file instead of displaying it in the terminal, use this command:
python3 coloring_algorithm.py > result.txt
This will create a file named result.txt in the current directory, containing the output of the script.