I came across Qiskit's 'Max-Cut and Traveling Salesman Problem' and would like to adapt it to currency arbitrage problem.
I have assigned currencies as nodes in the code below, and written the currency exchange rates in a matrix.
I'm not sure whether the edges are being assigned to the exchange rate, and what is causing the error?
Thanks in advance for any help! :)