github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/tests/single_weight/two_edges_zero_weight.json (about) 1 { 2 "name": "Two edges zero weight", 3 "description": "Edges with zero (0) weight time should work as usual.", 4 "testing": "No weight means time = 0.", 5 "visual": "START->END(2ms), START->1, 1->2, 2->END", 6 "nodes": [ 7 { 8 "id": "START" 9 }, 10 { 11 "id": "END" 12 }, 13 { 14 "id": "1" 15 }, 16 { 17 "id": "2" 18 } 19 ], 20 "edges": [ 21 { 22 "from": "START", 23 "to": "END", 24 "weights": [ 25 { 26 "time": "2" 27 } 28 ] 29 }, 30 { 31 "from": "START", 32 "to": "1", 33 "weights": [ 34 { 35 "time": "0" 36 } 37 ] 38 }, 39 { 40 "from": "1", 41 "to": "END", 42 "weights": [ 43 { 44 "time": "0" 45 } 46 ] 47 } 48 ], 49 "startId": "START", 50 "endId": "END" 51 }