github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/tests/rewards/required_reward_quantity.json (about) 1 { 2 "name": "Required reward quantity", 3 "description": "Basic path blocked because required reward quantity is higher than acquired reward quantity.", 4 "testing": "Required reward is acquired but not enough for shortest path.", 5 "visual": "START->1, 1->END, 1->2, 2->END", 6 "rewards": [ 7 { 8 "id": "A" 9 } 10 ], 11 "nodes": [ 12 { 13 "id": "START" 14 }, 15 { 16 "id": "END" 17 }, 18 { 19 "id": "1", 20 "rewards": [ 21 { 22 "rewardId": "A" 23 } 24 ] 25 }, 26 { 27 "id": "2" 28 } 29 ], 30 "edges": [ 31 { 32 "from": "START", 33 "to": "1" 34 }, 35 { 36 "from": "1", 37 "to": "END", 38 "weights": [ 39 { 40 "requirements": [ 41 { 42 "rewardId": "A", 43 "quantity": 2 44 } 45 ] 46 } 47 ] 48 }, 49 { 50 "from": "1", 51 "to": "2" 52 }, 53 { 54 "from": "2", 55 "to": "END" 56 } 57 ], 58 "startId": "START", 59 "endId": "END" 60 }