{
  "source": {
    "file": "Molten/test/resource/component/graph/relation/relation.template.rs",
    "cases": "Molten/test/resource/component/graph/relation/cases.json"
  },
  "functions": [
    {
      "function": "new",
      "tags": [
        "empty",
        "single",
        "relation",
        "multiple",
        "relations"
      ],
      "cases": [
        {
          "parameters": {
            "adjacency": []
          },
          "returns": {
            "()": {
              "adjacency": []
            }
          },
          "unexpected": null
        },
        {
          "parameters": {
            "adjacency": [
              [
                "a",
                [
                  "b"
                ]
              ]
            ]
          },
          "returns": {
            "()": {
              "adjacency": [
                [
                  "a",
                  [
                    "b"
                  ]
                ]
              ]
            }
          },
          "unexpected": null
        },
        {
          "parameters": {
            "adjacency": [
              [
                "a",
                [
                  "b",
                  "c"
                ]
              ],
              [
                "b",
                [
                  "d"
                ]
              ]
            ]
          },
          "returns": {
            "()": {
              "adjacency": [
                [
                  "a",
                  [
                    "b",
                    "c"
                  ]
                ],
                [
                  "b",
                  [
                    "d"
                  ]
                ]
              ]
            }
          },
          "unexpected": null
        }
      ]
    },
    {
      "function": "relate",
      "tags": [
        "add",
        "to",
        "empty",
        "existing",
        "label",
        "new"
      ],
      "cases": [
        {
          "parameters": {
            "relation": "b",
            "label": "a",
            "related": {
              "adjacency": []
            }
          },
          "returns": {
            "()": {
              "adjacency": [
                [
                  "a",
                  [
                    "b"
                  ]
                ]
              ]
            }
          },
          "unexpected": null
        },
        {
          "parameters": {
            "related": {
              "adjacency": [
                [
                  "a",
                  [
                    "b"
                  ]
                ]
              ]
            },
            "label": "a",
            "relation": "c"
          },
          "returns": {
            "()": {
              "adjacency": [
                [
                  "a",
                  [
                    "b",
                    "c"
                  ]
                ]
              ]
            }
          },
          "unexpected": null
        },
        {
          "parameters": {
            "label": "c",
            "relation": "d",
            "related": {
              "adjacency": [
                [
                  "a",
                  [
                    "b"
                  ]
                ]
              ]
            }
          },
          "returns": {
            "()": {
              "adjacency": [
                [
                  "a",
                  [
                    "b"
                  ]
                ],
                [
                  "c",
                  [
                    "d"
                  ]
                ]
              ]
            }
          },
          "unexpected": null
        }
      ]
    }
  ]
}