Revamped road management in the graph implementation, and callback registration to avoid duplicate callbacks.