This project simulates traffic flow and alternative routes in road networks using OpenGL.
- g++
- OpenGL
- GLU
- GLUT
-
Install the required packages:
On Ubuntu:
sudo apt-get update sudo apt-get install g++ freeglut3-dev
On Fedora:
sudo dnf install g++ freeglut-devel
On MacOS (with Homebrew):
brew install freeglut
-
Clone the repository:
git clone https://github.com/jayesh9747/Alternative-Routes-in-Road-Networks.git cd Alternative-Routes-in-Road-Networks
-
Compile the code:
g++ -o Alternative-Routes-in-Road-Networks Alternative-Routes-in-Road-Networks.cpp -lGL -lGLU -lglut
-
Run the simulation:
./Alternative-Routes-in-Road-Networks
traffic_simulation.cpp
: The main source code for the traffic simulation.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE
file for details.
Make sure to replace `https://github.com/jayesh9747/Alternative-Routes-in-Road-Networks.git` with the actual URL of your repository.