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

     1  {
     2    "name": "Revisit possible",
     3    "description": "Basic funcitonality making sure revisiting a node is possible if it's revisitable.",
     4    "testing": "Revisit is possible",
     5    "visual": "START->1, 1->START, START->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        "rewards": [
    22          {
    23            "rewardId": "A"
    24          }
    25        ]
    26      }
    27    ],
    28    "edges": [
    29      {
    30        "from": "START",
    31        "to": "END",
    32        "weights": [
    33          {
    34            "requirements": [
    35              {
    36                "rewardId": "A"
    37              }
    38            ]
    39          }
    40        ]
    41      },
    42      {
    43        "from": "START",
    44        "to": "1"
    45      },
    46      {
    47        "from": "1",
    48        "to": "START"
    49      }
    50    ],
    51    "startId": "START",
    52    "endId": "END"
    53  }