- Install all the libraries by running
pip install -r requirements.txt
in the foldergraph-algorithms
.
cd graph-algorithms
and then runpython3 MainApplication.py
- A
GUI
would open up in the screen - Click on
File
and chooseNew Graph
.
- On
double left-click
aNode
object is added in the graphical scene. - On
left-click
, theNode
is selected. right-click
on the selectedNode
removes it.- Press and hold the mouse from the source node to add edge
- Same goes for the
Edge
object. - On selecting the
Edge/Node
, it becomes highlighted. - The screen readjusts to keep the Graph centered.
- To save the current graph, click
Save Graph
, make sure to save the file with a.graph
extension. - To load previous graph, click on
Load Graph
.
- Package Diagram:
- Class Diagram:
- State Diagram: This is a state diagram of an undirected graph with two nodes and one edge.
- Activity Diagram:
- Use Case Diagram: