A simple graph class with nice visualisation.
- C++11 compatible compiler
- CMake
Clone the repository:
git clone https://github.com/RudLorenz/graphalgs.git && cd graphalgs
Let CMake create required makefiles and compile the project with make
mkdir build
cd build
cmake ../
make
For Windows Visual Studio users CMake will automatically create all required project files: graphsalg.sln
.
Show help file
./graphsalg -h
Find all hamilton path in graph from interactive input
./graphsalg -i --hamilton
Read graph from file, find all articulation points, write graph as json
./graphsalg -f graph.in -a -o graph.json -j
Read graph from file, find all articulation point, delete if any found, write result graph as json
./graphsalg -f graph.in -a -d -o graph.json -j
Note: the first string in input_file
should contain the vertex count. Same goes for non interactive matrix input: the first value should be vertex count (or matrix side).
A graph sample can be found in sample
directory.
To visualise a graph write it as JSON in file graph.json
and place it with visual.html
.
Note: visual.html
WILL NOT WORK IN CHROME.