This project is the implementation of Welsh Powell Graph colouring Algorithm with live interaction visually.
Graph coloring is a concept of computer science, where two adjacent nodes
can not have the same color. They have to color with different colors. So, to implement this concept, computer scientists have given some algorithms. Most of them are very effective and have lower time complexity. And, Welsh Powell Graph colouring Algorithm is one of them. It is very effective, less time complexity and the algorithmic process is notably lucid.
An example of the Welsh Powell Graph colouring Algorithm with 3 nodes coloring.
- Clone the repo
git clone https://github.com/iamsabbirsobhani/welsh-powell-graph-colouring-algorithm
-
Create a python virtual environment(optional)
- Windows
Activating the virtual environment.
py -m venv env
.\env\Scripts\activate
- Unix/macOS
Activating the virtual environment.
python3 -m venv env
Details about Installing packages using pip and python virtual environmentssource env/bin/activate
- Windows
-
Install all the required packages
From the
requirements.txt
, install all the necessary packages.- Windows
pip install -r requirements.txt
- Unix/macOS
pip3 install -r requirements.txt
-
Run the app!
- Windows
python app.py
- Unix/macOS
python3 app.py
With Gunicorn server. Not compatible with this app as it reset processes quickly. But, working!
CMD ["gunicorn", "-b", ":8083", "-w", "4", "app:app"]
Ultimately it has been done with the default flask server.
Language | UI | Backend Framework |
---|---|---|
Python | HTML | Flask |
JavaScript | CSS | ∅ |
∅ | TailwindCSS | ∅ |