github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/tests/revisit/start_node_added_to_path.json (about) 1 { 2 "name": "Start node added to path", 3 "description": "Basic funcitonality making sure revisiting a node is possible if it's revisitable.", 4 "testing": "Start node is added to path and not possible to revisit", 5 "visual": "START->END(req A), START->1, 1->START, 1->END(1000000ms)", 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 "edges": [ 28 { 29 "from": "START", 30 "to": "END", 31 "weights": [ 32 { 33 "requirements": [ 34 { 35 "rewardId": "A" 36 } 37 ] 38 } 39 ] 40 }, 41 { 42 "from": "START", 43 "to": "1" 44 }, 45 { 46 "from": "1", 47 "to": "START" 48 }, 49 { 50 "from": "1", 51 "to": "END", 52 "weights": [ 53 { 54 "time": "1000000" 55 } 56 ] 57 } 58 ], 59 "startId": "START", 60 "endId": "END" 61 }