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

     1  {
     2    "name": "Revisit looping gaining and losing reward",
     3    "description": "A short revisiting loop as part of the graph where you gain and lose same reward.",
     4    "testing": "Identifying loop where you gain a reward and lose it again.",
     5    "visual": "START->END(1000000ms), START->1, 1->START",
     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        "id": "1",
    26        "revisitable": true,
    27        "rewards": [
    28          {
    29            "rewardId": "A",
    30            "quantity": -1
    31          }
    32        ]
    33      }
    34    ],
    35    "edges": [
    36      {
    37        "from": "START",
    38        "to": "END",
    39        "weights": [
    40          {
    41            "time": "1000000"
    42          }
    43        ]
    44      },
    45      {
    46        "from": "START",
    47        "to": "1"
    48      },
    49      {
    50        "from": "1",
    51        "to": "START"
    52      }
    53    ],
    54    "startId": "START",
    55    "endId": "END"
    56  }