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

     1  {
     2    "name": "Minus rewards possible",
     3    "description": "A minus reward on the shortest path which cannot been acquired unless taking a detour.",
     4    "testing": "Minus rewards taking into account.",
     5    "visual": "START->1, START->2, 1->2, 2->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        "rewards": [
    21          {
    22            "rewardId": "A"
    23          }
    24        ]
    25      },
    26      {
    27        "id": "2",
    28        "rewards": [
    29          {
    30            "rewardId": "A",
    31            "quantity": -1
    32          }
    33        ]
    34      }
    35    ],
    36    "edges": [
    37      {
    38        "from": "START",
    39        "to": "1"
    40      },
    41      {
    42        "from": "START",
    43        "to": "2"
    44      },
    45      {
    46        "from": "1",
    47        "to": "2"
    48      },
    49      {
    50        "from": "2",
    51        "to": "END"
    52      }
    53    ],
    54    "startId": "START",
    55    "endId": "END"
    56  }