packages feed

hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/topology.json

{
  "name": "hydra.core.topology",
  "metadata": {"description": "A model for simple graphs as adjacency lists", "comments": [], "seeAlso": [], "provisions": []},
  "dependencies": [],
  "definitions": [
    {
      "type": {
        "name": "hydra.core.topology.Graph",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "map": {"keys": {"variable": "hydra.core.topology.Vertex"}, "values": {"list": {"variable": "hydra.core.topology.Vertex"}}}},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {"string": "A directed graph represented as an adjacency list mapping vertices to their outgoing neighbors"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.topology.OrderingIsomorphism",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "forall": {
                  "parameter": "a",
                  "body": {
                    "record": [
                      {
                        "name": "encode",
                        "type": {
                          "annotated": {
                            "body": {"function": {"domain": {"list": {"variable": "a"}}, "codomain": {"list": {"variable": "a"}}}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "Mapping from source ordering to target ordering"}}}]}}}},
                      {
                        "name": "decode",
                        "type": {
                          "annotated": {
                            "body": {"function": {"domain": {"list": {"variable": "a"}}, "codomain": {"list": {"variable": "a"}}}},
                            "annotation": {
                              "map": [
                                {
                                  "key": {"variable": "description"},
                                  "value": {"literal": {"string": "Mapping from target ordering to source ordering"}}}]}}}}]}}},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "A pair of inverse permutations on lists, used to relate two orderings of the same elements"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.topology.TarjanState",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {
                "record": [
                  {
                    "name": "counter",
                    "type": {
                      "annotated": {
                        "body": {"literal": {"integer": "int32"}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "Next available index for vertices in the DFS traversal"}}}]}}}},
                  {
                    "name": "indices",
                    "type": {
                      "annotated": {
                        "body": {"map": {"keys": {"variable": "hydra.core.topology.Vertex"}, "values": {"literal": {"integer": "int32"}}}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "Mapping from vertices to their indices in the DFS traversal"}}}]}}}},
                  {
                    "name": "lowLinks",
                    "type": {
                      "annotated": {
                        "body": {"map": {"keys": {"variable": "hydra.core.topology.Vertex"}, "values": {"literal": {"integer": "int32"}}}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "Mapping from vertices to their lowest reachable index in the DFS traversal"}}}]}}}},
                  {
                    "name": "stack",
                    "type": {
                      "annotated": {
                        "body": {"list": {"variable": "hydra.core.topology.Vertex"}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "Current DFS stack, with vertices in reverse order"}}}]}}}},
                  {
                    "name": "onStack",
                    "type": {
                      "annotated": {
                        "body": {"set": {"variable": "hydra.core.topology.Vertex"}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "Set of vertices currently on the stack, for quick lookup"}}}]}}}},
                  {
                    "name": "sccs",
                    "type": {
                      "annotated": {
                        "body": {"list": {"list": {"variable": "hydra.core.topology.Vertex"}}},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "Accumulated strongly connected components, each a list of vertices"}}}]}}}}]},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {
                      "literal": {"string": "State carried by Tarjan's strongly connected components algorithm during a depth-first traversal"}}}]}}},
          "constraints": []}}},
    {
      "type": {
        "name": "hydra.core.topology.Vertex",
        "body": {
          "variables": [],
          "body": {
            "annotated": {
              "body": {"literal": {"integer": "int32"}},
              "annotation": {
                "map": [
                  {
                    "key": {"variable": "description"},
                    "value": {"literal": {"string": "A graph vertex, represented as a 32-bit integer identifier"}}}]}}},
          "constraints": []}}}]}