github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/tests/multiple_weights/fastest_weight_unmet_requirement.json (about)

     1  {
     2    "name": "Fastest weight unmet requirement",
     3    "description": "Two weights possible but the fastest is blocked with a requirement.",
     4    "testing": "Taking fastest possible weight available, taking requirements into account.",
     5    "visual": "START->END(req=A 1ms,10ms), START->1(15ms), 1->END",
     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      }
    21    ],
    22    "edges": [
    23      {
    24        "from": "START",
    25        "to": "END",
    26        "weights": [
    27          {
    28            "requirements": [
    29              {
    30                "rewardId": "A"
    31              }
    32            ]
    33          },
    34          {
    35            "time": "10"
    36          }
    37        ]
    38      },
    39      {
    40        "from": "START",
    41        "to": "1",
    42        "weights": [
    43          {
    44            "time": "15"
    45          }
    46        ]
    47      },
    48      {
    49        "from": "1",
    50        "to": "END"
    51      }
    52    ],
    53    "startId": "START",
    54    "endId": "END"
    55  }