Closed appcompat1 closed 2 years ago
Thanks @appcompat1 for reporting! The null reference exception occurs, when no vertex is selected. I added an additional null check.
The graph should now update when using Kruskal see PR #19 .
Let me know if its working for you and feel free to reopen.
Repro steps:
Clone the code from main branch and open with VS2022.
Press F5 to launch the DataStructures.UI.Demo project.
Select node 3 and right-click to choose BreadthFirstSearch option.
It will throw Object reference not set to an instance of an object at DataStructures.UI.Demo\Window1ViewModel.cs:line 116
Findings: After checking the line 116, we found the vertex object is null.
Another issue:
Excepted Result: The screen should show this result.
Actual Result: The screen doesn't do any changes. It keeps in this: