virtual-labs-archive / data-structures-iiith

This repository contains sources to Data Structures Lab IIITH.
https://cse01-iiith.vlabs.ac.in/
Other
1 stars 73 forks source link

Shortest Paths in graph_Simulation #130

Open Manish17292000 opened 5 years ago

Manish17292000 commented 5 years ago

Defect Description : If the user adds 2 nodes and then undo them by pressing z key so that now the screen contains 0 node and then if he tries to escape from the draw window nothing happens, instead an error should be displayed saying "No node inserted".

Steps to reproduce the issue : Go to simulation in Shortest Paths in graph, then click on Draw graph, select directed or undirected, insert 2 nodes anywhere, undo them by pressing z 2 times, then press esc key.

Expected Result : An error should be displayed saying "No node inserted" .

Actual results : No warning or error is displayed.

Screen shot -

2 Nodes are insreted

1

1 node is removed by pressing z

2

Other node is removed using z. And then Esc key is pressed. No error is displayed

3