finalValues = [1, 2, 3], linksList = [ {source:0, target:1}, {source:1, target:3}, {source:2, target:1}, ]
So I have two lists and I need to loop throug