Relating the multi-angle quantum approximate optimization algorithm and continuous-time quantum walks on dynamic graphs