Messing around with graph theory and wxWidgets