github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/tests/revisit/from_to_node_equal.json (about) 1 { 2 "name": "From to node equal", 3 "description": "When from node and to node is equal it should be possible to revisit if revisitable is set to true.", 4 "testing": "Revisit is possible when from = to", 5 "visual": "START->START, START->END(req 2A)", 6 "rewards": [ 7 { 8 "id": "A" 9 } 10 ], 11 "nodes": [ 12 { 13 "id": "START", 14 "revisitable": true, 15 "rewards": [ 16 { 17 "rewardId": "A" 18 } 19 ] 20 }, 21 { 22 "id": "END" 23 } 24 ], 25 "edges": [ 26 { 27 "from": "START", 28 "to": "START" 29 }, 30 { 31 "from": "START", 32 "to": "END", 33 "weights": [ 34 { 35 "requirements": [ 36 { 37 "rewardId": "A", 38 "quantity": 2 39 } 40 ] 41 } 42 ] 43 } 44 ], 45 "startId": "START", 46 "endId": "END" 47 }