Graphs is a toolbox for Graph Theory written in C++ with OpenGL and glut. It includes graph algorithms and an interface to visualize them. The project works with Gabriel graphs: these graphs look like road maps and are therefore nice for the study of lots of Graph algorithms.
You need to have glut installed on your platform. You can install it with:
apt-get install freeglut3 freeglut3-dev
Then running make linux
will compile Graphs in bin. You can run make clean
to delete the build directory.
You need to have XCode installed on your system. Then running make mac
will compile Graphs in bin. You can run make clean
to delete the build directory.
Call bin/graphs
to launch the application. The keys are described below.
+
: add more vertices-
: remove vertices1
: new graph2
: create an oriented graph3
: add weights to the edgesenter
: dupplicate the graphescape
: delete the current graphspace
: reset the current graph
a
: A* (shortest path)b
: Bron-Kerbosch (maximal clique)d
: Dijkstra (shortest path)e
: Edmonds-Karp (maximum flow)f
: Ford-Fulkerson (maximum flow)p
: Prim (minimum spanning tree)t
: Traveling Salesman (shortest route)
Graphs - Copyright (C) 2016 - Olivier Deiss
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
olivier . deiss [at] gmail . com