I want to create a UI, through which the user can add nodes and link them by drawing lines thus creating a tree. Once user is done with drawing the tree, I should be able to use the data for my computation. User should be able to delete any nodes at a later point too.
For eg:
1) After drawing tree, the data could be saved in file with adjacent node info format.
2) When user clicks "Find Shortest Path" my algorithm can compute it from the saved data.
3) The Algorithm function then saves the Shortest Path info which could be picked up the UI to display it.
I can also write a wrapper over the library as the interface between GUI and library.
I want to write my algorithms in C or C++ and link my library to the GUI for input/Output.
Could any one suggest a good tool/library/framework for accomplishing the same.