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

     1  {
     2    "name": "From to node equal",
     3    "description": "When from node and to node is equal but not revisitable, it shouldn't be possible to take that path.",
     4    "testing": "Revisit is not possible when from = to when not revisitable",
     5    "visual": "START->START, START->1, 1->END(req 2A), START->END(req 2A)",
     6    "rewards": [
     7      {
     8        "id": "A"
     9      }
    10    ],
    11    "nodes": [
    12      {
    13        "id": "START",
    14        "revisitable": false,
    15        "rewards": [
    16          {
    17            "rewardId": "A"
    18          }
    19        ]
    20      },
    21      {
    22        "id": "1",
    23        "rewards": [
    24          {
    25            "rewardId": "A"
    26          }
    27        ]
    28      },
    29      {
    30        "id": "END"
    31      }
    32    ],
    33    "edges": [
    34      {
    35        "from": "START",
    36        "to": "START"
    37      },
    38      {
    39        "from": "START",
    40        "to": "1"
    41      },
    42      {
    43        "from": "1",
    44        "to": "END",
    45        "weights": [
    46          {
    47            "requirements": [
    48              {
    49                "rewardId": "A",
    50                "quantity": 2
    51              }
    52            ]
    53          }
    54        ]
    55      },
    56      {
    57        "from": "START",
    58        "to": "END",
    59        "weights": [
    60          {
    61            "requirements": [
    62              {
    63                "rewardId": "A",
    64                "quantity": 2
    65              }
    66            ]
    67          }
    68        ]
    69      }
    70    ],
    71    "startId": "START",
    72    "endId": "END"
    73  }