github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/test_example.json (about) 1 { 2 "name": "Example", 3 "description": "Describing the example.", 4 "testing": "What does this test?", 5 "visual": "START->END", 6 "rewards": [ 7 { 8 "id": "A", 9 "unique": true 10 } 11 ], 12 "nodes": [ 13 { 14 "id": "START" 15 }, 16 { 17 "id": "END" 18 }, 19 { 20 "id": "1", 21 "revisitable": true, 22 "rewards": [ 23 { 24 "rewardId": "A", 25 "quantity": 1 26 } 27 ] 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": 1 44 } 45 ], 46 "time": 1 47 } 48 ] 49 } 50 ], 51 "startId": "START", 52 "endId": "END" 53 }