Install SFML Library
sudo apt-get install libsfml-dev
git clone https://github.com/nsidir/Graphs.git
cd Graphs/Graphs
g++ -Wall -Wextra -I/usr/include/SFML Graphs.o Main.o Scenes.o -o graphs -lsfml-graphics -lsfml-window -lsfml-system
./graphs
This application allows you to create and manipulate graphs interactively. Here's how to use the main features:
- Right Click: Create a new node at the cursor position
- Left Click and Drag: Connect two nodes by clicking on one node, dragging to another, and releasing
- Press i key: View information about the current graph
- Press c key: Remove all nodes and edges, resetting the graph
- Press Ctrl + z: Revert the last action performed