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

     1  {
     2    "name": "Revisit looping unobtainable reward",
     3    "description": "A short revisiting loop as part of the graph, blocked by a reward which cannot be obtained.",
     4    "testing": "Identifying loop caused by a requirement not being met to avoid getting stuck.",
     5    "visual": "START->END(1000000ms), START->1, 1->START, 1->END(req A)",
     6    "rewards": [
     7      {
     8        "id": "A"
     9      }
    10    ],
    11    "nodes": [
    12      {
    13        "id": "START",
    14        "revisitable": true
    15      },
    16      {
    17        "id": "END"
    18      },
    19      {
    20        "id": "1",
    21        "revisitable": true
    22      }
    23    ],
    24    "edges": [
    25      {
    26        "from": "START",
    27        "to": "END",
    28        "weights": [
    29          {
    30            "time": "1000000"
    31          }
    32        ]
    33      },
    34      {
    35        "from": "START",
    36        "to": "1"
    37      },
    38      {
    39        "from": "1",
    40        "to": "START"
    41      },
    42      {
    43        "from": "1",
    44        "to": "END",
    45        "weights": [
    46          {
    47            "requirements": [
    48              {
    49                "rewardId": "A"
    50              }
    51            ]
    52          }
    53        ]
    54      }
    55    ],
    56    "startId": "START",
    57    "endId": "END"
    58  }