github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/tests/rewards/end_node_minus_reward.json (about) 1 { 2 "name": "End node minus reward", 3 "description": "The possibility to add a minus reward to the end node.", 4 "testing": "End node minus reward is calculated into the cost.", 5 "visual": "START->END, START->1, 1->END", 6 "rewards": [ 7 { 8 "id": "A" 9 } 10 ], 11 "nodes": [ 12 { 13 "id": "START" 14 }, 15 { 16 "id": "END", 17 "rewards": [ 18 { 19 "rewardId": "A", 20 "quantity": -1 21 } 22 ] 23 }, 24 { 25 "id": "1", 26 "rewards": [ 27 { 28 "rewardId": "A" 29 } 30 ] 31 } 32 ], 33 "edges": [ 34 { 35 "from": "START", 36 "to": "END" 37 }, 38 { 39 "from": "START", 40 "to": "1" 41 }, 42 { 43 "from": "1", 44 "to": "END" 45 } 46 ], 47 "startId": "START", 48 "endId": "END" 49 }