github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/tests/single_weight/weighted_edges.json (about) 1 { 2 "name": "Weighted edges", 3 "description": "A more complex example testing all possible paths, not only the one that looks good from the beginning.", 4 "testing": "All paths are traversed, not only the cheap path visible from the start node.", 5 "visual": "START->1(1ms), START->2(2ms), 1->END(7ms), 2->END(2ms)", 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": "1", 24 "weights": [ 25 { 26 "time": "1" 27 } 28 ] 29 }, 30 { 31 "from": "START", 32 "to": "2", 33 "weights": [ 34 { 35 "time": "2" 36 } 37 ] 38 }, 39 { 40 "from": "1", 41 "to": "END", 42 "weights": [ 43 { 44 "time": "7" 45 } 46 ] 47 }, 48 { 49 "from": "2", 50 "to": "END", 51 "weights": [ 52 { 53 "time": "2" 54 } 55 ] 56 } 57 ], 58 "startId": "START", 59 "endId": "END" 60 }