A simple graph class with nice visualisation.
- C++11 compatible compiler
- CMake
Clone the repository:
git clone https://github.com/RudLorenz/graphalgs.git && cd graphalgsLet CMake create required makefiles and compile the project with make
mkdir build
cd build
cmake ../
makeFor Windows Visual Studio users CMake will automatically create all required project files: graphsalg.sln.
Show help file
./graphsalg -hFind all hamilton path in graph from interactive input
./graphsalg -i --hamiltonRead graph from file, find all articulation points, write graph as json
./graphsalg -f graph.in -a -o graph.json -jRead 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 -jNote: 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.