eclipse / elk

Eclipse Layout Kernel - Automatic layout for Java applications.
https://www.eclipse.org/elk/
Other
248 stars 83 forks source link

Edge from Child to Parent Takes Weird Route #1068

Closed saulshanabrook closed 3 weeks ago

saulshanabrook commented 1 month ago

Describe the bug

When I try to lay out graphs with edges that go from a child node to the parent node, the edge for some reason also travels to the top left of the screen first. I have created a minimal example to reproduce this:

{
  "id": "ROOT",
  "layoutOptions": {
    "elk.algorithm": "layered",
    "elk.hierarchyHandling": "INCLUDE_CHILDREN",
  },
  "children": [
    {
      "id": "A",
      "width": 1000,
      "height": 1000

    },
    {
      "id": "B",
      "children": [
        {
          "id": "CHILD",
          "width": 50,
          "height": 50,
        },  
      ]
    },
  ],
  "edges": [
    {
      "id": "EDGE",
      "source": "CHILD",
      "target": "B",
    },
  ]
}

ELKLive link

Is there a way I can tweak my layout options or my graph in order to get better edge routing behavior here? I notice it is the case regardless of the edge routing strategy.

Expected behavior

The edge routing should place the edge back to the parent node, without stopping first at the top left of the screen.

Screenshots Screenshot 2024-08-20 at 1 49 13 PM

ELK Version @latest 0.9.3

Additional context

here is a larger realistic example that shows off this issue as well

soerendomroes commented 1 month ago

You can solve this by putting the edge in the correct hierarchy level as seen here. This issue is already tracked https://github.com/eclipse/elk/issues/901but it seems to be a bigger effort to fix this.

saulshanabrook commented 1 month ago

Thank you.

So it looks for all the edges, if they go from a child to it's parent node, they have to be in the parent node. But if they go from a child of one node to a different parent container, they should be in the outer root node.

saulshanabrook commented 1 month ago

I am re-opening this because I realize I would like the edge to leave the compound node then come back and connect to the port from the outside.

Is this possible currently? So like the original code I posted, but just instead of leaving and going to a very far away place, it just goes out a little bit then comes back, sort of like this self loop example, but where the target port is on the parent node https://rtsys.informatik.uni-kiel.de/elklive/examples.html?e=general%2Fspacing%2Flabels

saulshanabrook commented 1 month ago

To give more context, I am trying to make a layout that is suitable for visualizing e-graphs

Here is a manually laid out e-graph:

Screenshot 2024-08-23 at 12 56 13 PM

And the same e-graph with an automatic ELK layout (shown here using my custom renderer with React Flow, but the layout is the same as the ELK Live editor):

Screenshot 2024-08-23 at 12 56 55 PM

All edges go from an e-node to an e-class, so I have "elk.hierarchyHandling": "INCLUDE_CHILDREN" set.

However, as you can see, this causes edges to cross and stay in their e-class. Instead, they should leave the e-class as soon as possible. It doesn't make sense for it to grow to accommodate the size of any edge movements. I asked @soerendomroes about this on Gitter and said that maybe I shouldn't use INCLUDE_CHILDREN:

Additionally, the size may increase if we have edge crossings in a compound node. This is why I typically not use INCLUDE_CHILDREN and rather use explicit ports to break the hierarchical edges in two and control the order of nodes and ports in the compound node

I am open to any ideas here. Would the suggestion here be then to create two edges, one from the node to the edge of their compound node, then from that port to the destination compound node? If so, can I have ELK position those ports automatically where they need to go?

Thank you for your support and for sharing this library!

soerendomroes commented 1 month ago

I think your issue may be that the port and edge spacing might be different in this example.

saulshanabrook commented 1 month ago

Wow, setting "elk.spacing.portPort": "0" in the compound nodes fixed the weird bends, thank you!

Now the only remaining thing is how to get the self edge from an inner node to an outer to node to actually leave the node and come back around instead of going from the inside. That will also make the compound nodes smaller still by not having that edge inside:

Screenshot 2024-08-23 at 1 52 42 PM

soerendomroes commented 4 weeks ago

If I understand your request correctly, you need explicit ports for this, as shown here.

saulshanabrook commented 3 weeks ago

Thank you! That seemed to do.

I appreciate all of your help with this, it's looking a lot more reasonable now:

Screenshot 2024-08-28 at 4 04 28 PM

saulshanabrook commented 3 weeks ago

I am still getting some odd behavior with the ports that I can't seem to figure out. I would like the edges not to be merged, so that each incoming edge to an e-class can connect to the e-class wherever fits best with the layout instead of having to be combined into one location. I tried to accomplish this by making separate ports for each edge, but it still seems to combine them, but only some of the time.

Screenshot 2024-08-29 at 12 56 20 PM

JSON ```json { "id": "--eclipse-layout-kernel-root", "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.hierarchyHandling": "INCLUDE_CHILDREN", "elk.layered.nodePlacement.strategy": "NETWORK_SIMPLEX", "elk.layered.edgeRouting.splines.mode": "CONSERVATIVE" }, "children": [ { "id": "class-right", "data": { "color": null, "id": "right" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-1", "data": { "label": "1", "id": "1" }, "width": 26, "height": 26, "ports": [], "labels": [ { "text": "1" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-/", "data": { "label": "/", "id": "/" }, "width": 26, "height": 26, "ports": [ { "id": "port-node-/-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-/-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "/" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-**-1" }, { "id": "port-class-incoming-<<-1" }, { "id": "port-class-outgoing-/-0" }, { "id": "port-class-outgoing-/-1" } ], "edges": [ { "id": "edge-inner-/-0", "data": { "isInner": true }, "sourceNode": "node-/", "targetNode": "class-right", "sources": [ "port-node-/-0" ], "targets": [ "port-class-outgoing-/-0" ] }, { "id": "edge-inner-/-1", "data": { "isInner": true }, "sourceNode": "node-/", "targetNode": "class-right", "sources": [ "port-node-/-1" ], "targets": [ "port-class-outgoing-/-1" ] } ] }, { "id": "class-bottom", "data": { "color": null, "id": "bottom" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-2", "data": { "label": "2", "id": "2" }, "width": 26, "height": 26, "ports": [], "labels": [ { "text": "2" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-//-1" }, { "id": "port-class-incoming-*-1" }, { "id": "port-class-incoming-/-0" }, { "id": "port-class-incoming-/-1" } ], "edges": [] }, { "id": "class-top", "data": { "color": null, "id": "top" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-//", "data": { "label": "/", "id": "//" }, "width": 26, "height": 26, "ports": [ { "id": "port-node-//-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-//-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "/" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-**", "data": { "label": "*", "id": "**" }, "width": 26, "height": 26, "ports": [ { "id": "port-node-**-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-**-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "*" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-a", "data": { "label": "a", "id": "a" }, "width": 26, "height": 26, "ports": [], "labels": [ { "text": "a" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-**-0" }, { "id": "port-class-incoming-*-0" }, { "id": "port-class-incoming-<<-0" }, { "id": "port-class-outgoing-//-0" }, { "id": "port-class-outgoing-//-1" }, { "id": "port-class-outgoing-**-0" }, { "id": "port-class-outgoing-**-1" } ], "edges": [ { "id": "edge-inner-//-0", "data": { "isInner": true }, "sourceNode": "node-//", "targetNode": "class-top", "sources": [ "port-node-//-0" ], "targets": [ "port-class-outgoing-//-0" ] }, { "id": "edge-inner-//-1", "data": { "isInner": true }, "sourceNode": "node-//", "targetNode": "class-top", "sources": [ "port-node-//-1" ], "targets": [ "port-class-outgoing-//-1" ] }, { "id": "edge-inner-**-0", "data": { "isInner": true }, "sourceNode": "node-**", "targetNode": "class-top", "sources": [ "port-node-**-0" ], "targets": [ "port-class-outgoing-**-0" ] }, { "id": "edge-inner-**-1", "data": { "isInner": true }, "sourceNode": "node-**", "targetNode": "class-top", "sources": [ "port-node-**-1" ], "targets": [ "port-class-outgoing-**-1" ] } ] }, { "id": "class-middle", "data": { "color": null, "id": "middle" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-*", "data": { "label": "*", "id": "*" }, "width": 26, "height": 26, "ports": [ { "id": "port-node-*-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-*-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "*" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-<<", "data": { "label": "<<", "id": "<<" }, "width": 26, "height": 26, "ports": [ { "id": "port-node-<<-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-<<-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "<<" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-//-0" }, { "id": "port-class-outgoing-*-0" }, { "id": "port-class-outgoing-*-1" }, { "id": "port-class-outgoing-<<-0" }, { "id": "port-class-outgoing-<<-1" } ], "edges": [ { "id": "edge-inner-*-0", "data": { "isInner": true }, "sourceNode": "node-*", "targetNode": "class-middle", "sources": [ "port-node-*-0" ], "targets": [ "port-class-outgoing-*-0" ] }, { "id": "edge-inner-*-1", "data": { "isInner": true }, "sourceNode": "node-*", "targetNode": "class-middle", "sources": [ "port-node-*-1" ], "targets": [ "port-class-outgoing-*-1" ] }, { "id": "edge-inner-<<-0", "data": { "isInner": true }, "sourceNode": "node-<<", "targetNode": "class-middle", "sources": [ "port-node-<<-0" ], "targets": [ "port-class-outgoing-<<-0" ] }, { "id": "edge-inner-<<-1", "data": { "isInner": true }, "sourceNode": "node-<<", "targetNode": "class-middle", "sources": [ "port-node-<<-1" ], "targets": [ "port-class-outgoing-<<-1" ] } ] } ], "edges": [ { "id": "edge-outer-/-0", "data": { "isInner": false }, "sourceNode": "class-right", "targetNode": "class-bottom", "sources": [ "port-class-outgoing-/-0" ], "targets": [ "port-class-incoming-/-0" ] }, { "id": "edge-outer-/-1", "data": { "isInner": false }, "sourceNode": "class-right", "targetNode": "class-bottom", "sources": [ "port-class-outgoing-/-1" ], "targets": [ "port-class-incoming-/-1" ] }, { "id": "edge-outer-//-0", "data": { "isInner": false }, "sourceNode": "class-top", "targetNode": "class-middle", "sources": [ "port-class-outgoing-//-0" ], "targets": [ "port-class-incoming-//-0" ] }, { "id": "edge-outer-//-1", "data": { "isInner": false }, "sourceNode": "class-top", "targetNode": "class-bottom", "sources": [ "port-class-outgoing-//-1" ], "targets": [ "port-class-incoming-//-1" ] }, { "id": "edge-outer-**-0", "data": { "isInner": false }, "sourceNode": "class-top", "targetNode": "class-top", "sources": [ "port-class-outgoing-**-0" ], "targets": [ "port-class-incoming-**-0" ] }, { "id": "edge-outer-**-1", "data": { "isInner": false }, "sourceNode": "class-top", "targetNode": "class-right", "sources": [ "port-class-outgoing-**-1" ], "targets": [ "port-class-incoming-**-1" ] }, { "id": "edge-outer-*-0", "data": { "isInner": false }, "sourceNode": "class-middle", "targetNode": "class-top", "sources": [ "port-class-outgoing-*-0" ], "targets": [ "port-class-incoming-*-0" ] }, { "id": "edge-outer-*-1", "data": { "isInner": false }, "sourceNode": "class-middle", "targetNode": "class-bottom", "sources": [ "port-class-outgoing-*-1" ], "targets": [ "port-class-incoming-*-1" ] }, { "id": "edge-outer-<<-0", "data": { "isInner": false }, "sourceNode": "class-middle", "targetNode": "class-top", "sources": [ "port-class-outgoing-<<-0" ], "targets": [ "port-class-incoming-<<-0" ] }, { "id": "edge-outer-<<-1", "data": { "isInner": false }, "sourceNode": "class-middle", "targetNode": "class-right", "sources": [ "port-class-outgoing-<<-1" ], "targets": [ "port-class-incoming-<<-1" ] } ] } ```

This seems to compound for larger graphs, where multiple edges from a single e-class have the same destination, and then we get the issue where they combine in the class, instead of exiting through different ports:

Screenshot 2024-08-29 at 1 01 20 PM

JSON ```json { "id": "--eclipse-layout-kernel-root", "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.hierarchyHandling": "INCLUDE_CHILDREN", "elk.layered.nodePlacement.strategy": "NETWORK_SIMPLEX", "elk.layered.edgeRouting.splines.mode": "CONSERVATIVE" }, "children": [ { "id": "class-DType-17", "data": { "color": "#decbe4", "id": "DType-17" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-NDArray_dtype", "data": { "label": "·.dtype", "id": "function-0-NDArray_dtype" }, "width": 60.578125, "height": 26, "ports": [ { "id": "port-node-function-0-NDArray_dtype-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.dtype" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-2-NDArray_dtype", "data": { "label": "NDArray.var(\"X\").dtype", "id": "function-2-NDArray_dtype" }, "width": 168.953125, "height": 26, "ports": [], "labels": [ { "text": "NDArray.var(\"X\").dtype" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-NDArray___init__-1" }, { "id": "port-class-outgoing-function-0-NDArray_dtype-0" } ], "edges": [ { "id": "edge-inner-function-0-NDArray_dtype-0", "data": { "isInner": true }, "sourceNode": "node-function-0-NDArray_dtype", "targetNode": "class-DType-17", "sources": [ "port-node-function-0-NDArray_dtype-0" ], "targets": [ "port-class-outgoing-function-0-NDArray_dtype-0" ] } ] }, { "id": "class-Int-12", "data": { "color": "#cccccc", "id": "Int-12" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_", "data": { "label": "lambda dims, i: dims[i](·, Int(4))", "id": "function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_" }, "width": 255.640625, "height": 26, "ports": [ { "id": "port-node-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda dims, i: dims[i](·, Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__", "data": { "label": "lambda f, self, i: f(self[i])(·, ·, Int(2))", "id": "function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__" }, "width": 320.671875, "height": 26, "ports": [ { "id": "port-node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda f, self, i: f(self[i])(·, ·, Int(2))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-index_vec_int", "data": { "label": "index_vec_int(·, Int(4))", "id": "function-0-index_vec_int" }, "width": 183.390625, "height": 26, "ports": [ { "id": "port-node-function-0-index_vec_int-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "index_vec_int(·, Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-3-TupleInt___getitem__", "data": { "label": "·[Int(4)]", "id": "function-3-TupleInt___getitem__" }, "width": 75.03125, "height": 26, "ports": [ { "id": "port-node-function-3-TupleInt___getitem__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·[Int(4)]" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-15-TupleInt___getitem__", "data": { "label": "·[Int(2)]", "id": "function-15-TupleInt___getitem__" }, "width": 75.03125, "height": 26, "ports": [ { "id": "port-node-function-15-TupleInt___getitem__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·[Int(2)]" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-outgoing-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" }, { "id": "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" }, { "id": "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" }, { "id": "port-class-outgoing-function-0-index_vec_int-0" }, { "id": "port-class-outgoing-function-3-TupleInt___getitem__-0" }, { "id": "port-class-outgoing-function-15-TupleInt___getitem__-0" } ], "edges": [ { "id": "edge-inner-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0", "data": { "isInner": true }, "sourceNode": "node-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_", "targetNode": "class-Int-12", "sources": [ "port-node-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" ], "targets": [ "port-class-outgoing-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" ] }, { "id": "edge-inner-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0", "data": { "isInner": true }, "sourceNode": "node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__", "targetNode": "class-Int-12", "sources": [ "port-node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" ], "targets": [ "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" ] }, { "id": "edge-inner-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1", "data": { "isInner": true }, "sourceNode": "node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__", "targetNode": "class-Int-12", "sources": [ "port-node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" ], "targets": [ "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" ] }, { "id": "edge-inner-function-0-index_vec_int-0", "data": { "isInner": true }, "sourceNode": "node-function-0-index_vec_int", "targetNode": "class-Int-12", "sources": [ "port-node-function-0-index_vec_int-0" ], "targets": [ "port-class-outgoing-function-0-index_vec_int-0" ] }, { "id": "edge-inner-function-3-TupleInt___getitem__-0", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt___getitem__", "targetNode": "class-Int-12", "sources": [ "port-node-function-3-TupleInt___getitem__-0" ], "targets": [ "port-class-outgoing-function-3-TupleInt___getitem__-0" ] }, { "id": "edge-inner-function-15-TupleInt___getitem__-0", "data": { "isInner": true }, "sourceNode": "node-function-15-TupleInt___getitem__", "targetNode": "class-Int-12", "sources": [ "port-node-function-15-TupleInt___getitem__-0" ], "targets": [ "port-class-outgoing-function-15-TupleInt___getitem__-0" ] } ] }, { "id": "class-ShapeAPI-18", "data": { "color": "#fed9a6", "id": "ShapeAPI-18" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-ShapeAPI_select", "data": { "label": "·.select", "id": "function-0-ShapeAPI_select" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-0-ShapeAPI_select-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-0-ShapeAPI_select-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.select" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-2-ShapeAPI___init__", "data": { "label": "ShapeAPI", "id": "function-2-ShapeAPI___init__" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-2-ShapeAPI___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "ShapeAPI" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-1-ShapeAPI_to_tuple-0" }, { "id": "port-class-outgoing-function-0-ShapeAPI_select-0" }, { "id": "port-class-outgoing-function-0-ShapeAPI_select-1" }, { "id": "port-class-outgoing-function-2-ShapeAPI___init__-0" } ], "edges": [ { "id": "edge-inner-function-0-ShapeAPI_select-0", "data": { "isInner": true }, "sourceNode": "node-function-0-ShapeAPI_select", "targetNode": "class-ShapeAPI-18", "sources": [ "port-node-function-0-ShapeAPI_select-0" ], "targets": [ "port-class-outgoing-function-0-ShapeAPI_select-0" ] }, { "id": "edge-inner-function-0-ShapeAPI_select-1", "data": { "isInner": true }, "sourceNode": "node-function-0-ShapeAPI_select", "targetNode": "class-ShapeAPI-18", "sources": [ "port-node-function-0-ShapeAPI_select-1" ], "targets": [ "port-class-outgoing-function-0-ShapeAPI_select-1" ] }, { "id": "edge-inner-function-2-ShapeAPI___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-2-ShapeAPI___init__", "targetNode": "class-ShapeAPI-18", "sources": [ "port-node-function-2-ShapeAPI___init__-0" ], "targets": [ "port-class-outgoing-function-2-ShapeAPI___init__-0" ] } ] }, { "id": "class-ShapeAPI-14", "data": { "color": "#fed9a6", "id": "ShapeAPI-14" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-ShapeAPI___init__", "data": { "label": "ShapeAPI", "id": "function-0-ShapeAPI___init__" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-0-ShapeAPI___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "ShapeAPI" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-ShapeAPI_select-0" }, { "id": "port-class-incoming-function-0-ShapeAPI_deselect-0" }, { "id": "port-class-outgoing-function-0-ShapeAPI___init__-0" } ], "edges": [ { "id": "edge-inner-function-0-ShapeAPI___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-0-ShapeAPI___init__", "targetNode": "class-ShapeAPI-14", "sources": [ "port-node-function-0-ShapeAPI___init__-0" ], "targets": [ "port-class-outgoing-function-0-ShapeAPI___init__-0" ] } ] }, { "id": "class-ShapeAPI-15", "data": { "color": "#fed9a6", "id": "ShapeAPI-15" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-ShapeAPI___init__", "data": { "label": "ShapeAPI", "id": "function-1-ShapeAPI___init__" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-1-ShapeAPI___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "ShapeAPI" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-ShapeAPI_deselect", "data": { "label": "·.deselect", "id": "function-0-ShapeAPI_deselect" }, "width": 82.25, "height": 26, "ports": [ { "id": "port-node-function-0-ShapeAPI_deselect-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-0-ShapeAPI_deselect-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.deselect" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-2-ShapeAPI_to_tuple-0" }, { "id": "port-class-outgoing-function-1-ShapeAPI___init__-0" }, { "id": "port-class-outgoing-function-0-ShapeAPI_deselect-0" }, { "id": "port-class-outgoing-function-0-ShapeAPI_deselect-1" } ], "edges": [ { "id": "edge-inner-function-1-ShapeAPI___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-1-ShapeAPI___init__", "targetNode": "class-ShapeAPI-15", "sources": [ "port-node-function-1-ShapeAPI___init__-0" ], "targets": [ "port-class-outgoing-function-1-ShapeAPI___init__-0" ] }, { "id": "edge-inner-function-0-ShapeAPI_deselect-0", "data": { "isInner": true }, "sourceNode": "node-function-0-ShapeAPI_deselect", "targetNode": "class-ShapeAPI-15", "sources": [ "port-node-function-0-ShapeAPI_deselect-0" ], "targets": [ "port-class-outgoing-function-0-ShapeAPI_deselect-0" ] }, { "id": "edge-inner-function-0-ShapeAPI_deselect-1", "data": { "isInner": true }, "sourceNode": "node-function-0-ShapeAPI_deselect", "targetNode": "class-ShapeAPI-15", "sources": [ "port-node-function-0-ShapeAPI_deselect-1" ], "targets": [ "port-class-outgoing-function-0-ShapeAPI_deselect-1" ] } ] }, { "id": "class-Vec_Int-31", "data": { "color": "#ccebc5", "id": "Vec_Int-31" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-Vec_Int-31", "data": { "label": "Vec(Int(3), Int(2), Int(3), Int(4))", "id": "primitive-Vec_Int-31" }, "width": 262.875, "height": 26, "ports": [], "labels": [ { "text": "Vec(Int(3), Int(2), Int(3), Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-2-TupleInt_from_vec-0" }, { "id": "port-class-incoming-function-0-index_vec_int-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-95-0" } ], "edges": [] }, { "id": "class-TupleInt-13", "data": { "color": "#f1e2cc", "id": "TupleInt-13" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-2-TupleInt_from_vec", "data": { "label": "TupleInt.from_vec", "id": "function-2-TupleInt_from_vec" }, "width": 132.828125, "height": 26, "ports": [ { "id": "port-node-function-2-TupleInt_from_vec-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt.from_vec" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-1-NDArray_shape", "data": { "label": "·.shape", "id": "function-1-NDArray_shape" }, "width": 60.578125, "height": 26, "ports": [ { "id": "port-node-function-1-NDArray_shape-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.shape" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-11-TupleInt___init__", "data": { "label": "TupleInt(Int(4), ·)", "id": "function-11-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-11-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(4), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-29-TupleInt___init__", "data": { "label": "TupleInt(Int(4), ·)", "id": "function-29-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-29-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(4), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" }, { "id": "port-class-incoming-function-0-ShapeAPI___init__-0" }, { "id": "port-class-incoming-function-1-assume_shape-0" }, { "id": "port-class-incoming-function-4-TupleInt_length-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-2-0" }, { "id": "port-class-incoming-function-3-TupleInt___getitem__-0" }, { "id": "port-class-outgoing-function-2-TupleInt_from_vec-0" }, { "id": "port-class-outgoing-function-1-NDArray_shape-0" }, { "id": "port-class-outgoing-function-11-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-29-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-2-TupleInt_from_vec-0", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_from_vec", "targetNode": "class-TupleInt-13", "sources": [ "port-node-function-2-TupleInt_from_vec-0" ], "targets": [ "port-class-outgoing-function-2-TupleInt_from_vec-0" ] }, { "id": "edge-inner-function-1-NDArray_shape-0", "data": { "isInner": true }, "sourceNode": "node-function-1-NDArray_shape", "targetNode": "class-TupleInt-13", "sources": [ "port-node-function-1-NDArray_shape-0" ], "targets": [ "port-class-outgoing-function-1-NDArray_shape-0" ] }, { "id": "edge-inner-function-11-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-11-TupleInt___init__", "targetNode": "class-TupleInt-13", "sources": [ "port-node-function-11-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-11-TupleInt___init__-0" ] }, { "id": "edge-inner-function-29-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-29-TupleInt___init__", "targetNode": "class-TupleInt-13", "sources": [ "port-node-function-29-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-29-TupleInt___init__-0" ] } ] }, { "id": "class-Vec_Int-32", "data": { "color": "#ccebc5", "id": "Vec_Int-32" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-Vec_Int-32", "data": { "label": "Vec(Int(0), Int(1))", "id": "primitive-Vec_Int-32" }, "width": 147.28125, "height": 26, "ports": [], "labels": [ { "text": "Vec(Int(0), Int(1))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-3-TupleInt_from_vec-0" }, { "id": "port-class-incoming-function-1-index_vec_int-0" }, { "id": "port-class-incoming-function-2-index_vec_int-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-92-0" } ], "edges": [] }, { "id": "class-TupleInt-9", "data": { "color": "#f1e2cc", "id": "TupleInt-9" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-3-TupleInt_from_vec", "data": { "label": "TupleInt.from_vec", "id": "function-3-TupleInt_from_vec" }, "width": 132.828125, "height": 26, "ports": [ { "id": "port-node-function-3-TupleInt_from_vec-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt.from_vec" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-16-TupleInt___init__", "data": { "label": "TupleInt(Int(2), ·)", "id": "function-16-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-16-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(2), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-ShapeAPI_select-1" }, { "id": "port-class-incoming-function-0-axis-TupleInt_i-Int__TupleInt_contains_axis_i_-0" }, { "id": "port-class-incoming-function-0-linalg_norm-1" }, { "id": "port-class-incoming-function-0-TupleInt_fold_boolean-0" }, { "id": "port-class-incoming-function-1-axis-TupleInt_i-Int__Boolean___invert____TupleInt_contains_axis_i__-0" }, { "id": "port-class-incoming-function-0-ShapeAPI_deselect-1" }, { "id": "port-class-incoming-function-0-TupleInt_contains-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Boolean_Int-0-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Boolean_Int-1-0" }, { "id": "port-class-outgoing-function-3-TupleInt_from_vec-0" }, { "id": "port-class-outgoing-function-16-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-3-TupleInt_from_vec-0", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt_from_vec", "targetNode": "class-TupleInt-9", "sources": [ "port-node-function-3-TupleInt_from_vec-0" ], "targets": [ "port-class-outgoing-function-3-TupleInt_from_vec-0" ] }, { "id": "edge-inner-function-16-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-16-TupleInt___init__", "targetNode": "class-TupleInt-9", "sources": [ "port-node-function-16-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-16-TupleInt___init__-0" ] } ] }, { "id": "class-NDArray-6", "data": { "color": "#b3cde3", "id": "NDArray-6" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-assume_shape", "data": { "label": "assume_shape(NDArray.var(\"X\"), ·)", "id": "function-1-assume_shape" }, "width": 248.421875, "height": 26, "ports": [ { "id": "port-node-function-1-assume_shape-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "assume_shape(NDArray.var(\"X\"), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-NDArray_dtype-0" }, { "id": "port-class-incoming-function-0-linalg_norm-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Value_TupleInt-0-0" }, { "id": "port-class-incoming-function-1-NDArray_shape-0" }, { "id": "port-class-outgoing-function-1-assume_shape-0" } ], "edges": [ { "id": "edge-inner-function-1-assume_shape-0", "data": { "isInner": true }, "sourceNode": "node-function-1-assume_shape", "targetNode": "class-NDArray-6", "sources": [ "port-node-function-1-assume_shape-0" ], "targets": [ "port-class-outgoing-function-1-assume_shape-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-2", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-2" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-2", "data": { "label": "lambda dims, i: dims[i]", "id": "primitive-UnstableFn_Int_Int-2" }, "width": 176.171875, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-2-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda dims, i: dims[i]" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" }, { "id": "port-class-incoming-function-2-TupleInt_map-1" }, { "id": "port-class-incoming-function-3-TupleInt_map-1" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-4-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-3-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-2-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-2-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-2", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-node-primitive-UnstableFn_Int_Int-2-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-2-0" ] } ] }, { "id": "class-TupleInt-42", "data": { "color": "#f1e2cc", "id": "TupleInt-42" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-TupleInt_if_", "data": { "label": "TupleInt.if_(TRUE, ·, ·)", "id": "function-0-TupleInt_if_" }, "width": 183.390625, "height": 26, "ports": [ { "id": "port-node-function-0-TupleInt_if_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-0-TupleInt_if_-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt.if_(TRUE, ·, ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-TupleInt___init__", "data": { "label": "TupleInt(Int(3), ·)", "id": "function-0-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-0-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(3), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-2-TupleInt_filter", "data": { "label": "·.filter", "id": "function-2-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-2-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-2-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-4-TupleInt___add__", "data": { "label": "· + ·", "id": "function-4-TupleInt___add__" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-4-TupleInt___add__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-4-TupleInt___add__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "· + ·" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-TupleInt_length-0" }, { "id": "port-class-incoming-function-0-TupleInt_if_-0" }, { "id": "port-class-incoming-function-1-TupleInt_if_-1" }, { "id": "port-class-incoming-function-6-other-TupleInt_self-TupleInt_i-Int__Int_if___Int___lt___i__TupleInt_length_self____TupleInt___getitem___self_i___TupleInt___getitem___other__Int___sub___i__TupleInt_length_self____-0" }, { "id": "port-class-incoming-function-7-TupleInt___getitem__-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-27-0" }, { "id": "port-class-incoming-function-5-TupleInt___add__-1" }, { "id": "port-class-outgoing-function-0-TupleInt_if_-0" }, { "id": "port-class-outgoing-function-0-TupleInt_if_-1" }, { "id": "port-class-outgoing-function-0-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-2-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-2-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-4-TupleInt___add__-0" }, { "id": "port-class-outgoing-function-4-TupleInt___add__-1" } ], "edges": [ { "id": "edge-inner-function-0-TupleInt_if_-0", "data": { "isInner": true }, "sourceNode": "node-function-0-TupleInt_if_", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-0-TupleInt_if_-0" ], "targets": [ "port-class-outgoing-function-0-TupleInt_if_-0" ] }, { "id": "edge-inner-function-0-TupleInt_if_-1", "data": { "isInner": true }, "sourceNode": "node-function-0-TupleInt_if_", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-0-TupleInt_if_-1" ], "targets": [ "port-class-outgoing-function-0-TupleInt_if_-1" ] }, { "id": "edge-inner-function-0-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-0-TupleInt___init__", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-0-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-0-TupleInt___init__-0" ] }, { "id": "edge-inner-function-2-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_filter", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-2-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-2-TupleInt_filter-0" ] }, { "id": "edge-inner-function-2-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_filter", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-2-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-2-TupleInt_filter-1" ] }, { "id": "edge-inner-function-4-TupleInt___add__-0", "data": { "isInner": true }, "sourceNode": "node-function-4-TupleInt___add__", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-4-TupleInt___add__-0" ], "targets": [ "port-class-outgoing-function-4-TupleInt___add__-0" ] }, { "id": "edge-inner-function-4-TupleInt___add__-1", "data": { "isInner": true }, "sourceNode": "node-function-4-TupleInt___add__", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-4-TupleInt___add__-1" ], "targets": [ "port-class-outgoing-function-4-TupleInt___add__-1" ] } ] }, { "id": "class-TupleInt-25", "data": { "color": "#f1e2cc", "id": "TupleInt-25" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-TupleInt_if_", "data": { "label": "TupleInt.if_(TRUE, ·, ·)", "id": "function-1-TupleInt_if_" }, "width": 183.390625, "height": 26, "ports": [ { "id": "port-node-function-1-TupleInt_if_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-1-TupleInt_if_-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt.if_(TRUE, ·, ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-9-TupleInt___init__", "data": { "label": "TupleInt(Int(4), ·)", "id": "function-9-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-9-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(4), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-TupleInt_filter", "data": { "label": "·.filter", "id": "function-0-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-0-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-0-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-5-TupleInt___add__", "data": { "label": "· + ·", "id": "function-5-TupleInt___add__" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-5-TupleInt___add__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-5-TupleInt___add__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "· + ·" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-3-TupleInt_length-0" }, { "id": "port-class-incoming-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" }, { "id": "port-class-incoming-function-1-TupleInt_if_-0" }, { "id": "port-class-incoming-function-16-TupleInt___getitem__-0" }, { "id": "port-class-incoming-function-2-TupleInt_map-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-4-1" }, { "id": "port-class-outgoing-function-1-TupleInt_if_-0" }, { "id": "port-class-outgoing-function-1-TupleInt_if_-1" }, { "id": "port-class-outgoing-function-9-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-0-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-0-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-5-TupleInt___add__-0" }, { "id": "port-class-outgoing-function-5-TupleInt___add__-1" } ], "edges": [ { "id": "edge-inner-function-1-TupleInt_if_-0", "data": { "isInner": true }, "sourceNode": "node-function-1-TupleInt_if_", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-1-TupleInt_if_-0" ], "targets": [ "port-class-outgoing-function-1-TupleInt_if_-0" ] }, { "id": "edge-inner-function-1-TupleInt_if_-1", "data": { "isInner": true }, "sourceNode": "node-function-1-TupleInt_if_", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-1-TupleInt_if_-1" ], "targets": [ "port-class-outgoing-function-1-TupleInt_if_-1" ] }, { "id": "edge-inner-function-9-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-9-TupleInt___init__", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-9-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-9-TupleInt___init__-0" ] }, { "id": "edge-inner-function-0-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-0-TupleInt_filter", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-0-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-0-TupleInt_filter-0" ] }, { "id": "edge-inner-function-0-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-0-TupleInt_filter", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-0-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-0-TupleInt_filter-1" ] }, { "id": "edge-inner-function-5-TupleInt___add__-0", "data": { "isInner": true }, "sourceNode": "node-function-5-TupleInt___add__", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-5-TupleInt___add__-0" ], "targets": [ "port-class-outgoing-function-5-TupleInt___add__-0" ] }, { "id": "edge-inner-function-5-TupleInt___add__-1", "data": { "isInner": true }, "sourceNode": "node-function-5-TupleInt___add__", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-5-TupleInt___add__-1" ], "targets": [ "port-class-outgoing-function-5-TupleInt___add__-1" ] } ] }, { "id": "class-TupleInt-62", "data": { "color": "#f1e2cc", "id": "TupleInt-62" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-2-TupleInt_if_", "data": { "label": "TupleInt.if_(TRUE, ·, ·)", "id": "function-2-TupleInt_if_" }, "width": 183.390625, "height": 26, "ports": [ { "id": "port-node-function-2-TupleInt_if_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-2-TupleInt_if_-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt.if_(TRUE, ·, ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-15-TupleInt___init__", "data": { "label": "TupleInt(Int(2), ·)", "id": "function-15-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-15-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(2), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-5-TupleInt_filter", "data": { "label": "·.filter", "id": "function-5-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-5-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-5-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-6-TupleInt___add__", "data": { "label": "· + ·", "id": "function-6-TupleInt___add__" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-6-TupleInt___add__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-6-TupleInt___add__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "· + ·" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-5-TupleInt_length-0" }, { "id": "port-class-incoming-function-0-TupleInt_if_-1" }, { "id": "port-class-incoming-function-2-TupleInt_if_-0" }, { "id": "port-class-incoming-function-2-other-TupleInt_self-TupleInt_i-Int__Int_if___Int___lt___i__TupleInt_length_self____TupleInt___getitem___self_i___TupleInt___getitem___other__Int___sub___i__TupleInt_length_self____-0" }, { "id": "port-class-incoming-function-19-TupleInt___getitem__-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-15-0" }, { "id": "port-class-incoming-function-4-TupleInt___add__-1" }, { "id": "port-class-outgoing-function-2-TupleInt_if_-0" }, { "id": "port-class-outgoing-function-2-TupleInt_if_-1" }, { "id": "port-class-outgoing-function-15-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-5-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-5-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-6-TupleInt___add__-0" }, { "id": "port-class-outgoing-function-6-TupleInt___add__-1" } ], "edges": [ { "id": "edge-inner-function-2-TupleInt_if_-0", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_if_", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-2-TupleInt_if_-0" ], "targets": [ "port-class-outgoing-function-2-TupleInt_if_-0" ] }, { "id": "edge-inner-function-2-TupleInt_if_-1", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_if_", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-2-TupleInt_if_-1" ], "targets": [ "port-class-outgoing-function-2-TupleInt_if_-1" ] }, { "id": "edge-inner-function-15-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-15-TupleInt___init__", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-15-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-15-TupleInt___init__-0" ] }, { "id": "edge-inner-function-5-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-5-TupleInt_filter", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-5-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-5-TupleInt_filter-0" ] }, { "id": "edge-inner-function-5-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-5-TupleInt_filter", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-5-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-5-TupleInt_filter-1" ] }, { "id": "edge-inner-function-6-TupleInt___add__-0", "data": { "isInner": true }, "sourceNode": "node-function-6-TupleInt___add__", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-6-TupleInt___add__-0" ], "targets": [ "port-class-outgoing-function-6-TupleInt___add__-0" ] }, { "id": "edge-inner-function-6-TupleInt___add__-1", "data": { "isInner": true }, "sourceNode": "node-function-6-TupleInt___add__", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-6-TupleInt___add__-1" ], "targets": [ "port-class-outgoing-function-6-TupleInt___add__-1" ] } ] }, { "id": "class-TupleInt-84", "data": { "color": "#f1e2cc", "id": "TupleInt-84" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-3-TupleInt_if_", "data": { "label": "TupleInt.if_(TRUE, ·, ·)", "id": "function-3-TupleInt_if_" }, "width": 183.390625, "height": 26, "ports": [ { "id": "port-node-function-3-TupleInt_if_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-3-TupleInt_if_-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt.if_(TRUE, ·, ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-4-TupleInt___init__", "data": { "label": "TupleInt(Int(1), ·)", "id": "function-4-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-4-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(1), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-6-TupleInt_filter", "data": { "label": "·.filter", "id": "function-6-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-6-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-6-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-7-TupleInt___add__", "data": { "label": "· + ·", "id": "function-7-TupleInt___add__" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-7-TupleInt___add__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-7-TupleInt___add__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "· + ·" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-1-TupleInt_length-0" }, { "id": "port-class-incoming-function-2-TupleInt_if_-1" }, { "id": "port-class-incoming-function-3-TupleInt_if_-0" }, { "id": "port-class-incoming-function-7-TupleInt_if_-0" }, { "id": "port-class-incoming-function-7-other-TupleInt_self-TupleInt_i-Int__Int_if___Int___lt___i__TupleInt_length_self____TupleInt___getitem___self_i___TupleInt___getitem___other__Int___sub___i__TupleInt_length_self____-0" }, { "id": "port-class-incoming-function-11-TupleInt___getitem__-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-35-0" }, { "id": "port-class-incoming-function-6-TupleInt___add__-1" }, { "id": "port-class-outgoing-function-3-TupleInt_if_-0" }, { "id": "port-class-outgoing-function-3-TupleInt_if_-1" }, { "id": "port-class-outgoing-function-4-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-6-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-6-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-7-TupleInt___add__-0" }, { "id": "port-class-outgoing-function-7-TupleInt___add__-1" } ], "edges": [ { "id": "edge-inner-function-3-TupleInt_if_-0", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt_if_", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-3-TupleInt_if_-0" ], "targets": [ "port-class-outgoing-function-3-TupleInt_if_-0" ] }, { "id": "edge-inner-function-3-TupleInt_if_-1", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt_if_", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-3-TupleInt_if_-1" ], "targets": [ "port-class-outgoing-function-3-TupleInt_if_-1" ] }, { "id": "edge-inner-function-4-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-4-TupleInt___init__", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-4-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-4-TupleInt___init__-0" ] }, { "id": "edge-inner-function-6-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-6-TupleInt_filter", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-6-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-6-TupleInt_filter-0" ] }, { "id": "edge-inner-function-6-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-6-TupleInt_filter", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-6-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-6-TupleInt_filter-1" ] }, { "id": "edge-inner-function-7-TupleInt___add__-0", "data": { "isInner": true }, "sourceNode": "node-function-7-TupleInt___add__", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-7-TupleInt___add__-0" ], "targets": [ "port-class-outgoing-function-7-TupleInt___add__-0" ] }, { "id": "edge-inner-function-7-TupleInt___add__-1", "data": { "isInner": true }, "sourceNode": "node-function-7-TupleInt___add__", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-7-TupleInt___add__-1" ], "targets": [ "port-class-outgoing-function-7-TupleInt___add__-1" ] } ] }, { "id": "class-TupleInt-28", "data": { "color": "#f1e2cc", "id": "TupleInt-28" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-7-TupleInt_if_", "data": { "label": "TupleInt.if_(FALSE, ·, ·)", "id": "function-7-TupleInt_if_" }, "width": 190.625, "height": 26, "ports": [ { "id": "port-node-function-7-TupleInt_if_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-7-TupleInt_if_-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt.if_(FALSE, ·, ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-19-TupleInt___init__", "data": { "label": "TupleInt(Int(0), ·)", "id": "function-19-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-19-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(0), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-1-TupleInt_filter", "data": { "label": "·.filter", "id": "function-1-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-1-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-1-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-12-TupleInt_filter", "data": { "label": "·.filter", "id": "function-12-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-12-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-12-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-13-TupleInt_filter", "data": { "label": "·.filter", "id": "function-13-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-13-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-13-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-14-TupleInt_filter", "data": { "label": "·.filter", "id": "function-14-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-14-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-14-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-15-TupleInt_filter", "data": { "label": "·.filter", "id": "function-15-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-15-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-15-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-16-TupleInt_filter", "data": { "label": "·.filter", "id": "function-16-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-16-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-16-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-6-TupleInt_length-0" }, { "id": "port-class-incoming-function-3-TupleInt_if_-1" }, { "id": "port-class-incoming-function-7-TupleInt_if_-1" }, { "id": "port-class-incoming-function-4-other-TupleInt_self-TupleInt_i-Int__Int_if___Int___lt___i__TupleInt_length_self____TupleInt___getitem___self_i___TupleInt___getitem___other__Int___sub___i__TupleInt_length_self____-0" }, { "id": "port-class-incoming-function-2-TupleInt___getitem__-0" }, { "id": "port-class-incoming-function-3-TupleInt_map-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-52-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-3-1" }, { "id": "port-class-incoming-function-12-TupleInt_filter-0" }, { "id": "port-class-incoming-function-13-TupleInt_filter-0" }, { "id": "port-class-incoming-function-7-TupleInt___add__-1" }, { "id": "port-class-outgoing-function-7-TupleInt_if_-0" }, { "id": "port-class-outgoing-function-7-TupleInt_if_-1" }, { "id": "port-class-outgoing-function-19-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-1-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-1-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-12-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-12-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-13-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-13-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-14-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-14-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-15-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-15-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-16-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-16-TupleInt_filter-1" } ], "edges": [ { "id": "edge-inner-function-7-TupleInt_if_-0", "data": { "isInner": true }, "sourceNode": "node-function-7-TupleInt_if_", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-7-TupleInt_if_-0" ], "targets": [ "port-class-outgoing-function-7-TupleInt_if_-0" ] }, { "id": "edge-inner-function-7-TupleInt_if_-1", "data": { "isInner": true }, "sourceNode": "node-function-7-TupleInt_if_", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-7-TupleInt_if_-1" ], "targets": [ "port-class-outgoing-function-7-TupleInt_if_-1" ] }, { "id": "edge-inner-function-19-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-19-TupleInt___init__", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-19-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-19-TupleInt___init__-0" ] }, { "id": "edge-inner-function-1-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-1-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-1-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-1-TupleInt_filter-0" ] }, { "id": "edge-inner-function-1-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-1-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-1-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-1-TupleInt_filter-1" ] }, { "id": "edge-inner-function-12-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-12-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-12-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-12-TupleInt_filter-0" ] }, { "id": "edge-inner-function-12-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-12-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-12-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-12-TupleInt_filter-1" ] }, { "id": "edge-inner-function-13-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-13-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-13-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-13-TupleInt_filter-0" ] }, { "id": "edge-inner-function-13-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-13-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-13-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-13-TupleInt_filter-1" ] }, { "id": "edge-inner-function-14-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-14-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-14-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-14-TupleInt_filter-0" ] }, { "id": "edge-inner-function-14-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-14-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-14-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-14-TupleInt_filter-1" ] }, { "id": "edge-inner-function-15-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-15-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-15-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-15-TupleInt_filter-0" ] }, { "id": "edge-inner-function-15-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-15-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-15-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-15-TupleInt_filter-1" ] }, { "id": "edge-inner-function-16-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-16-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-16-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-16-TupleInt_filter-0" ] }, { "id": "edge-inner-function-16-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-16-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-16-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-16-TupleInt_filter-1" ] } ] }, { "id": "class-TupleInt-24", "data": { "color": "#f1e2cc", "id": "TupleInt-24" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-TupleInt_range", "data": { "label": "TupleInt.range(Int(4))", "id": "function-0-TupleInt_range" }, "width": 168.953125, "height": 26, "ports": [], "labels": [ { "text": "TupleInt.range(Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-10-TupleInt___init__", "data": { "label": "TupleInt(Int(4), lambda i: i)", "id": "function-10-TupleInt___init__" }, "width": 219.515625, "height": 26, "ports": [], "labels": [ { "text": "TupleInt(Int(4), lambda i: i)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-TupleInt_filter-0" }, { "id": "port-class-incoming-function-1-TupleInt_filter-0" } ], "edges": [] }, { "id": "class-NDArray-10", "data": { "color": "#b3cde3", "id": "NDArray-10" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-linalg_norm", "data": { "label": "linalg_norm", "id": "function-0-linalg_norm" }, "width": 89.484375, "height": 26, "ports": [ { "id": "port-node-function-0-linalg_norm-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-0-linalg_norm-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "linalg_norm" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-NDArray___init__", "data": { "label": "NDArray", "id": "function-0-NDArray___init__" }, "width": 60.578125, "height": 26, "ports": [ { "id": "port-node-function-0-NDArray___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "3" } }, { "id": "port-node-function-0-NDArray___init__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-0-NDArray___init__-2", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "NDArray" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-NDArray_shape-0" }, { "id": "port-class-outgoing-function-0-linalg_norm-0" }, { "id": "port-class-outgoing-function-0-linalg_norm-1" }, { "id": "port-class-outgoing-function-0-NDArray___init__-0" }, { "id": "port-class-outgoing-function-0-NDArray___init__-1" }, { "id": "port-class-outgoing-function-0-NDArray___init__-2" } ], "edges": [ { "id": "edge-inner-function-0-linalg_norm-0", "data": { "isInner": true }, "sourceNode": "node-function-0-linalg_norm", "targetNode": "class-NDArray-10", "sources": [ "port-node-function-0-linalg_norm-0" ], "targets": [ "port-class-outgoing-function-0-linalg_norm-0" ] }, { "id": "edge-inner-function-0-linalg_norm-1", "data": { "isInner": true }, "sourceNode": "node-function-0-linalg_norm", "targetNode": "class-NDArray-10", "sources": [ "port-node-function-0-linalg_norm-1" ], "targets": [ "port-class-outgoing-function-0-linalg_norm-1" ] }, { "id": "edge-inner-function-0-NDArray___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-0-NDArray___init__", "targetNode": "class-NDArray-10", "sources": [ "port-node-function-0-NDArray___init__-0" ], "targets": [ "port-class-outgoing-function-0-NDArray___init__-0" ] }, { "id": "edge-inner-function-0-NDArray___init__-1", "data": { "isInner": true }, "sourceNode": "node-function-0-NDArray___init__", "targetNode": "class-NDArray-10", "sources": [ "port-node-function-0-NDArray___init__-1" ], "targets": [ "port-class-outgoing-function-0-NDArray___init__-1" ] }, { "id": "edge-inner-function-0-NDArray___init__-2", "data": { "isInner": true }, "sourceNode": "node-function-0-NDArray___init__", "targetNode": "class-NDArray-10", "sources": [ "port-node-function-0-NDArray___init__-2" ], "targets": [ "port-class-outgoing-function-0-NDArray___init__-2" ] } ] }, { "id": "class-UnstableFn_Value_TupleInt-0", "data": { "color": "#fbb4ae", "id": "UnstableFn_Value_TupleInt-0" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Value_TupleInt-0", "data": { "label": "lambda X, reduce_axis, k: sqrt(LoopNestAPI.from_tuple(reduce_axis).unwrap().fold(lambda carry, i: carry + real(conj(X[IndexKey.multi_axis(MultiAxisIndexKey((i + k).length(), lambda i: MultiAxisIndexKeyItem.int((i + k)[i])))]) * X[IndexKey.multi_axis(MultiAxisIndexKey((i + k).length(), lambda i: MultiAxisIndexKeyItem.int((i + k)[i])))]), NDArray.scalar(Value.float(Float(0.0))))).to_value()", "id": "primitive-UnstableFn_Value_TupleInt-0" }, "width": 394, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Value_TupleInt-0-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-primitive-UnstableFn_Value_TupleInt-0-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda X, reduce_axis, k: sqrt(LoopNestAPI.from_tuple(reduce_axis).unwrap().fold(lambda carry, i: carry + real(conj(X[IndexKey.multi_axis(MultiAxisIndexKey((i + k).length(), lambda i: MultiAxisIndexKeyItem.int((i + k)[i])))]) * X[IndexKey.multi_axis(MultiAxisIndexKey((i + k).length(), lambda i: MultiAxisIndexKeyItem.int((i + k)[i])))]), NDArray.scalar(Value.float(Float(0.0))))).to_value()" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-NDArray___init__-2" }, { "id": "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Value_TupleInt-0-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Value_TupleInt-0", "targetNode": "class-UnstableFn_Value_TupleInt-0", "sources": [ "port-node-primitive-UnstableFn_Value_TupleInt-0-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Value_TupleInt-0-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Value_TupleInt-0", "targetNode": "class-UnstableFn_Value_TupleInt-0", "sources": [ "port-node-primitive-UnstableFn_Value_TupleInt-0-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-1" ] } ] }, { "id": "class-TupleInt-56", "data": { "color": "#f1e2cc", "id": "TupleInt-56" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-TupleInt_single", "data": { "label": "TupleInt.single(Int(4))", "id": "function-1-TupleInt_single" }, "width": 176.171875, "height": 26, "ports": [], "labels": [ { "text": "TupleInt.single(Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-12-TupleInt___init__", "data": { "label": "TupleInt(Int(1), ·)", "id": "function-12-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-12-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(1), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-2-TupleInt_length-0" }, { "id": "port-class-incoming-function-2-other-TupleInt_self-TupleInt_i-Int__Int_if___Int___lt___i__TupleInt_length_self____TupleInt___getitem___self_i___TupleInt___getitem___other__Int___sub___i__TupleInt_length_self____-1" }, { "id": "port-class-incoming-function-4-other-TupleInt_self-TupleInt_i-Int__Int_if___Int___lt___i__TupleInt_length_self____TupleInt___getitem___self_i___TupleInt___getitem___other__Int___sub___i__TupleInt_length_self____-1" }, { "id": "port-class-incoming-function-6-other-TupleInt_self-TupleInt_i-Int__Int_if___Int___lt___i__TupleInt_length_self____TupleInt___getitem___self_i___TupleInt___getitem___other__Int___sub___i__TupleInt_length_self____-1" }, { "id": "port-class-incoming-function-7-other-TupleInt_self-TupleInt_i-Int__Int_if___Int___lt___i__TupleInt_length_self____TupleInt___getitem___self_i___TupleInt___getitem___other__Int___sub___i__TupleInt_length_self____-1" }, { "id": "port-class-incoming-function-8-TupleInt___getitem__-0" }, { "id": "port-class-incoming-function-12-TupleInt___getitem__-0" }, { "id": "port-class-incoming-function-17-TupleInt___getitem__-0" }, { "id": "port-class-incoming-function-18-TupleInt___getitem__-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-15-1" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-52-1" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-27-1" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-35-1" }, { "id": "port-class-incoming-function-4-TupleInt___add__-0" }, { "id": "port-class-incoming-function-5-TupleInt___add__-0" }, { "id": "port-class-incoming-function-6-TupleInt___add__-0" }, { "id": "port-class-incoming-function-7-TupleInt___add__-0" }, { "id": "port-class-outgoing-function-12-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-12-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-12-TupleInt___init__", "targetNode": "class-TupleInt-56", "sources": [ "port-node-function-12-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-12-TupleInt___init__-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-9", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-9" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-9", "data": { "label": "lambda idx_fn, i: idx_fn(i + Int(1))(lambda idx_fn, i: idx_fn(i + Int(1))(lambda i: i))", "id": "primitive-UnstableFn_Int_Int-9" }, "width": 394, "height": 26, "ports": [], "labels": [ { "text": "lambda idx_fn, i: idx_fn(i + Int(1))(lambda idx_fn, i: idx_fn(i + Int(1))(lambda i: i))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-14-0" }, { "id": "port-class-incoming-function-1-idx_fn-UnstableFn_Int_Int_i-Int__unstable-app_idx_fn__Int___add___i__Int___init___1___-0" }, { "id": "port-class-incoming-function-3-idx_fn-UnstableFn_Int_Int_i-Int__unstable-app_idx_fn__Int___add___i__Int___init___1___-0" }, { "id": "port-class-incoming-function-17-TupleInt___init__-0" } ], "edges": [] }, { "id": "class-UnstableFn_Int_Int-14", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-14" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-14", "data": { "label": "lambda idx_fn, i: idx_fn(i + Int(1))", "id": "primitive-UnstableFn_Int_Int-14" }, "width": 270.09375, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-14-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda idx_fn, i: idx_fn(i + Int(1))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-idx_fn-UnstableFn_Int_Int_i-Int__unstable-app_idx_fn__Int___add___i__Int___init___1___-0" }, { "id": "port-class-incoming-function-2-TupleInt___init__-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-19-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-14-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-14-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-14", "targetNode": "class-UnstableFn_Int_Int-14", "sources": [ "port-node-primitive-UnstableFn_Int_Int-14-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-14-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-92", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-92" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-92", "data": { "label": "index_vec_int", "id": "primitive-UnstableFn_Int_Int-92" }, "width": 103.921875, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-92-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "index_vec_int" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-6-idx_fn-UnstableFn_Int_Int_i-Int__unstable-app_idx_fn__Int___add___i__Int___init___1___-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-93-0" }, { "id": "port-class-incoming-function-16-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-92-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-92-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-92", "targetNode": "class-UnstableFn_Int_Int-92", "sources": [ "port-node-primitive-UnstableFn_Int_Int-92-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-92-0" ] } ] }, { "id": "class-TupleInt-19", "data": { "color": "#f1e2cc", "id": "TupleInt-19" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-ShapeAPI_to_tuple", "data": { "label": "·.to_tuple", "id": "function-1-ShapeAPI_to_tuple" }, "width": 82.25, "height": 26, "ports": [ { "id": "port-node-function-1-ShapeAPI_to_tuple-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.to_tuple" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-3-TupleInt_map", "data": { "label": "·.map", "id": "function-3-TupleInt_map" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-3-TupleInt_map-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-3-TupleInt_map-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.map" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-18-TupleInt___init__", "data": { "label": "TupleInt(Int(0), ·)", "id": "function-18-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-18-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(0), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-2-ShapeAPI___init__-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Value_TupleInt-0-1" }, { "id": "port-class-outgoing-function-1-ShapeAPI_to_tuple-0" }, { "id": "port-class-outgoing-function-3-TupleInt_map-0" }, { "id": "port-class-outgoing-function-3-TupleInt_map-1" }, { "id": "port-class-outgoing-function-18-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-1-ShapeAPI_to_tuple-0", "data": { "isInner": true }, "sourceNode": "node-function-1-ShapeAPI_to_tuple", "targetNode": "class-TupleInt-19", "sources": [ "port-node-function-1-ShapeAPI_to_tuple-0" ], "targets": [ "port-class-outgoing-function-1-ShapeAPI_to_tuple-0" ] }, { "id": "edge-inner-function-3-TupleInt_map-0", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt_map", "targetNode": "class-TupleInt-19", "sources": [ "port-node-function-3-TupleInt_map-0" ], "targets": [ "port-class-outgoing-function-3-TupleInt_map-0" ] }, { "id": "edge-inner-function-3-TupleInt_map-1", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt_map", "targetNode": "class-TupleInt-19", "sources": [ "port-node-function-3-TupleInt_map-1" ], "targets": [ "port-class-outgoing-function-3-TupleInt_map-1" ] }, { "id": "edge-inner-function-18-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-18-TupleInt___init__", "targetNode": "class-TupleInt-19", "sources": [ "port-node-function-18-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-18-TupleInt___init__-0" ] } ] }, { "id": "class-TupleInt-11", "data": { "color": "#f1e2cc", "id": "TupleInt-11" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-2-ShapeAPI_to_tuple", "data": { "label": "·.to_tuple", "id": "function-2-ShapeAPI_to_tuple" }, "width": 82.25, "height": 26, "ports": [ { "id": "port-node-function-2-ShapeAPI_to_tuple-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.to_tuple" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-2-TupleInt_map", "data": { "label": "·.map", "id": "function-2-TupleInt_map" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-2-TupleInt_map-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-2-TupleInt_map-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.map" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-NDArray_shape", "data": { "label": "·.shape", "id": "function-0-NDArray_shape" }, "width": 60.578125, "height": 26, "ports": [ { "id": "port-node-function-0-NDArray_shape-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "·.shape" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-8-TupleInt___init__", "data": { "label": "TupleInt(Int(4), ·)", "id": "function-8-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-8-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(4), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-1-ShapeAPI___init__-0" }, { "id": "port-class-incoming-function-0-NDArray___init__-0" }, { "id": "port-class-incoming-function-15-TupleInt___getitem__-0" }, { "id": "port-class-outgoing-function-2-ShapeAPI_to_tuple-0" }, { "id": "port-class-outgoing-function-2-TupleInt_map-0" }, { "id": "port-class-outgoing-function-2-TupleInt_map-1" }, { "id": "port-class-outgoing-function-0-NDArray_shape-0" }, { "id": "port-class-outgoing-function-8-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-2-ShapeAPI_to_tuple-0", "data": { "isInner": true }, "sourceNode": "node-function-2-ShapeAPI_to_tuple", "targetNode": "class-TupleInt-11", "sources": [ "port-node-function-2-ShapeAPI_to_tuple-0" ], "targets": [ "port-class-outgoing-function-2-ShapeAPI_to_tuple-0" ] }, { "id": "edge-inner-function-2-TupleInt_map-0", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_map", "targetNode": "class-TupleInt-11", "sources": [ "port-node-function-2-TupleInt_map-0" ], "targets": [ "port-class-outgoing-function-2-TupleInt_map-0" ] }, { "id": "edge-inner-function-2-TupleInt_map-1", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_map", "targetNode": "class-TupleInt-11", "sources": [ "port-node-function-2-TupleInt_map-1" ], "targets": [ "port-class-outgoing-function-2-TupleInt_map-1" ] }, { "id": "edge-inner-function-0-NDArray_shape-0", "data": { "isInner": true }, "sourceNode": "node-function-0-NDArray_shape", "targetNode": "class-TupleInt-11", "sources": [ "port-node-function-0-NDArray_shape-0" ], "targets": [ "port-class-outgoing-function-0-NDArray_shape-0" ] }, { "id": "edge-inner-function-8-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-8-TupleInt___init__", "targetNode": "class-TupleInt-11", "sources": [ "port-node-function-8-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-8-TupleInt___init__-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-15", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-15" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-15", "data": { "label": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])", "id": "primitive-UnstableFn_Int_Int-15" }, "width": 394, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-15-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-15-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-15-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-15-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-15-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-15", "targetNode": "class-UnstableFn_Int_Int-15", "sources": [ "port-node-primitive-UnstableFn_Int_Int-15-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-15-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-15-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-15", "targetNode": "class-UnstableFn_Int_Int-15", "sources": [ "port-node-primitive-UnstableFn_Int_Int-15-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-15-1" ] } ] }, { "id": "class-TupleInt-41", "data": { "color": "#f1e2cc", "id": "TupleInt-41" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-TupleInt___init__", "data": { "label": "TupleInt(Int(3), lambda idx_fn, i: idx_fn(i + Int(1))(lambda i: i))", "id": "function-1-TupleInt___init__" }, "width": 394, "height": 26, "ports": [], "labels": [ { "text": "TupleInt(Int(3), lambda idx_fn, i: idx_fn(i + Int(1))(lambda i: i))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-2-TupleInt_filter-0" }, { "id": "port-class-incoming-function-16-TupleInt_filter-0" } ], "edges": [] }, { "id": "class-TupleInt-83", "data": { "color": "#f1e2cc", "id": "TupleInt-83" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-2-TupleInt___init__", "data": { "label": "TupleInt(Int(1), ·)", "id": "function-2-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-2-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(1), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-6-TupleInt_filter-0" }, { "id": "port-class-incoming-function-14-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-2-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-2-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt___init__", "targetNode": "class-TupleInt-83", "sources": [ "port-node-function-2-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-2-TupleInt___init__-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-52", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-52" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-52", "data": { "label": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])", "id": "primitive-UnstableFn_Int_Int-52" }, "width": 394, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-52-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-52-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-4-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-52-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-52-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-52-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-52", "targetNode": "class-UnstableFn_Int_Int-52", "sources": [ "port-node-primitive-UnstableFn_Int_Int-52-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-52-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-52-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-52", "targetNode": "class-UnstableFn_Int_Int-52", "sources": [ "port-node-primitive-UnstableFn_Int_Int-52-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-52-1" ] } ] }, { "id": "class-UnstableFn_Int_Int-4", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-4" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-4", "data": { "label": "lambda f, self, i: f(self[i])", "id": "primitive-UnstableFn_Int_Int-4" }, "width": 219.515625, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-4-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-4-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda f, self, i: f(self[i])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-8-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-4-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-4-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-4-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-4", "targetNode": "class-UnstableFn_Int_Int-4", "sources": [ "port-node-primitive-UnstableFn_Int_Int-4-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-4-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-4-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-4", "targetNode": "class-UnstableFn_Int_Int-4", "sources": [ "port-node-primitive-UnstableFn_Int_Int-4-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-4-1" ] } ] }, { "id": "class-UnstableFn_Int_Int-27", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-27" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-27", "data": { "label": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])", "id": "primitive-UnstableFn_Int_Int-27" }, "width": 394, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-27-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-27-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-9-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-27-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-27-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-27-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-27", "targetNode": "class-UnstableFn_Int_Int-27", "sources": [ "port-node-primitive-UnstableFn_Int_Int-27-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-27-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-27-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-27", "targetNode": "class-UnstableFn_Int_Int-27", "sources": [ "port-node-primitive-UnstableFn_Int_Int-27-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-27-1" ] } ] }, { "id": "class-UnstableFn_Int_Int-95", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-95" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-95", "data": { "label": "index_vec_int", "id": "primitive-UnstableFn_Int_Int-95" }, "width": 103.921875, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-95-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "index_vec_int" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-11-TupleInt___init__-0" }, { "id": "port-class-incoming-function-29-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-95-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-95-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-95", "targetNode": "class-UnstableFn_Int_Int-95", "sources": [ "port-node-primitive-UnstableFn_Int_Int-95-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-95-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-88", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-88" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-88", "data": { "label": "lambda i, _: i(Int(4))", "id": "primitive-UnstableFn_Int_Int-88" }, "width": 168.953125, "height": 26, "ports": [], "labels": [ { "text": "lambda i, _: i(Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-12-TupleInt___init__-0" } ], "edges": [] }, { "id": "class-UnstableFn_Int_Int-35", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-35" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-35", "data": { "label": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])", "id": "primitive-UnstableFn_Int_Int-35" }, "width": 394, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-35-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-35-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-15-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-35-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-35-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-35-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-35", "targetNode": "class-UnstableFn_Int_Int-35", "sources": [ "port-node-primitive-UnstableFn_Int_Int-35-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-35-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-35-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-35", "targetNode": "class-UnstableFn_Int_Int-35", "sources": [ "port-node-primitive-UnstableFn_Int_Int-35-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-35-1" ] } ] }, { "id": "class-TupleInt-57", "data": { "color": "#f1e2cc", "id": "TupleInt-57" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-17-TupleInt___init__", "data": { "label": "TupleInt(Int(2), ·)", "id": "function-17-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-17-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "TupleInt(Int(2), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-5-TupleInt_filter-0" }, { "id": "port-class-incoming-function-15-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-17-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-17-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-17-TupleInt___init__", "targetNode": "class-TupleInt-57", "sources": [ "port-node-function-17-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-17-TupleInt___init__-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-3", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-3" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-3", "data": { "label": "lambda f, self, i: f(self[i])", "id": "primitive-UnstableFn_Int_Int-3" }, "width": 219.515625, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-3-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-3-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda f, self, i: f(self[i])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-18-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-3-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-3-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-3-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-3", "targetNode": "class-UnstableFn_Int_Int-3", "sources": [ "port-node-primitive-UnstableFn_Int_Int-3-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-3-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-3-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-3", "targetNode": "class-UnstableFn_Int_Int-3", "sources": [ "port-node-primitive-UnstableFn_Int_Int-3-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-3-1" ] } ] }, { "id": "class-UnstableFn_Int_Int-19", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-19" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-19", "data": { "label": "lambda idx_fn, i: idx_fn(i + Int(1))", "id": "primitive-UnstableFn_Int_Int-19" }, "width": 270.09375, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-19-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda idx_fn, i: idx_fn(i + Int(1))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-19-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-19-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-19-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-19", "targetNode": "class-UnstableFn_Int_Int-19", "sources": [ "port-node-primitive-UnstableFn_Int_Int-19-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-19-0" ] } ] }, { "id": "class-UnstableFn_Boolean_Int-0", "data": { "color": "#b3cde3", "id": "UnstableFn_Boolean_Int-0" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Boolean_Int-0", "data": { "label": "lambda axis, i: ~axis.contains(i)", "id": "primitive-UnstableFn_Boolean_Int-0" }, "width": 248.421875, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Boolean_Int-0-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda axis, i: ~axis.contains(i)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-TupleInt_filter-1" }, { "id": "port-class-incoming-function-2-TupleInt_filter-1" }, { "id": "port-class-incoming-function-5-TupleInt_filter-1" }, { "id": "port-class-incoming-function-6-TupleInt_filter-1" }, { "id": "port-class-incoming-function-12-TupleInt_filter-1" }, { "id": "port-class-outgoing-primitive-UnstableFn_Boolean_Int-0-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Boolean_Int-0-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Boolean_Int-0", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-node-primitive-UnstableFn_Boolean_Int-0-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Boolean_Int-0-0" ] } ] }, { "id": "class-UnstableFn_Boolean_Int-1", "data": { "color": "#b3cde3", "id": "UnstableFn_Boolean_Int-1" }, "layoutOptions": { "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Boolean_Int-1", "data": { "label": "lambda axis, i: axis.contains(i)", "id": "primitive-UnstableFn_Boolean_Int-1" }, "width": 241.1875, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Boolean_Int-1-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } } ], "labels": [ { "text": "lambda axis, i: axis.contains(i)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-1-TupleInt_filter-1" }, { "id": "port-class-incoming-function-13-TupleInt_filter-1" }, { "id": "port-class-incoming-function-14-TupleInt_filter-1" }, { "id": "port-class-incoming-function-15-TupleInt_filter-1" }, { "id": "port-class-incoming-function-16-TupleInt_filter-1" }, { "id": "port-class-outgoing-primitive-UnstableFn_Boolean_Int-1-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Boolean_Int-1-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Boolean_Int-1", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-node-primitive-UnstableFn_Boolean_Int-1-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Boolean_Int-1-0" ] } ] } ], "edges": [ { "id": "edge-outer-function-0-NDArray_dtype-0", "data": { "isInner": false }, "sourceNode": "class-DType-17", "targetNode": "class-NDArray-6", "sources": [ "port-class-outgoing-function-0-NDArray_dtype-0" ], "targets": [ "port-class-incoming-function-0-NDArray_dtype-0" ] }, { "id": "edge-outer-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-TupleInt-13", "sources": [ "port-class-outgoing-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" ], "targets": [ "port-class-incoming-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" ] }, { "id": "edge-outer-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" ], "targets": [ "port-class-incoming-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" ] }, { "id": "edge-outer-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-TupleInt-25", "sources": [ "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" ], "targets": [ "port-class-incoming-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" ] }, { "id": "edge-outer-function-0-index_vec_int-0", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-Vec_Int-31", "sources": [ "port-class-outgoing-function-0-index_vec_int-0" ], "targets": [ "port-class-incoming-function-0-index_vec_int-0" ] }, { "id": "edge-outer-function-3-TupleInt___getitem__-0", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-TupleInt-13", "sources": [ "port-class-outgoing-function-3-TupleInt___getitem__-0" ], "targets": [ "port-class-incoming-function-3-TupleInt___getitem__-0" ] }, { "id": "edge-outer-function-15-TupleInt___getitem__-0", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-TupleInt-11", "sources": [ "port-class-outgoing-function-15-TupleInt___getitem__-0" ], "targets": [ "port-class-incoming-function-15-TupleInt___getitem__-0" ] }, { "id": "edge-outer-function-0-ShapeAPI_select-0", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-18", "targetNode": "class-ShapeAPI-14", "sources": [ "port-class-outgoing-function-0-ShapeAPI_select-0" ], "targets": [ "port-class-incoming-function-0-ShapeAPI_select-0" ] }, { "id": "edge-outer-function-0-ShapeAPI_select-1", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-18", "targetNode": "class-TupleInt-9", "sources": [ "port-class-outgoing-function-0-ShapeAPI_select-1" ], "targets": [ "port-class-incoming-function-0-ShapeAPI_select-1" ] }, { "id": "edge-outer-function-2-ShapeAPI___init__-0", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-18", "targetNode": "class-TupleInt-19", "sources": [ "port-class-outgoing-function-2-ShapeAPI___init__-0" ], "targets": [ "port-class-incoming-function-2-ShapeAPI___init__-0" ] }, { "id": "edge-outer-function-0-ShapeAPI___init__-0", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-14", "targetNode": "class-TupleInt-13", "sources": [ "port-class-outgoing-function-0-ShapeAPI___init__-0" ], "targets": [ "port-class-incoming-function-0-ShapeAPI___init__-0" ] }, { "id": "edge-outer-function-1-ShapeAPI___init__-0", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-15", "targetNode": "class-TupleInt-11", "sources": [ "port-class-outgoing-function-1-ShapeAPI___init__-0" ], "targets": [ "port-class-incoming-function-1-ShapeAPI___init__-0" ] }, { "id": "edge-outer-function-0-ShapeAPI_deselect-0", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-15", "targetNode": "class-ShapeAPI-14", "sources": [ "port-class-outgoing-function-0-ShapeAPI_deselect-0" ], "targets": [ "port-class-incoming-function-0-ShapeAPI_deselect-0" ] }, { "id": "edge-outer-function-0-ShapeAPI_deselect-1", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-15", "targetNode": "class-TupleInt-9", "sources": [ "port-class-outgoing-function-0-ShapeAPI_deselect-1" ], "targets": [ "port-class-incoming-function-0-ShapeAPI_deselect-1" ] }, { "id": "edge-outer-function-2-TupleInt_from_vec-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-13", "targetNode": "class-Vec_Int-31", "sources": [ "port-class-outgoing-function-2-TupleInt_from_vec-0" ], "targets": [ "port-class-incoming-function-2-TupleInt_from_vec-0" ] }, { "id": "edge-outer-function-1-NDArray_shape-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-13", "targetNode": "class-NDArray-6", "sources": [ "port-class-outgoing-function-1-NDArray_shape-0" ], "targets": [ "port-class-incoming-function-1-NDArray_shape-0" ] }, { "id": "edge-outer-function-11-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-13", "targetNode": "class-UnstableFn_Int_Int-95", "sources": [ "port-class-outgoing-function-11-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-11-TupleInt___init__-0" ] }, { "id": "edge-outer-function-29-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-13", "targetNode": "class-UnstableFn_Int_Int-95", "sources": [ "port-class-outgoing-function-29-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-29-TupleInt___init__-0" ] }, { "id": "edge-outer-function-3-TupleInt_from_vec-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-9", "targetNode": "class-Vec_Int-32", "sources": [ "port-class-outgoing-function-3-TupleInt_from_vec-0" ], "targets": [ "port-class-incoming-function-3-TupleInt_from_vec-0" ] }, { "id": "edge-outer-function-16-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-9", "targetNode": "class-UnstableFn_Int_Int-92", "sources": [ "port-class-outgoing-function-16-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-16-TupleInt___init__-0" ] }, { "id": "edge-outer-function-1-assume_shape-0", "data": { "isInner": false }, "sourceNode": "class-NDArray-6", "targetNode": "class-TupleInt-13", "sources": [ "port-class-outgoing-function-1-assume_shape-0" ], "targets": [ "port-class-incoming-function-1-assume_shape-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-2-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-2", "targetNode": "class-TupleInt-13", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-2-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-2-0" ] }, { "id": "edge-outer-function-0-TupleInt_if_-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-TupleInt-42", "sources": [ "port-class-outgoing-function-0-TupleInt_if_-0" ], "targets": [ "port-class-incoming-function-0-TupleInt_if_-0" ] }, { "id": "edge-outer-function-0-TupleInt_if_-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-TupleInt-62", "sources": [ "port-class-outgoing-function-0-TupleInt_if_-1" ], "targets": [ "port-class-incoming-function-0-TupleInt_if_-1" ] }, { "id": "edge-outer-function-0-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-UnstableFn_Int_Int-15", "sources": [ "port-class-outgoing-function-0-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-0-TupleInt___init__-0" ] }, { "id": "edge-outer-function-2-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-TupleInt-41", "sources": [ "port-class-outgoing-function-2-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-2-TupleInt_filter-0" ] }, { "id": "edge-outer-function-2-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-class-outgoing-function-2-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-2-TupleInt_filter-1" ] }, { "id": "edge-outer-function-4-TupleInt___add__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-function-4-TupleInt___add__-0" ], "targets": [ "port-class-incoming-function-4-TupleInt___add__-0" ] }, { "id": "edge-outer-function-4-TupleInt___add__-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-TupleInt-62", "sources": [ "port-class-outgoing-function-4-TupleInt___add__-1" ], "targets": [ "port-class-incoming-function-4-TupleInt___add__-1" ] }, { "id": "edge-outer-function-1-TupleInt_if_-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-TupleInt-25", "sources": [ "port-class-outgoing-function-1-TupleInt_if_-0" ], "targets": [ "port-class-incoming-function-1-TupleInt_if_-0" ] }, { "id": "edge-outer-function-1-TupleInt_if_-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-TupleInt-42", "sources": [ "port-class-outgoing-function-1-TupleInt_if_-1" ], "targets": [ "port-class-incoming-function-1-TupleInt_if_-1" ] }, { "id": "edge-outer-function-9-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-UnstableFn_Int_Int-27", "sources": [ "port-class-outgoing-function-9-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-9-TupleInt___init__-0" ] }, { "id": "edge-outer-function-0-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-TupleInt-24", "sources": [ "port-class-outgoing-function-0-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-0-TupleInt_filter-0" ] }, { "id": "edge-outer-function-0-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-class-outgoing-function-0-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-0-TupleInt_filter-1" ] }, { "id": "edge-outer-function-5-TupleInt___add__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-function-5-TupleInt___add__-0" ], "targets": [ "port-class-incoming-function-5-TupleInt___add__-0" ] }, { "id": "edge-outer-function-5-TupleInt___add__-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-TupleInt-42", "sources": [ "port-class-outgoing-function-5-TupleInt___add__-1" ], "targets": [ "port-class-incoming-function-5-TupleInt___add__-1" ] }, { "id": "edge-outer-function-2-TupleInt_if_-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-TupleInt-62", "sources": [ "port-class-outgoing-function-2-TupleInt_if_-0" ], "targets": [ "port-class-incoming-function-2-TupleInt_if_-0" ] }, { "id": "edge-outer-function-2-TupleInt_if_-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-TupleInt-84", "sources": [ "port-class-outgoing-function-2-TupleInt_if_-1" ], "targets": [ "port-class-incoming-function-2-TupleInt_if_-1" ] }, { "id": "edge-outer-function-15-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-UnstableFn_Int_Int-35", "sources": [ "port-class-outgoing-function-15-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-15-TupleInt___init__-0" ] }, { "id": "edge-outer-function-5-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-TupleInt-57", "sources": [ "port-class-outgoing-function-5-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-5-TupleInt_filter-0" ] }, { "id": "edge-outer-function-5-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-class-outgoing-function-5-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-5-TupleInt_filter-1" ] }, { "id": "edge-outer-function-6-TupleInt___add__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-function-6-TupleInt___add__-0" ], "targets": [ "port-class-incoming-function-6-TupleInt___add__-0" ] }, { "id": "edge-outer-function-6-TupleInt___add__-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-TupleInt-84", "sources": [ "port-class-outgoing-function-6-TupleInt___add__-1" ], "targets": [ "port-class-incoming-function-6-TupleInt___add__-1" ] }, { "id": "edge-outer-function-3-TupleInt_if_-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-TupleInt-84", "sources": [ "port-class-outgoing-function-3-TupleInt_if_-0" ], "targets": [ "port-class-incoming-function-3-TupleInt_if_-0" ] }, { "id": "edge-outer-function-3-TupleInt_if_-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-3-TupleInt_if_-1" ], "targets": [ "port-class-incoming-function-3-TupleInt_if_-1" ] }, { "id": "edge-outer-function-4-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-UnstableFn_Int_Int-52", "sources": [ "port-class-outgoing-function-4-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-4-TupleInt___init__-0" ] }, { "id": "edge-outer-function-6-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-TupleInt-83", "sources": [ "port-class-outgoing-function-6-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-6-TupleInt_filter-0" ] }, { "id": "edge-outer-function-6-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-class-outgoing-function-6-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-6-TupleInt_filter-1" ] }, { "id": "edge-outer-function-7-TupleInt___add__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-function-7-TupleInt___add__-0" ], "targets": [ "port-class-incoming-function-7-TupleInt___add__-0" ] }, { "id": "edge-outer-function-7-TupleInt___add__-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-7-TupleInt___add__-1" ], "targets": [ "port-class-incoming-function-7-TupleInt___add__-1" ] }, { "id": "edge-outer-function-7-TupleInt_if_-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-84", "sources": [ "port-class-outgoing-function-7-TupleInt_if_-0" ], "targets": [ "port-class-incoming-function-7-TupleInt_if_-0" ] }, { "id": "edge-outer-function-7-TupleInt_if_-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-7-TupleInt_if_-1" ], "targets": [ "port-class-incoming-function-7-TupleInt_if_-1" ] }, { "id": "edge-outer-function-19-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Int_Int-19", "sources": [ "port-class-outgoing-function-19-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-19-TupleInt___init__-0" ] }, { "id": "edge-outer-function-1-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-24", "sources": [ "port-class-outgoing-function-1-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-1-TupleInt_filter-0" ] }, { "id": "edge-outer-function-1-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-class-outgoing-function-1-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-1-TupleInt_filter-1" ] }, { "id": "edge-outer-function-12-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-12-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-12-TupleInt_filter-0" ] }, { "id": "edge-outer-function-12-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-class-outgoing-function-12-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-12-TupleInt_filter-1" ] }, { "id": "edge-outer-function-13-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-13-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-13-TupleInt_filter-0" ] }, { "id": "edge-outer-function-13-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-class-outgoing-function-13-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-13-TupleInt_filter-1" ] }, { "id": "edge-outer-function-14-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-83", "sources": [ "port-class-outgoing-function-14-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-14-TupleInt_filter-0" ] }, { "id": "edge-outer-function-14-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-class-outgoing-function-14-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-14-TupleInt_filter-1" ] }, { "id": "edge-outer-function-15-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-57", "sources": [ "port-class-outgoing-function-15-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-15-TupleInt_filter-0" ] }, { "id": "edge-outer-function-15-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-class-outgoing-function-15-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-15-TupleInt_filter-1" ] }, { "id": "edge-outer-function-16-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-41", "sources": [ "port-class-outgoing-function-16-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-16-TupleInt_filter-0" ] }, { "id": "edge-outer-function-16-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-class-outgoing-function-16-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-16-TupleInt_filter-1" ] }, { "id": "edge-outer-function-0-linalg_norm-0", "data": { "isInner": false }, "sourceNode": "class-NDArray-10", "targetNode": "class-NDArray-6", "sources": [ "port-class-outgoing-function-0-linalg_norm-0" ], "targets": [ "port-class-incoming-function-0-linalg_norm-0" ] }, { "id": "edge-outer-function-0-linalg_norm-1", "data": { "isInner": false }, "sourceNode": "class-NDArray-10", "targetNode": "class-TupleInt-9", "sources": [ "port-class-outgoing-function-0-linalg_norm-1" ], "targets": [ "port-class-incoming-function-0-linalg_norm-1" ] }, { "id": "edge-outer-function-0-NDArray___init__-0", "data": { "isInner": false }, "sourceNode": "class-NDArray-10", "targetNode": "class-TupleInt-11", "sources": [ "port-class-outgoing-function-0-NDArray___init__-0" ], "targets": [ "port-class-incoming-function-0-NDArray___init__-0" ] }, { "id": "edge-outer-function-0-NDArray___init__-1", "data": { "isInner": false }, "sourceNode": "class-NDArray-10", "targetNode": "class-DType-17", "sources": [ "port-class-outgoing-function-0-NDArray___init__-1" ], "targets": [ "port-class-incoming-function-0-NDArray___init__-1" ] }, { "id": "edge-outer-function-0-NDArray___init__-2", "data": { "isInner": false }, "sourceNode": "class-NDArray-10", "targetNode": "class-UnstableFn_Value_TupleInt-0", "sources": [ "port-class-outgoing-function-0-NDArray___init__-2" ], "targets": [ "port-class-incoming-function-0-NDArray___init__-2" ] }, { "id": "edge-outer-primitive-UnstableFn_Value_TupleInt-0-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Value_TupleInt-0", "targetNode": "class-NDArray-6", "sources": [ "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Value_TupleInt-0-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Value_TupleInt-0-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Value_TupleInt-0", "targetNode": "class-TupleInt-19", "sources": [ "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Value_TupleInt-0-1" ] }, { "id": "edge-outer-function-12-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-56", "targetNode": "class-UnstableFn_Int_Int-88", "sources": [ "port-class-outgoing-function-12-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-12-TupleInt___init__-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-14-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-14", "targetNode": "class-UnstableFn_Int_Int-9", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-14-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-14-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-92-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-92", "targetNode": "class-Vec_Int-32", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-92-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-92-0" ] }, { "id": "edge-outer-function-1-ShapeAPI_to_tuple-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-19", "targetNode": "class-ShapeAPI-18", "sources": [ "port-class-outgoing-function-1-ShapeAPI_to_tuple-0" ], "targets": [ "port-class-incoming-function-1-ShapeAPI_to_tuple-0" ] }, { "id": "edge-outer-function-3-TupleInt_map-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-19", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-3-TupleInt_map-0" ], "targets": [ "port-class-incoming-function-3-TupleInt_map-0" ] }, { "id": "edge-outer-function-3-TupleInt_map-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-19", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-class-outgoing-function-3-TupleInt_map-1" ], "targets": [ "port-class-incoming-function-3-TupleInt_map-1" ] }, { "id": "edge-outer-function-18-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-19", "targetNode": "class-UnstableFn_Int_Int-3", "sources": [ "port-class-outgoing-function-18-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-18-TupleInt___init__-0" ] }, { "id": "edge-outer-function-2-ShapeAPI_to_tuple-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-11", "targetNode": "class-ShapeAPI-15", "sources": [ "port-class-outgoing-function-2-ShapeAPI_to_tuple-0" ], "targets": [ "port-class-incoming-function-2-ShapeAPI_to_tuple-0" ] }, { "id": "edge-outer-function-2-TupleInt_map-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-11", "targetNode": "class-TupleInt-25", "sources": [ "port-class-outgoing-function-2-TupleInt_map-0" ], "targets": [ "port-class-incoming-function-2-TupleInt_map-0" ] }, { "id": "edge-outer-function-2-TupleInt_map-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-11", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-class-outgoing-function-2-TupleInt_map-1" ], "targets": [ "port-class-incoming-function-2-TupleInt_map-1" ] }, { "id": "edge-outer-function-0-NDArray_shape-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-11", "targetNode": "class-NDArray-10", "sources": [ "port-class-outgoing-function-0-NDArray_shape-0" ], "targets": [ "port-class-incoming-function-0-NDArray_shape-0" ] }, { "id": "edge-outer-function-8-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-11", "targetNode": "class-UnstableFn_Int_Int-4", "sources": [ "port-class-outgoing-function-8-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-8-TupleInt___init__-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-15-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-15", "targetNode": "class-TupleInt-62", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-15-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-15-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-15-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-15", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-15-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-15-1" ] }, { "id": "edge-outer-function-2-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-83", "targetNode": "class-UnstableFn_Int_Int-14", "sources": [ "port-class-outgoing-function-2-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-2-TupleInt___init__-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-52-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-52", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-52-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-52-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-52-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-52", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-52-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-52-1" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-4-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-4", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-4-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-4-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-4-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-4", "targetNode": "class-TupleInt-25", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-4-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-4-1" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-27-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-27", "targetNode": "class-TupleInt-42", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-27-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-27-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-27-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-27", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-27-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-27-1" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-95-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-95", "targetNode": "class-Vec_Int-31", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-95-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-95-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-35-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-35", "targetNode": "class-TupleInt-84", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-35-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-35-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-35-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-35", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-35-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-35-1" ] }, { "id": "edge-outer-function-17-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-57", "targetNode": "class-UnstableFn_Int_Int-9", "sources": [ "port-class-outgoing-function-17-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-17-TupleInt___init__-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-3-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-3", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-3-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-3-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-3-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-3", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-3-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-3-1" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-19-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-19", "targetNode": "class-UnstableFn_Int_Int-14", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-19-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-19-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Boolean_Int-0-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Boolean_Int-0", "targetNode": "class-TupleInt-9", "sources": [ "port-class-outgoing-primitive-UnstableFn_Boolean_Int-0-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Boolean_Int-0-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Boolean_Int-1-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Boolean_Int-1", "targetNode": "class-TupleInt-9", "sources": [ "port-class-outgoing-primitive-UnstableFn_Boolean_Int-1-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Boolean_Int-1-0" ] } ] } ```

I thought that by making separate ports for edge edge, and making two edges, it would fix this, but they seem to be combined for some reason. There was this existing issue on port's being overlapping in the layered layout but it was fixed previously https://github.com/eclipse/elk/issues/316

I am happy to make a new issue for this, if you would prefer instead of me re-opening this one.

saulshanabrook commented 3 weeks ago

I managed to resolve this by turning off "elk.hierarchyHandling": "INCLUDE_CHILDREN" and laying out each e-class separately. Sorry for all the noise here, hopefully this can be useful to someone else in the future.

Screenshot 2024-08-30 at 11 27 34 AM

JSON ```json { "id": "--eclipse-layout-kernel-root", "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.layered.nodePlacement.strategy": "NETWORK_SIMPLEX" }, "children": [ { "id": "class-right", "data": { "color": null, "id": "right" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-1", "data": { "label": "1", "id": "1" }, "width": 26, "height": 26, "ports": [], "labels": [ { "text": "1" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-/", "data": { "label": "/", "id": "/" }, "width": 26, "height": 26, "ports": [ { "id": "port-node-/-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-/-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "/" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-**-1" }, { "id": "port-class-incoming-<<-1" }, { "id": "port-class-outgoing-/-0" }, { "id": "port-class-outgoing-/-1" } ], "edges": [ { "id": "edge-inner-/-0", "data": { "isInner": true }, "sourceNode": "node-/", "targetNode": "class-right", "sources": [ "port-node-/-0" ], "targets": [ "port-class-outgoing-/-0" ] }, { "id": "edge-inner-/-1", "data": { "isInner": true }, "sourceNode": "node-/", "targetNode": "class-right", "sources": [ "port-node-/-1" ], "targets": [ "port-class-outgoing-/-1" ] } ] }, { "id": "class-bottom", "data": { "color": null, "id": "bottom" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-2", "data": { "label": "2", "id": "2" }, "width": 26, "height": 26, "ports": [], "labels": [ { "text": "2" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-/-0" }, { "id": "port-class-incoming-/-1" }, { "id": "port-class-incoming-//-1" }, { "id": "port-class-incoming-*-1" } ], "edges": [] }, { "id": "class-top", "data": { "color": null, "id": "top" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-//", "data": { "label": "/", "id": "//" }, "width": 26, "height": 26, "ports": [ { "id": "port-node-//-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-//-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "/" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-**", "data": { "label": "*", "id": "**" }, "width": 26, "height": 26, "ports": [ { "id": "port-node-**-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-**-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "*" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-a", "data": { "label": "a", "id": "a" }, "width": 26, "height": 26, "ports": [], "labels": [ { "text": "a" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-**-0" }, { "id": "port-class-incoming-*-0" }, { "id": "port-class-incoming-<<-0" }, { "id": "port-class-outgoing-//-0" }, { "id": "port-class-outgoing-//-1" }, { "id": "port-class-outgoing-**-0" }, { "id": "port-class-outgoing-**-1" } ], "edges": [ { "id": "edge-inner-//-0", "data": { "isInner": true }, "sourceNode": "node-//", "targetNode": "class-top", "sources": [ "port-node-//-0" ], "targets": [ "port-class-outgoing-//-0" ] }, { "id": "edge-inner-//-1", "data": { "isInner": true }, "sourceNode": "node-//", "targetNode": "class-top", "sources": [ "port-node-//-1" ], "targets": [ "port-class-outgoing-//-1" ] }, { "id": "edge-inner-**-0", "data": { "isInner": true }, "sourceNode": "node-**", "targetNode": "class-top", "sources": [ "port-node-**-0" ], "targets": [ "port-class-outgoing-**-0" ] }, { "id": "edge-inner-**-1", "data": { "isInner": true }, "sourceNode": "node-**", "targetNode": "class-top", "sources": [ "port-node-**-1" ], "targets": [ "port-class-outgoing-**-1" ] } ] }, { "id": "class-middle", "data": { "color": null, "id": "middle" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-*", "data": { "label": "*", "id": "*" }, "width": 26, "height": 26, "ports": [ { "id": "port-node-*-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-*-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "*" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-<<", "data": { "label": "<<", "id": "<<" }, "width": 26, "height": 26, "ports": [ { "id": "port-node-<<-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-<<-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "<<" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-//-0" }, { "id": "port-class-outgoing-*-0" }, { "id": "port-class-outgoing-*-1" }, { "id": "port-class-outgoing-<<-0" }, { "id": "port-class-outgoing-<<-1" } ], "edges": [ { "id": "edge-inner-*-0", "data": { "isInner": true }, "sourceNode": "node-*", "targetNode": "class-middle", "sources": [ "port-node-*-0" ], "targets": [ "port-class-outgoing-*-0" ] }, { "id": "edge-inner-*-1", "data": { "isInner": true }, "sourceNode": "node-*", "targetNode": "class-middle", "sources": [ "port-node-*-1" ], "targets": [ "port-class-outgoing-*-1" ] }, { "id": "edge-inner-<<-0", "data": { "isInner": true }, "sourceNode": "node-<<", "targetNode": "class-middle", "sources": [ "port-node-<<-0" ], "targets": [ "port-class-outgoing-<<-0" ] }, { "id": "edge-inner-<<-1", "data": { "isInner": true }, "sourceNode": "node-<<", "targetNode": "class-middle", "sources": [ "port-node-<<-1" ], "targets": [ "port-class-outgoing-<<-1" ] } ] } ], "edges": [ { "id": "edge-outer-/-0", "data": { "isInner": false }, "sourceNode": "class-right", "targetNode": "class-bottom", "sources": [ "port-class-outgoing-/-0" ], "targets": [ "port-class-incoming-/-0" ] }, { "id": "edge-outer-/-1", "data": { "isInner": false }, "sourceNode": "class-right", "targetNode": "class-bottom", "sources": [ "port-class-outgoing-/-1" ], "targets": [ "port-class-incoming-/-1" ] }, { "id": "edge-outer-//-0", "data": { "isInner": false }, "sourceNode": "class-top", "targetNode": "class-middle", "sources": [ "port-class-outgoing-//-0" ], "targets": [ "port-class-incoming-//-0" ] }, { "id": "edge-outer-//-1", "data": { "isInner": false }, "sourceNode": "class-top", "targetNode": "class-bottom", "sources": [ "port-class-outgoing-//-1" ], "targets": [ "port-class-incoming-//-1" ] }, { "id": "edge-outer-**-0", "data": { "isInner": false }, "sourceNode": "class-top", "targetNode": "class-top", "sources": [ "port-class-outgoing-**-0" ], "targets": [ "port-class-incoming-**-0" ] }, { "id": "edge-outer-**-1", "data": { "isInner": false }, "sourceNode": "class-top", "targetNode": "class-right", "sources": [ "port-class-outgoing-**-1" ], "targets": [ "port-class-incoming-**-1" ] }, { "id": "edge-outer-*-0", "data": { "isInner": false }, "sourceNode": "class-middle", "targetNode": "class-top", "sources": [ "port-class-outgoing-*-0" ], "targets": [ "port-class-incoming-*-0" ] }, { "id": "edge-outer-*-1", "data": { "isInner": false }, "sourceNode": "class-middle", "targetNode": "class-bottom", "sources": [ "port-class-outgoing-*-1" ], "targets": [ "port-class-incoming-*-1" ] }, { "id": "edge-outer-<<-0", "data": { "isInner": false }, "sourceNode": "class-middle", "targetNode": "class-top", "sources": [ "port-class-outgoing-<<-0" ], "targets": [ "port-class-incoming-<<-0" ] }, { "id": "edge-outer-<<-1", "data": { "isInner": false }, "sourceNode": "class-middle", "targetNode": "class-right", "sources": [ "port-class-outgoing-<<-1" ], "targets": [ "port-class-incoming-<<-1" ] } ] } ```

Screenshot 2024-08-30 at 11 28 59 AM

Details ```json { "id": "--eclipse-layout-kernel-root", "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.layered.nodePlacement.strategy": "NETWORK_SIMPLEX" }, "children": [ { "id": "class-DType-17", "data": { "color": "#decbe4", "id": "DType-17" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-NDArray_dtype", "data": { "label": "·.dtype", "id": "function-0-NDArray_dtype" }, "width": 60.578125, "height": 26, "ports": [ { "id": "port-node-function-0-NDArray_dtype-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.dtype" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-2-NDArray_dtype", "data": { "label": "NDArray.var(\"X\").dtype", "id": "function-2-NDArray_dtype" }, "width": 168.953125, "height": 26, "ports": [], "labels": [ { "text": "NDArray.var(\"X\").dtype" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-NDArray___init__-1" }, { "id": "port-class-outgoing-function-0-NDArray_dtype-0" } ], "edges": [ { "id": "edge-inner-function-0-NDArray_dtype-0", "data": { "isInner": true }, "sourceNode": "node-function-0-NDArray_dtype", "targetNode": "class-DType-17", "sources": [ "port-node-function-0-NDArray_dtype-0" ], "targets": [ "port-class-outgoing-function-0-NDArray_dtype-0" ] } ] }, { "id": "class-Int-12", "data": { "color": "#cccccc", "id": "Int-12" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_", "data": { "label": "lambda dims, i: dims[i](·, Int(4))", "id": "function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_" }, "width": 255.640625, "height": 26, "ports": [ { "id": "port-node-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda dims, i: dims[i](·, Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__", "data": { "label": "lambda f, self, i: f(self[i])(·, ·, Int(2))", "id": "function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__" }, "width": 320.671875, "height": 26, "ports": [ { "id": "port-node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda f, self, i: f(self[i])(·, ·, Int(2))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-index_vec_int", "data": { "label": "index_vec_int(·, Int(4))", "id": "function-0-index_vec_int" }, "width": 183.390625, "height": 26, "ports": [ { "id": "port-node-function-0-index_vec_int-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "index_vec_int(·, Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-3-TupleInt___getitem__", "data": { "label": "·[Int(4)]", "id": "function-3-TupleInt___getitem__" }, "width": 75.03125, "height": 26, "ports": [ { "id": "port-node-function-3-TupleInt___getitem__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·[Int(4)]" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-15-TupleInt___getitem__", "data": { "label": "·[Int(2)]", "id": "function-15-TupleInt___getitem__" }, "width": 75.03125, "height": 26, "ports": [ { "id": "port-node-function-15-TupleInt___getitem__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·[Int(2)]" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-outgoing-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" }, { "id": "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" }, { "id": "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" }, { "id": "port-class-outgoing-function-0-index_vec_int-0" }, { "id": "port-class-outgoing-function-3-TupleInt___getitem__-0" }, { "id": "port-class-outgoing-function-15-TupleInt___getitem__-0" } ], "edges": [ { "id": "edge-inner-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0", "data": { "isInner": true }, "sourceNode": "node-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_", "targetNode": "class-Int-12", "sources": [ "port-node-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" ], "targets": [ "port-class-outgoing-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" ] }, { "id": "edge-inner-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0", "data": { "isInner": true }, "sourceNode": "node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__", "targetNode": "class-Int-12", "sources": [ "port-node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" ], "targets": [ "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" ] }, { "id": "edge-inner-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1", "data": { "isInner": true }, "sourceNode": "node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__", "targetNode": "class-Int-12", "sources": [ "port-node-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" ], "targets": [ "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" ] }, { "id": "edge-inner-function-0-index_vec_int-0", "data": { "isInner": true }, "sourceNode": "node-function-0-index_vec_int", "targetNode": "class-Int-12", "sources": [ "port-node-function-0-index_vec_int-0" ], "targets": [ "port-class-outgoing-function-0-index_vec_int-0" ] }, { "id": "edge-inner-function-3-TupleInt___getitem__-0", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt___getitem__", "targetNode": "class-Int-12", "sources": [ "port-node-function-3-TupleInt___getitem__-0" ], "targets": [ "port-class-outgoing-function-3-TupleInt___getitem__-0" ] }, { "id": "edge-inner-function-15-TupleInt___getitem__-0", "data": { "isInner": true }, "sourceNode": "node-function-15-TupleInt___getitem__", "targetNode": "class-Int-12", "sources": [ "port-node-function-15-TupleInt___getitem__-0" ], "targets": [ "port-class-outgoing-function-15-TupleInt___getitem__-0" ] } ] }, { "id": "class-ShapeAPI-18", "data": { "color": "#fed9a6", "id": "ShapeAPI-18" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-ShapeAPI_select", "data": { "label": "·.select", "id": "function-0-ShapeAPI_select" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-0-ShapeAPI_select-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-0-ShapeAPI_select-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.select" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-2-ShapeAPI___init__", "data": { "label": "ShapeAPI", "id": "function-2-ShapeAPI___init__" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-2-ShapeAPI___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "ShapeAPI" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-1-ShapeAPI_to_tuple-0" }, { "id": "port-class-outgoing-function-0-ShapeAPI_select-0" }, { "id": "port-class-outgoing-function-0-ShapeAPI_select-1" }, { "id": "port-class-outgoing-function-2-ShapeAPI___init__-0" } ], "edges": [ { "id": "edge-inner-function-0-ShapeAPI_select-0", "data": { "isInner": true }, "sourceNode": "node-function-0-ShapeAPI_select", "targetNode": "class-ShapeAPI-18", "sources": [ "port-node-function-0-ShapeAPI_select-0" ], "targets": [ "port-class-outgoing-function-0-ShapeAPI_select-0" ] }, { "id": "edge-inner-function-0-ShapeAPI_select-1", "data": { "isInner": true }, "sourceNode": "node-function-0-ShapeAPI_select", "targetNode": "class-ShapeAPI-18", "sources": [ "port-node-function-0-ShapeAPI_select-1" ], "targets": [ "port-class-outgoing-function-0-ShapeAPI_select-1" ] }, { "id": "edge-inner-function-2-ShapeAPI___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-2-ShapeAPI___init__", "targetNode": "class-ShapeAPI-18", "sources": [ "port-node-function-2-ShapeAPI___init__-0" ], "targets": [ "port-class-outgoing-function-2-ShapeAPI___init__-0" ] } ] }, { "id": "class-ShapeAPI-14", "data": { "color": "#fed9a6", "id": "ShapeAPI-14" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-ShapeAPI___init__", "data": { "label": "ShapeAPI", "id": "function-0-ShapeAPI___init__" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-0-ShapeAPI___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "ShapeAPI" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-ShapeAPI_select-0" }, { "id": "port-class-incoming-function-0-ShapeAPI_deselect-0" }, { "id": "port-class-outgoing-function-0-ShapeAPI___init__-0" } ], "edges": [ { "id": "edge-inner-function-0-ShapeAPI___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-0-ShapeAPI___init__", "targetNode": "class-ShapeAPI-14", "sources": [ "port-node-function-0-ShapeAPI___init__-0" ], "targets": [ "port-class-outgoing-function-0-ShapeAPI___init__-0" ] } ] }, { "id": "class-ShapeAPI-15", "data": { "color": "#fed9a6", "id": "ShapeAPI-15" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-ShapeAPI___init__", "data": { "label": "ShapeAPI", "id": "function-1-ShapeAPI___init__" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-1-ShapeAPI___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "ShapeAPI" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-ShapeAPI_deselect", "data": { "label": "·.deselect", "id": "function-0-ShapeAPI_deselect" }, "width": 82.25, "height": 26, "ports": [ { "id": "port-node-function-0-ShapeAPI_deselect-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-0-ShapeAPI_deselect-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.deselect" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-2-ShapeAPI_to_tuple-0" }, { "id": "port-class-outgoing-function-1-ShapeAPI___init__-0" }, { "id": "port-class-outgoing-function-0-ShapeAPI_deselect-0" }, { "id": "port-class-outgoing-function-0-ShapeAPI_deselect-1" } ], "edges": [ { "id": "edge-inner-function-1-ShapeAPI___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-1-ShapeAPI___init__", "targetNode": "class-ShapeAPI-15", "sources": [ "port-node-function-1-ShapeAPI___init__-0" ], "targets": [ "port-class-outgoing-function-1-ShapeAPI___init__-0" ] }, { "id": "edge-inner-function-0-ShapeAPI_deselect-0", "data": { "isInner": true }, "sourceNode": "node-function-0-ShapeAPI_deselect", "targetNode": "class-ShapeAPI-15", "sources": [ "port-node-function-0-ShapeAPI_deselect-0" ], "targets": [ "port-class-outgoing-function-0-ShapeAPI_deselect-0" ] }, { "id": "edge-inner-function-0-ShapeAPI_deselect-1", "data": { "isInner": true }, "sourceNode": "node-function-0-ShapeAPI_deselect", "targetNode": "class-ShapeAPI-15", "sources": [ "port-node-function-0-ShapeAPI_deselect-1" ], "targets": [ "port-class-outgoing-function-0-ShapeAPI_deselect-1" ] } ] }, { "id": "class-Vec_Int-31", "data": { "color": "#ccebc5", "id": "Vec_Int-31" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-Vec_Int-31", "data": { "label": "Vec(Int(3), Int(2), Int(3), Int(4))", "id": "primitive-Vec_Int-31" }, "width": 262.875, "height": 26, "ports": [], "labels": [ { "text": "Vec(Int(3), Int(2), Int(3), Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-index_vec_int-0" }, { "id": "port-class-incoming-function-2-TupleInt_from_vec-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-95-0" } ], "edges": [] }, { "id": "class-TupleInt-13", "data": { "color": "#f1e2cc", "id": "TupleInt-13" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-2-TupleInt_from_vec", "data": { "label": "TupleInt.from_vec", "id": "function-2-TupleInt_from_vec" }, "width": 132.828125, "height": 26, "ports": [ { "id": "port-node-function-2-TupleInt_from_vec-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt.from_vec" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-1-NDArray_shape", "data": { "label": "·.shape", "id": "function-1-NDArray_shape" }, "width": 60.578125, "height": 26, "ports": [ { "id": "port-node-function-1-NDArray_shape-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.shape" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-11-TupleInt___init__", "data": { "label": "TupleInt(Int(4), ·)", "id": "function-11-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-11-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(4), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-29-TupleInt___init__", "data": { "label": "TupleInt(Int(4), ·)", "id": "function-29-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-29-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(4), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" }, { "id": "port-class-incoming-function-3-TupleInt___getitem__-0" }, { "id": "port-class-incoming-function-0-ShapeAPI___init__-0" }, { "id": "port-class-incoming-function-1-assume_shape-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-2-0" }, { "id": "port-class-outgoing-function-2-TupleInt_from_vec-0" }, { "id": "port-class-outgoing-function-1-NDArray_shape-0" }, { "id": "port-class-outgoing-function-11-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-29-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-2-TupleInt_from_vec-0", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_from_vec", "targetNode": "class-TupleInt-13", "sources": [ "port-node-function-2-TupleInt_from_vec-0" ], "targets": [ "port-class-outgoing-function-2-TupleInt_from_vec-0" ] }, { "id": "edge-inner-function-1-NDArray_shape-0", "data": { "isInner": true }, "sourceNode": "node-function-1-NDArray_shape", "targetNode": "class-TupleInt-13", "sources": [ "port-node-function-1-NDArray_shape-0" ], "targets": [ "port-class-outgoing-function-1-NDArray_shape-0" ] }, { "id": "edge-inner-function-11-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-11-TupleInt___init__", "targetNode": "class-TupleInt-13", "sources": [ "port-node-function-11-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-11-TupleInt___init__-0" ] }, { "id": "edge-inner-function-29-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-29-TupleInt___init__", "targetNode": "class-TupleInt-13", "sources": [ "port-node-function-29-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-29-TupleInt___init__-0" ] } ] }, { "id": "class-Vec_Int-32", "data": { "color": "#ccebc5", "id": "Vec_Int-32" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-Vec_Int-32", "data": { "label": "Vec(Int(0), Int(1))", "id": "primitive-Vec_Int-32" }, "width": 147.28125, "height": 26, "ports": [], "labels": [ { "text": "Vec(Int(0), Int(1))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-3-TupleInt_from_vec-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-92-0" } ], "edges": [] }, { "id": "class-TupleInt-9", "data": { "color": "#f1e2cc", "id": "TupleInt-9" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-3-TupleInt_from_vec", "data": { "label": "TupleInt.from_vec", "id": "function-3-TupleInt_from_vec" }, "width": 132.828125, "height": 26, "ports": [ { "id": "port-node-function-3-TupleInt_from_vec-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt.from_vec" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-16-TupleInt___init__", "data": { "label": "TupleInt(Int(2), ·)", "id": "function-16-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-16-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(2), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-ShapeAPI_select-1" }, { "id": "port-class-incoming-function-0-ShapeAPI_deselect-1" }, { "id": "port-class-incoming-function-0-linalg_norm-1" }, { "id": "port-class-incoming-primitive-UnstableFn_Boolean_Int-0-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Boolean_Int-1-0" }, { "id": "port-class-outgoing-function-3-TupleInt_from_vec-0" }, { "id": "port-class-outgoing-function-16-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-3-TupleInt_from_vec-0", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt_from_vec", "targetNode": "class-TupleInt-9", "sources": [ "port-node-function-3-TupleInt_from_vec-0" ], "targets": [ "port-class-outgoing-function-3-TupleInt_from_vec-0" ] }, { "id": "edge-inner-function-16-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-16-TupleInt___init__", "targetNode": "class-TupleInt-9", "sources": [ "port-node-function-16-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-16-TupleInt___init__-0" ] } ] }, { "id": "class-NDArray-6", "data": { "color": "#b3cde3", "id": "NDArray-6" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-assume_shape", "data": { "label": "assume_shape(NDArray.var(\"X\"), ·)", "id": "function-1-assume_shape" }, "width": 248.421875, "height": 26, "ports": [ { "id": "port-node-function-1-assume_shape-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "assume_shape(NDArray.var(\"X\"), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-NDArray_dtype-0" }, { "id": "port-class-incoming-function-1-NDArray_shape-0" }, { "id": "port-class-incoming-function-0-linalg_norm-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Value_TupleInt-0-0" }, { "id": "port-class-outgoing-function-1-assume_shape-0" } ], "edges": [ { "id": "edge-inner-function-1-assume_shape-0", "data": { "isInner": true }, "sourceNode": "node-function-1-assume_shape", "targetNode": "class-NDArray-6", "sources": [ "port-node-function-1-assume_shape-0" ], "targets": [ "port-class-outgoing-function-1-assume_shape-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-2", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-2" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-2", "data": { "label": "lambda dims, i: dims[i]", "id": "primitive-UnstableFn_Int_Int-2" }, "width": 176.171875, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-2-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda dims, i: dims[i]" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" }, { "id": "port-class-incoming-function-3-TupleInt_map-1" }, { "id": "port-class-incoming-function-2-TupleInt_map-1" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-4-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-3-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-2-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-2-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-2", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-node-primitive-UnstableFn_Int_Int-2-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-2-0" ] } ] }, { "id": "class-TupleInt-42", "data": { "color": "#f1e2cc", "id": "TupleInt-42" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-TupleInt_if_", "data": { "label": "TupleInt.if_(TRUE, ·, ·)", "id": "function-0-TupleInt_if_" }, "width": 183.390625, "height": 26, "ports": [ { "id": "port-node-function-0-TupleInt_if_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-0-TupleInt_if_-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt.if_(TRUE, ·, ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-TupleInt___init__", "data": { "label": "TupleInt(Int(3), ·)", "id": "function-0-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-0-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(3), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-2-TupleInt_filter", "data": { "label": "·.filter", "id": "function-2-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-2-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-2-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-4-TupleInt___add__", "data": { "label": "· + ·", "id": "function-4-TupleInt___add__" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-4-TupleInt___add__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-4-TupleInt___add__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "· + ·" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-TupleInt_if_-0" }, { "id": "port-class-incoming-function-1-TupleInt_if_-1" }, { "id": "port-class-incoming-function-5-TupleInt___add__-1" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-27-0" }, { "id": "port-class-outgoing-function-0-TupleInt_if_-0" }, { "id": "port-class-outgoing-function-0-TupleInt_if_-1" }, { "id": "port-class-outgoing-function-0-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-2-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-2-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-4-TupleInt___add__-0" }, { "id": "port-class-outgoing-function-4-TupleInt___add__-1" } ], "edges": [ { "id": "edge-inner-function-0-TupleInt_if_-0", "data": { "isInner": true }, "sourceNode": "node-function-0-TupleInt_if_", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-0-TupleInt_if_-0" ], "targets": [ "port-class-outgoing-function-0-TupleInt_if_-0" ] }, { "id": "edge-inner-function-0-TupleInt_if_-1", "data": { "isInner": true }, "sourceNode": "node-function-0-TupleInt_if_", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-0-TupleInt_if_-1" ], "targets": [ "port-class-outgoing-function-0-TupleInt_if_-1" ] }, { "id": "edge-inner-function-0-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-0-TupleInt___init__", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-0-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-0-TupleInt___init__-0" ] }, { "id": "edge-inner-function-2-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_filter", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-2-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-2-TupleInt_filter-0" ] }, { "id": "edge-inner-function-2-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_filter", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-2-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-2-TupleInt_filter-1" ] }, { "id": "edge-inner-function-4-TupleInt___add__-0", "data": { "isInner": true }, "sourceNode": "node-function-4-TupleInt___add__", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-4-TupleInt___add__-0" ], "targets": [ "port-class-outgoing-function-4-TupleInt___add__-0" ] }, { "id": "edge-inner-function-4-TupleInt___add__-1", "data": { "isInner": true }, "sourceNode": "node-function-4-TupleInt___add__", "targetNode": "class-TupleInt-42", "sources": [ "port-node-function-4-TupleInt___add__-1" ], "targets": [ "port-class-outgoing-function-4-TupleInt___add__-1" ] } ] }, { "id": "class-TupleInt-25", "data": { "color": "#f1e2cc", "id": "TupleInt-25" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-TupleInt_if_", "data": { "label": "TupleInt.if_(TRUE, ·, ·)", "id": "function-1-TupleInt_if_" }, "width": 183.390625, "height": 26, "ports": [ { "id": "port-node-function-1-TupleInt_if_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-1-TupleInt_if_-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt.if_(TRUE, ·, ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-9-TupleInt___init__", "data": { "label": "TupleInt(Int(4), ·)", "id": "function-9-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-9-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(4), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-TupleInt_filter", "data": { "label": "·.filter", "id": "function-0-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-0-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-0-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-5-TupleInt___add__", "data": { "label": "· + ·", "id": "function-5-TupleInt___add__" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-5-TupleInt___add__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-5-TupleInt___add__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "· + ·" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" }, { "id": "port-class-incoming-function-1-TupleInt_if_-0" }, { "id": "port-class-incoming-function-2-TupleInt_map-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-4-1" }, { "id": "port-class-outgoing-function-1-TupleInt_if_-0" }, { "id": "port-class-outgoing-function-1-TupleInt_if_-1" }, { "id": "port-class-outgoing-function-9-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-0-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-0-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-5-TupleInt___add__-0" }, { "id": "port-class-outgoing-function-5-TupleInt___add__-1" } ], "edges": [ { "id": "edge-inner-function-1-TupleInt_if_-0", "data": { "isInner": true }, "sourceNode": "node-function-1-TupleInt_if_", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-1-TupleInt_if_-0" ], "targets": [ "port-class-outgoing-function-1-TupleInt_if_-0" ] }, { "id": "edge-inner-function-1-TupleInt_if_-1", "data": { "isInner": true }, "sourceNode": "node-function-1-TupleInt_if_", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-1-TupleInt_if_-1" ], "targets": [ "port-class-outgoing-function-1-TupleInt_if_-1" ] }, { "id": "edge-inner-function-9-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-9-TupleInt___init__", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-9-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-9-TupleInt___init__-0" ] }, { "id": "edge-inner-function-0-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-0-TupleInt_filter", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-0-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-0-TupleInt_filter-0" ] }, { "id": "edge-inner-function-0-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-0-TupleInt_filter", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-0-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-0-TupleInt_filter-1" ] }, { "id": "edge-inner-function-5-TupleInt___add__-0", "data": { "isInner": true }, "sourceNode": "node-function-5-TupleInt___add__", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-5-TupleInt___add__-0" ], "targets": [ "port-class-outgoing-function-5-TupleInt___add__-0" ] }, { "id": "edge-inner-function-5-TupleInt___add__-1", "data": { "isInner": true }, "sourceNode": "node-function-5-TupleInt___add__", "targetNode": "class-TupleInt-25", "sources": [ "port-node-function-5-TupleInt___add__-1" ], "targets": [ "port-class-outgoing-function-5-TupleInt___add__-1" ] } ] }, { "id": "class-TupleInt-62", "data": { "color": "#f1e2cc", "id": "TupleInt-62" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-2-TupleInt_if_", "data": { "label": "TupleInt.if_(TRUE, ·, ·)", "id": "function-2-TupleInt_if_" }, "width": 183.390625, "height": 26, "ports": [ { "id": "port-node-function-2-TupleInt_if_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-2-TupleInt_if_-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt.if_(TRUE, ·, ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-15-TupleInt___init__", "data": { "label": "TupleInt(Int(2), ·)", "id": "function-15-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-15-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(2), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-5-TupleInt_filter", "data": { "label": "·.filter", "id": "function-5-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-5-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-5-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-6-TupleInt___add__", "data": { "label": "· + ·", "id": "function-6-TupleInt___add__" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-6-TupleInt___add__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-6-TupleInt___add__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "· + ·" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-TupleInt_if_-1" }, { "id": "port-class-incoming-function-4-TupleInt___add__-1" }, { "id": "port-class-incoming-function-2-TupleInt_if_-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-15-0" }, { "id": "port-class-outgoing-function-2-TupleInt_if_-0" }, { "id": "port-class-outgoing-function-2-TupleInt_if_-1" }, { "id": "port-class-outgoing-function-15-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-5-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-5-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-6-TupleInt___add__-0" }, { "id": "port-class-outgoing-function-6-TupleInt___add__-1" } ], "edges": [ { "id": "edge-inner-function-2-TupleInt_if_-0", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_if_", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-2-TupleInt_if_-0" ], "targets": [ "port-class-outgoing-function-2-TupleInt_if_-0" ] }, { "id": "edge-inner-function-2-TupleInt_if_-1", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_if_", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-2-TupleInt_if_-1" ], "targets": [ "port-class-outgoing-function-2-TupleInt_if_-1" ] }, { "id": "edge-inner-function-15-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-15-TupleInt___init__", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-15-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-15-TupleInt___init__-0" ] }, { "id": "edge-inner-function-5-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-5-TupleInt_filter", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-5-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-5-TupleInt_filter-0" ] }, { "id": "edge-inner-function-5-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-5-TupleInt_filter", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-5-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-5-TupleInt_filter-1" ] }, { "id": "edge-inner-function-6-TupleInt___add__-0", "data": { "isInner": true }, "sourceNode": "node-function-6-TupleInt___add__", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-6-TupleInt___add__-0" ], "targets": [ "port-class-outgoing-function-6-TupleInt___add__-0" ] }, { "id": "edge-inner-function-6-TupleInt___add__-1", "data": { "isInner": true }, "sourceNode": "node-function-6-TupleInt___add__", "targetNode": "class-TupleInt-62", "sources": [ "port-node-function-6-TupleInt___add__-1" ], "targets": [ "port-class-outgoing-function-6-TupleInt___add__-1" ] } ] }, { "id": "class-TupleInt-84", "data": { "color": "#f1e2cc", "id": "TupleInt-84" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-3-TupleInt_if_", "data": { "label": "TupleInt.if_(TRUE, ·, ·)", "id": "function-3-TupleInt_if_" }, "width": 183.390625, "height": 26, "ports": [ { "id": "port-node-function-3-TupleInt_if_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-3-TupleInt_if_-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt.if_(TRUE, ·, ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-4-TupleInt___init__", "data": { "label": "TupleInt(Int(1), ·)", "id": "function-4-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-4-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(1), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-6-TupleInt_filter", "data": { "label": "·.filter", "id": "function-6-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-6-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-6-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-7-TupleInt___add__", "data": { "label": "· + ·", "id": "function-7-TupleInt___add__" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-7-TupleInt___add__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-7-TupleInt___add__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "· + ·" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-2-TupleInt_if_-1" }, { "id": "port-class-incoming-function-6-TupleInt___add__-1" }, { "id": "port-class-incoming-function-3-TupleInt_if_-0" }, { "id": "port-class-incoming-function-7-TupleInt_if_-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-35-0" }, { "id": "port-class-outgoing-function-3-TupleInt_if_-0" }, { "id": "port-class-outgoing-function-3-TupleInt_if_-1" }, { "id": "port-class-outgoing-function-4-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-6-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-6-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-7-TupleInt___add__-0" }, { "id": "port-class-outgoing-function-7-TupleInt___add__-1" } ], "edges": [ { "id": "edge-inner-function-3-TupleInt_if_-0", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt_if_", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-3-TupleInt_if_-0" ], "targets": [ "port-class-outgoing-function-3-TupleInt_if_-0" ] }, { "id": "edge-inner-function-3-TupleInt_if_-1", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt_if_", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-3-TupleInt_if_-1" ], "targets": [ "port-class-outgoing-function-3-TupleInt_if_-1" ] }, { "id": "edge-inner-function-4-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-4-TupleInt___init__", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-4-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-4-TupleInt___init__-0" ] }, { "id": "edge-inner-function-6-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-6-TupleInt_filter", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-6-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-6-TupleInt_filter-0" ] }, { "id": "edge-inner-function-6-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-6-TupleInt_filter", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-6-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-6-TupleInt_filter-1" ] }, { "id": "edge-inner-function-7-TupleInt___add__-0", "data": { "isInner": true }, "sourceNode": "node-function-7-TupleInt___add__", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-7-TupleInt___add__-0" ], "targets": [ "port-class-outgoing-function-7-TupleInt___add__-0" ] }, { "id": "edge-inner-function-7-TupleInt___add__-1", "data": { "isInner": true }, "sourceNode": "node-function-7-TupleInt___add__", "targetNode": "class-TupleInt-84", "sources": [ "port-node-function-7-TupleInt___add__-1" ], "targets": [ "port-class-outgoing-function-7-TupleInt___add__-1" ] } ] }, { "id": "class-TupleInt-28", "data": { "color": "#f1e2cc", "id": "TupleInt-28" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-7-TupleInt_if_", "data": { "label": "TupleInt.if_(FALSE, ·, ·)", "id": "function-7-TupleInt_if_" }, "width": 190.625, "height": 26, "ports": [ { "id": "port-node-function-7-TupleInt_if_-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-7-TupleInt_if_-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt.if_(FALSE, ·, ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-19-TupleInt___init__", "data": { "label": "TupleInt(Int(0), ·)", "id": "function-19-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-19-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(0), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-1-TupleInt_filter", "data": { "label": "·.filter", "id": "function-1-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-1-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-1-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-12-TupleInt_filter", "data": { "label": "·.filter", "id": "function-12-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-12-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-12-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-13-TupleInt_filter", "data": { "label": "·.filter", "id": "function-13-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-13-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-13-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-14-TupleInt_filter", "data": { "label": "·.filter", "id": "function-14-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-14-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-14-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-15-TupleInt_filter", "data": { "label": "·.filter", "id": "function-15-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-15-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-15-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-16-TupleInt_filter", "data": { "label": "·.filter", "id": "function-16-TupleInt_filter" }, "width": 67.796875, "height": 26, "ports": [ { "id": "port-node-function-16-TupleInt_filter-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-16-TupleInt_filter-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.filter" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-3-TupleInt_if_-1" }, { "id": "port-class-incoming-function-7-TupleInt___add__-1" }, { "id": "port-class-incoming-function-7-TupleInt_if_-1" }, { "id": "port-class-incoming-function-12-TupleInt_filter-0" }, { "id": "port-class-incoming-function-13-TupleInt_filter-0" }, { "id": "port-class-incoming-function-3-TupleInt_map-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-52-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-3-1" }, { "id": "port-class-outgoing-function-7-TupleInt_if_-0" }, { "id": "port-class-outgoing-function-7-TupleInt_if_-1" }, { "id": "port-class-outgoing-function-19-TupleInt___init__-0" }, { "id": "port-class-outgoing-function-1-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-1-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-12-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-12-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-13-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-13-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-14-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-14-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-15-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-15-TupleInt_filter-1" }, { "id": "port-class-outgoing-function-16-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-16-TupleInt_filter-1" } ], "edges": [ { "id": "edge-inner-function-7-TupleInt_if_-0", "data": { "isInner": true }, "sourceNode": "node-function-7-TupleInt_if_", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-7-TupleInt_if_-0" ], "targets": [ "port-class-outgoing-function-7-TupleInt_if_-0" ] }, { "id": "edge-inner-function-7-TupleInt_if_-1", "data": { "isInner": true }, "sourceNode": "node-function-7-TupleInt_if_", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-7-TupleInt_if_-1" ], "targets": [ "port-class-outgoing-function-7-TupleInt_if_-1" ] }, { "id": "edge-inner-function-19-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-19-TupleInt___init__", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-19-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-19-TupleInt___init__-0" ] }, { "id": "edge-inner-function-1-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-1-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-1-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-1-TupleInt_filter-0" ] }, { "id": "edge-inner-function-1-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-1-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-1-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-1-TupleInt_filter-1" ] }, { "id": "edge-inner-function-12-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-12-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-12-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-12-TupleInt_filter-0" ] }, { "id": "edge-inner-function-12-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-12-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-12-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-12-TupleInt_filter-1" ] }, { "id": "edge-inner-function-13-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-13-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-13-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-13-TupleInt_filter-0" ] }, { "id": "edge-inner-function-13-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-13-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-13-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-13-TupleInt_filter-1" ] }, { "id": "edge-inner-function-14-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-14-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-14-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-14-TupleInt_filter-0" ] }, { "id": "edge-inner-function-14-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-14-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-14-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-14-TupleInt_filter-1" ] }, { "id": "edge-inner-function-15-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-15-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-15-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-15-TupleInt_filter-0" ] }, { "id": "edge-inner-function-15-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-15-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-15-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-15-TupleInt_filter-1" ] }, { "id": "edge-inner-function-16-TupleInt_filter-0", "data": { "isInner": true }, "sourceNode": "node-function-16-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-16-TupleInt_filter-0" ], "targets": [ "port-class-outgoing-function-16-TupleInt_filter-0" ] }, { "id": "edge-inner-function-16-TupleInt_filter-1", "data": { "isInner": true }, "sourceNode": "node-function-16-TupleInt_filter", "targetNode": "class-TupleInt-28", "sources": [ "port-node-function-16-TupleInt_filter-1" ], "targets": [ "port-class-outgoing-function-16-TupleInt_filter-1" ] } ] }, { "id": "class-TupleInt-24", "data": { "color": "#f1e2cc", "id": "TupleInt-24" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-TupleInt_range", "data": { "label": "TupleInt.range(Int(4))", "id": "function-0-TupleInt_range" }, "width": 168.953125, "height": 26, "ports": [], "labels": [ { "text": "TupleInt.range(Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-10-TupleInt___init__", "data": { "label": "TupleInt(Int(4), lambda i: i)", "id": "function-10-TupleInt___init__" }, "width": 219.515625, "height": 26, "ports": [], "labels": [ { "text": "TupleInt(Int(4), lambda i: i)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-TupleInt_filter-0" }, { "id": "port-class-incoming-function-1-TupleInt_filter-0" } ], "edges": [] }, { "id": "class-NDArray-10", "data": { "color": "#b3cde3", "id": "NDArray-10" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-0-linalg_norm", "data": { "label": "linalg_norm", "id": "function-0-linalg_norm" }, "width": 89.484375, "height": 26, "ports": [ { "id": "port-node-function-0-linalg_norm-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-0-linalg_norm-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "linalg_norm" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-NDArray___init__", "data": { "label": "NDArray", "id": "function-0-NDArray___init__" }, "width": 60.578125, "height": 26, "ports": [ { "id": "port-node-function-0-NDArray___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "2" } }, { "id": "port-node-function-0-NDArray___init__-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-0-NDArray___init__-2", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "NDArray" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-NDArray_shape-0" }, { "id": "port-class-outgoing-function-0-linalg_norm-0" }, { "id": "port-class-outgoing-function-0-linalg_norm-1" }, { "id": "port-class-outgoing-function-0-NDArray___init__-0" }, { "id": "port-class-outgoing-function-0-NDArray___init__-1" }, { "id": "port-class-outgoing-function-0-NDArray___init__-2" } ], "edges": [ { "id": "edge-inner-function-0-linalg_norm-0", "data": { "isInner": true }, "sourceNode": "node-function-0-linalg_norm", "targetNode": "class-NDArray-10", "sources": [ "port-node-function-0-linalg_norm-0" ], "targets": [ "port-class-outgoing-function-0-linalg_norm-0" ] }, { "id": "edge-inner-function-0-linalg_norm-1", "data": { "isInner": true }, "sourceNode": "node-function-0-linalg_norm", "targetNode": "class-NDArray-10", "sources": [ "port-node-function-0-linalg_norm-1" ], "targets": [ "port-class-outgoing-function-0-linalg_norm-1" ] }, { "id": "edge-inner-function-0-NDArray___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-0-NDArray___init__", "targetNode": "class-NDArray-10", "sources": [ "port-node-function-0-NDArray___init__-0" ], "targets": [ "port-class-outgoing-function-0-NDArray___init__-0" ] }, { "id": "edge-inner-function-0-NDArray___init__-1", "data": { "isInner": true }, "sourceNode": "node-function-0-NDArray___init__", "targetNode": "class-NDArray-10", "sources": [ "port-node-function-0-NDArray___init__-1" ], "targets": [ "port-class-outgoing-function-0-NDArray___init__-1" ] }, { "id": "edge-inner-function-0-NDArray___init__-2", "data": { "isInner": true }, "sourceNode": "node-function-0-NDArray___init__", "targetNode": "class-NDArray-10", "sources": [ "port-node-function-0-NDArray___init__-2" ], "targets": [ "port-class-outgoing-function-0-NDArray___init__-2" ] } ] }, { "id": "class-UnstableFn_Value_TupleInt-0", "data": { "color": "#fbb4ae", "id": "UnstableFn_Value_TupleInt-0" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Value_TupleInt-0", "data": { "label": "lambda X, reduce_axis, k: sqrt(LoopNestAPI.from_tuple(reduce_axis).unwrap().fold(lambda carry, i: carry + real(conj(X[IndexKey.multi_axis(MultiAxisIndexKey((i + k).length(), lambda i: MultiAxisIndexKeyItem.int((i + k)[i])))]) * X[IndexKey.multi_axis(MultiAxisIndexKey((i + k).length(), lambda i: MultiAxisIndexKeyItem.int((i + k)[i])))]), NDArray.scalar(Value.float(Float(0.0))))).to_value()", "id": "primitive-UnstableFn_Value_TupleInt-0" }, "width": 394, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Value_TupleInt-0-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-primitive-UnstableFn_Value_TupleInt-0-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda X, reduce_axis, k: sqrt(LoopNestAPI.from_tuple(reduce_axis).unwrap().fold(lambda carry, i: carry + real(conj(X[IndexKey.multi_axis(MultiAxisIndexKey((i + k).length(), lambda i: MultiAxisIndexKeyItem.int((i + k)[i])))]) * X[IndexKey.multi_axis(MultiAxisIndexKey((i + k).length(), lambda i: MultiAxisIndexKeyItem.int((i + k)[i])))]), NDArray.scalar(Value.float(Float(0.0))))).to_value()" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-NDArray___init__-2" }, { "id": "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Value_TupleInt-0-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Value_TupleInt-0", "targetNode": "class-UnstableFn_Value_TupleInt-0", "sources": [ "port-node-primitive-UnstableFn_Value_TupleInt-0-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Value_TupleInt-0-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Value_TupleInt-0", "targetNode": "class-UnstableFn_Value_TupleInt-0", "sources": [ "port-node-primitive-UnstableFn_Value_TupleInt-0-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-1" ] } ] }, { "id": "class-TupleInt-56", "data": { "color": "#f1e2cc", "id": "TupleInt-56" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-TupleInt_single", "data": { "label": "TupleInt.single(Int(4))", "id": "function-1-TupleInt_single" }, "width": 176.171875, "height": 26, "ports": [], "labels": [ { "text": "TupleInt.single(Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-12-TupleInt___init__", "data": { "label": "TupleInt(Int(1), ·)", "id": "function-12-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-12-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(1), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-4-TupleInt___add__-0" }, { "id": "port-class-incoming-function-5-TupleInt___add__-0" }, { "id": "port-class-incoming-function-6-TupleInt___add__-0" }, { "id": "port-class-incoming-function-7-TupleInt___add__-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-15-1" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-52-1" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-27-1" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-35-1" }, { "id": "port-class-outgoing-function-12-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-12-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-12-TupleInt___init__", "targetNode": "class-TupleInt-56", "sources": [ "port-node-function-12-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-12-TupleInt___init__-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-9", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-9" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-9", "data": { "label": "lambda idx_fn, i: idx_fn(i + Int(1))(lambda idx_fn, i: idx_fn(i + Int(1))(lambda i: i))", "id": "primitive-UnstableFn_Int_Int-9" }, "width": 394, "height": 26, "ports": [], "labels": [ { "text": "lambda idx_fn, i: idx_fn(i + Int(1))(lambda idx_fn, i: idx_fn(i + Int(1))(lambda i: i))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-14-0" }, { "id": "port-class-incoming-function-17-TupleInt___init__-0" } ], "edges": [] }, { "id": "class-UnstableFn_Int_Int-14", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-14" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-14", "data": { "label": "lambda idx_fn, i: idx_fn(i + Int(1))", "id": "primitive-UnstableFn_Int_Int-14" }, "width": 270.09375, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-14-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda idx_fn, i: idx_fn(i + Int(1))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-2-TupleInt___init__-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Int_Int-19-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-14-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-14-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-14", "targetNode": "class-UnstableFn_Int_Int-14", "sources": [ "port-node-primitive-UnstableFn_Int_Int-14-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-14-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-92", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-92" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-92", "data": { "label": "index_vec_int", "id": "primitive-UnstableFn_Int_Int-92" }, "width": 103.921875, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-92-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "index_vec_int" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-16-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-92-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-92-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-92", "targetNode": "class-UnstableFn_Int_Int-92", "sources": [ "port-node-primitive-UnstableFn_Int_Int-92-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-92-0" ] } ] }, { "id": "class-TupleInt-19", "data": { "color": "#f1e2cc", "id": "TupleInt-19" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-ShapeAPI_to_tuple", "data": { "label": "·.to_tuple", "id": "function-1-ShapeAPI_to_tuple" }, "width": 82.25, "height": 26, "ports": [ { "id": "port-node-function-1-ShapeAPI_to_tuple-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.to_tuple" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-3-TupleInt_map", "data": { "label": "·.map", "id": "function-3-TupleInt_map" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-3-TupleInt_map-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-3-TupleInt_map-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.map" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-18-TupleInt___init__", "data": { "label": "TupleInt(Int(0), ·)", "id": "function-18-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-18-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(0), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-2-ShapeAPI___init__-0" }, { "id": "port-class-incoming-primitive-UnstableFn_Value_TupleInt-0-1" }, { "id": "port-class-outgoing-function-1-ShapeAPI_to_tuple-0" }, { "id": "port-class-outgoing-function-3-TupleInt_map-0" }, { "id": "port-class-outgoing-function-3-TupleInt_map-1" }, { "id": "port-class-outgoing-function-18-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-1-ShapeAPI_to_tuple-0", "data": { "isInner": true }, "sourceNode": "node-function-1-ShapeAPI_to_tuple", "targetNode": "class-TupleInt-19", "sources": [ "port-node-function-1-ShapeAPI_to_tuple-0" ], "targets": [ "port-class-outgoing-function-1-ShapeAPI_to_tuple-0" ] }, { "id": "edge-inner-function-3-TupleInt_map-0", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt_map", "targetNode": "class-TupleInt-19", "sources": [ "port-node-function-3-TupleInt_map-0" ], "targets": [ "port-class-outgoing-function-3-TupleInt_map-0" ] }, { "id": "edge-inner-function-3-TupleInt_map-1", "data": { "isInner": true }, "sourceNode": "node-function-3-TupleInt_map", "targetNode": "class-TupleInt-19", "sources": [ "port-node-function-3-TupleInt_map-1" ], "targets": [ "port-class-outgoing-function-3-TupleInt_map-1" ] }, { "id": "edge-inner-function-18-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-18-TupleInt___init__", "targetNode": "class-TupleInt-19", "sources": [ "port-node-function-18-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-18-TupleInt___init__-0" ] } ] }, { "id": "class-TupleInt-11", "data": { "color": "#f1e2cc", "id": "TupleInt-11" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-2-ShapeAPI_to_tuple", "data": { "label": "·.to_tuple", "id": "function-2-ShapeAPI_to_tuple" }, "width": 82.25, "height": 26, "ports": [ { "id": "port-node-function-2-ShapeAPI_to_tuple-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.to_tuple" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-2-TupleInt_map", "data": { "label": "·.map", "id": "function-2-TupleInt_map" }, "width": 46.125, "height": 26, "ports": [ { "id": "port-node-function-2-TupleInt_map-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-function-2-TupleInt_map-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.map" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-0-NDArray_shape", "data": { "label": "·.shape", "id": "function-0-NDArray_shape" }, "width": 60.578125, "height": 26, "ports": [ { "id": "port-node-function-0-NDArray_shape-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "·.shape" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } }, { "id": "node-function-8-TupleInt___init__", "data": { "label": "TupleInt(Int(4), ·)", "id": "function-8-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-8-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(4), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-15-TupleInt___getitem__-0" }, { "id": "port-class-incoming-function-1-ShapeAPI___init__-0" }, { "id": "port-class-incoming-function-0-NDArray___init__-0" }, { "id": "port-class-outgoing-function-2-ShapeAPI_to_tuple-0" }, { "id": "port-class-outgoing-function-2-TupleInt_map-0" }, { "id": "port-class-outgoing-function-2-TupleInt_map-1" }, { "id": "port-class-outgoing-function-0-NDArray_shape-0" }, { "id": "port-class-outgoing-function-8-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-2-ShapeAPI_to_tuple-0", "data": { "isInner": true }, "sourceNode": "node-function-2-ShapeAPI_to_tuple", "targetNode": "class-TupleInt-11", "sources": [ "port-node-function-2-ShapeAPI_to_tuple-0" ], "targets": [ "port-class-outgoing-function-2-ShapeAPI_to_tuple-0" ] }, { "id": "edge-inner-function-2-TupleInt_map-0", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_map", "targetNode": "class-TupleInt-11", "sources": [ "port-node-function-2-TupleInt_map-0" ], "targets": [ "port-class-outgoing-function-2-TupleInt_map-0" ] }, { "id": "edge-inner-function-2-TupleInt_map-1", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt_map", "targetNode": "class-TupleInt-11", "sources": [ "port-node-function-2-TupleInt_map-1" ], "targets": [ "port-class-outgoing-function-2-TupleInt_map-1" ] }, { "id": "edge-inner-function-0-NDArray_shape-0", "data": { "isInner": true }, "sourceNode": "node-function-0-NDArray_shape", "targetNode": "class-TupleInt-11", "sources": [ "port-node-function-0-NDArray_shape-0" ], "targets": [ "port-class-outgoing-function-0-NDArray_shape-0" ] }, { "id": "edge-inner-function-8-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-8-TupleInt___init__", "targetNode": "class-TupleInt-11", "sources": [ "port-node-function-8-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-8-TupleInt___init__-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-15", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-15" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-15", "data": { "label": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])", "id": "primitive-UnstableFn_Int_Int-15" }, "width": 394, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-15-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-15-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-0-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-15-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-15-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-15-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-15", "targetNode": "class-UnstableFn_Int_Int-15", "sources": [ "port-node-primitive-UnstableFn_Int_Int-15-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-15-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-15-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-15", "targetNode": "class-UnstableFn_Int_Int-15", "sources": [ "port-node-primitive-UnstableFn_Int_Int-15-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-15-1" ] } ] }, { "id": "class-TupleInt-41", "data": { "color": "#f1e2cc", "id": "TupleInt-41" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-1-TupleInt___init__", "data": { "label": "TupleInt(Int(3), lambda idx_fn, i: idx_fn(i + Int(1))(lambda i: i))", "id": "function-1-TupleInt___init__" }, "width": 394, "height": 26, "ports": [], "labels": [ { "text": "TupleInt(Int(3), lambda idx_fn, i: idx_fn(i + Int(1))(lambda i: i))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-2-TupleInt_filter-0" }, { "id": "port-class-incoming-function-16-TupleInt_filter-0" } ], "edges": [] }, { "id": "class-TupleInt-83", "data": { "color": "#f1e2cc", "id": "TupleInt-83" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-2-TupleInt___init__", "data": { "label": "TupleInt(Int(1), ·)", "id": "function-2-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-2-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(1), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-6-TupleInt_filter-0" }, { "id": "port-class-incoming-function-14-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-2-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-2-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-2-TupleInt___init__", "targetNode": "class-TupleInt-83", "sources": [ "port-node-function-2-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-2-TupleInt___init__-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-52", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-52" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-52", "data": { "label": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])", "id": "primitive-UnstableFn_Int_Int-52" }, "width": 394, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-52-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-52-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-4-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-52-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-52-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-52-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-52", "targetNode": "class-UnstableFn_Int_Int-52", "sources": [ "port-node-primitive-UnstableFn_Int_Int-52-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-52-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-52-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-52", "targetNode": "class-UnstableFn_Int_Int-52", "sources": [ "port-node-primitive-UnstableFn_Int_Int-52-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-52-1" ] } ] }, { "id": "class-UnstableFn_Int_Int-4", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-4" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-4", "data": { "label": "lambda f, self, i: f(self[i])", "id": "primitive-UnstableFn_Int_Int-4" }, "width": 219.515625, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-4-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-4-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda f, self, i: f(self[i])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-8-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-4-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-4-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-4-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-4", "targetNode": "class-UnstableFn_Int_Int-4", "sources": [ "port-node-primitive-UnstableFn_Int_Int-4-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-4-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-4-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-4", "targetNode": "class-UnstableFn_Int_Int-4", "sources": [ "port-node-primitive-UnstableFn_Int_Int-4-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-4-1" ] } ] }, { "id": "class-UnstableFn_Int_Int-27", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-27" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-27", "data": { "label": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])", "id": "primitive-UnstableFn_Int_Int-27" }, "width": 394, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-27-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-27-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-9-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-27-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-27-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-27-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-27", "targetNode": "class-UnstableFn_Int_Int-27", "sources": [ "port-node-primitive-UnstableFn_Int_Int-27-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-27-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-27-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-27", "targetNode": "class-UnstableFn_Int_Int-27", "sources": [ "port-node-primitive-UnstableFn_Int_Int-27-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-27-1" ] } ] }, { "id": "class-UnstableFn_Int_Int-95", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-95" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-95", "data": { "label": "index_vec_int", "id": "primitive-UnstableFn_Int_Int-95" }, "width": 103.921875, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-95-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "index_vec_int" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-11-TupleInt___init__-0" }, { "id": "port-class-incoming-function-29-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-95-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-95-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-95", "targetNode": "class-UnstableFn_Int_Int-95", "sources": [ "port-node-primitive-UnstableFn_Int_Int-95-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-95-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-88", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-88" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-88", "data": { "label": "lambda i, _: i(Int(4))", "id": "primitive-UnstableFn_Int_Int-88" }, "width": 168.953125, "height": 26, "ports": [], "labels": [ { "text": "lambda i, _: i(Int(4))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-12-TupleInt___init__-0" } ], "edges": [] }, { "id": "class-UnstableFn_Int_Int-35", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-35" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-35", "data": { "label": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])", "id": "primitive-UnstableFn_Int_Int-35" }, "width": 394, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-35-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-35-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda other, self, i: Int.if_(i < self.length(), self[i], other[i - self.length()])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-15-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-35-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-35-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-35-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-35", "targetNode": "class-UnstableFn_Int_Int-35", "sources": [ "port-node-primitive-UnstableFn_Int_Int-35-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-35-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-35-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-35", "targetNode": "class-UnstableFn_Int_Int-35", "sources": [ "port-node-primitive-UnstableFn_Int_Int-35-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-35-1" ] } ] }, { "id": "class-TupleInt-57", "data": { "color": "#f1e2cc", "id": "TupleInt-57" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-function-17-TupleInt___init__", "data": { "label": "TupleInt(Int(2), ·)", "id": "function-17-TupleInt___init__" }, "width": 147.28125, "height": 26, "ports": [ { "id": "port-node-function-17-TupleInt___init__-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "TupleInt(Int(2), ·)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-5-TupleInt_filter-0" }, { "id": "port-class-incoming-function-15-TupleInt_filter-0" }, { "id": "port-class-outgoing-function-17-TupleInt___init__-0" } ], "edges": [ { "id": "edge-inner-function-17-TupleInt___init__-0", "data": { "isInner": true }, "sourceNode": "node-function-17-TupleInt___init__", "targetNode": "class-TupleInt-57", "sources": [ "port-node-function-17-TupleInt___init__-0" ], "targets": [ "port-class-outgoing-function-17-TupleInt___init__-0" ] } ] }, { "id": "class-UnstableFn_Int_Int-3", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-3" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-3", "data": { "label": "lambda f, self, i: f(self[i])", "id": "primitive-UnstableFn_Int_Int-3" }, "width": 219.515625, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-3-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "1" } }, { "id": "port-node-primitive-UnstableFn_Int_Int-3-1", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda f, self, i: f(self[i])" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-18-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-3-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-3-1" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-3-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-3", "targetNode": "class-UnstableFn_Int_Int-3", "sources": [ "port-node-primitive-UnstableFn_Int_Int-3-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-3-0" ] }, { "id": "edge-inner-primitive-UnstableFn_Int_Int-3-1", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-3", "targetNode": "class-UnstableFn_Int_Int-3", "sources": [ "port-node-primitive-UnstableFn_Int_Int-3-1" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-3-1" ] } ] }, { "id": "class-UnstableFn_Int_Int-19", "data": { "color": "#cccccc", "id": "UnstableFn_Int_Int-19" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Int_Int-19", "data": { "label": "lambda idx_fn, i: idx_fn(i + Int(1))", "id": "primitive-UnstableFn_Int_Int-19" }, "width": 270.09375, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Int_Int-19-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda idx_fn, i: idx_fn(i + Int(1))" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-19-TupleInt___init__-0" }, { "id": "port-class-outgoing-primitive-UnstableFn_Int_Int-19-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Int_Int-19-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Int_Int-19", "targetNode": "class-UnstableFn_Int_Int-19", "sources": [ "port-node-primitive-UnstableFn_Int_Int-19-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-19-0" ] } ] }, { "id": "class-UnstableFn_Boolean_Int-0", "data": { "color": "#b3cde3", "id": "UnstableFn_Boolean_Int-0" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Boolean_Int-0", "data": { "label": "lambda axis, i: ~axis.contains(i)", "id": "primitive-UnstableFn_Boolean_Int-0" }, "width": 248.421875, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Boolean_Int-0-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda axis, i: ~axis.contains(i)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-2-TupleInt_filter-1" }, { "id": "port-class-incoming-function-0-TupleInt_filter-1" }, { "id": "port-class-incoming-function-5-TupleInt_filter-1" }, { "id": "port-class-incoming-function-6-TupleInt_filter-1" }, { "id": "port-class-incoming-function-12-TupleInt_filter-1" }, { "id": "port-class-outgoing-primitive-UnstableFn_Boolean_Int-0-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Boolean_Int-0-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Boolean_Int-0", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-node-primitive-UnstableFn_Boolean_Int-0-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Boolean_Int-0-0" ] } ] }, { "id": "class-UnstableFn_Boolean_Int-1", "data": { "color": "#b3cde3", "id": "UnstableFn_Boolean_Int-1" }, "layoutOptions": { "elk.algorithm": "layered", "elk.direction": "DOWN", "elk.spacing.componentComponent": "5", "elk.spacing.nodeNode": "5", "elk.padding": "[top=5,left=5,bottom=5,right=5]", "elk.spacing.portPort": "0", "portConstraints": "FREE" }, "children": [ { "id": "node-primitive-UnstableFn_Boolean_Int-1", "data": { "label": "lambda axis, i: axis.contains(i)", "id": "primitive-UnstableFn_Boolean_Int-1" }, "width": 241.1875, "height": 26, "ports": [ { "id": "port-node-primitive-UnstableFn_Boolean_Int-1-0", "layoutOptions": { "port.side": "SOUTH", "port.index": "0" } } ], "labels": [ { "text": "lambda axis, i: axis.contains(i)" } ], "layoutOptions": { "portConstraints": "FIXED_ORDER" } } ], "ports": [ { "id": "port-class-incoming-function-1-TupleInt_filter-1" }, { "id": "port-class-incoming-function-13-TupleInt_filter-1" }, { "id": "port-class-incoming-function-14-TupleInt_filter-1" }, { "id": "port-class-incoming-function-15-TupleInt_filter-1" }, { "id": "port-class-incoming-function-16-TupleInt_filter-1" }, { "id": "port-class-outgoing-primitive-UnstableFn_Boolean_Int-1-0" } ], "edges": [ { "id": "edge-inner-primitive-UnstableFn_Boolean_Int-1-0", "data": { "isInner": true }, "sourceNode": "node-primitive-UnstableFn_Boolean_Int-1", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-node-primitive-UnstableFn_Boolean_Int-1-0" ], "targets": [ "port-class-outgoing-primitive-UnstableFn_Boolean_Int-1-0" ] } ] } ], "edges": [ { "id": "edge-outer-function-0-NDArray_dtype-0", "data": { "isInner": false }, "sourceNode": "class-DType-17", "targetNode": "class-NDArray-6", "sources": [ "port-class-outgoing-function-0-NDArray_dtype-0" ], "targets": [ "port-class-incoming-function-0-NDArray_dtype-0" ] }, { "id": "edge-outer-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-TupleInt-13", "sources": [ "port-class-outgoing-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" ], "targets": [ "port-class-incoming-function-0-dims-TupleInt_i-Int__TupleInt___getitem___dims_i_-0" ] }, { "id": "edge-outer-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" ], "targets": [ "port-class-incoming-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-0" ] }, { "id": "edge-outer-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-TupleInt-25", "sources": [ "port-class-outgoing-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" ], "targets": [ "port-class-incoming-function-0-f-UnstableFn_Int_Int_self-TupleInt_i-Int__unstable-app_f__TupleInt___getitem___self_i__-1" ] }, { "id": "edge-outer-function-0-index_vec_int-0", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-Vec_Int-31", "sources": [ "port-class-outgoing-function-0-index_vec_int-0" ], "targets": [ "port-class-incoming-function-0-index_vec_int-0" ] }, { "id": "edge-outer-function-3-TupleInt___getitem__-0", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-TupleInt-13", "sources": [ "port-class-outgoing-function-3-TupleInt___getitem__-0" ], "targets": [ "port-class-incoming-function-3-TupleInt___getitem__-0" ] }, { "id": "edge-outer-function-15-TupleInt___getitem__-0", "data": { "isInner": false }, "sourceNode": "class-Int-12", "targetNode": "class-TupleInt-11", "sources": [ "port-class-outgoing-function-15-TupleInt___getitem__-0" ], "targets": [ "port-class-incoming-function-15-TupleInt___getitem__-0" ] }, { "id": "edge-outer-function-0-ShapeAPI_select-0", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-18", "targetNode": "class-ShapeAPI-14", "sources": [ "port-class-outgoing-function-0-ShapeAPI_select-0" ], "targets": [ "port-class-incoming-function-0-ShapeAPI_select-0" ] }, { "id": "edge-outer-function-0-ShapeAPI_select-1", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-18", "targetNode": "class-TupleInt-9", "sources": [ "port-class-outgoing-function-0-ShapeAPI_select-1" ], "targets": [ "port-class-incoming-function-0-ShapeAPI_select-1" ] }, { "id": "edge-outer-function-2-ShapeAPI___init__-0", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-18", "targetNode": "class-TupleInt-19", "sources": [ "port-class-outgoing-function-2-ShapeAPI___init__-0" ], "targets": [ "port-class-incoming-function-2-ShapeAPI___init__-0" ] }, { "id": "edge-outer-function-0-ShapeAPI___init__-0", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-14", "targetNode": "class-TupleInt-13", "sources": [ "port-class-outgoing-function-0-ShapeAPI___init__-0" ], "targets": [ "port-class-incoming-function-0-ShapeAPI___init__-0" ] }, { "id": "edge-outer-function-1-ShapeAPI___init__-0", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-15", "targetNode": "class-TupleInt-11", "sources": [ "port-class-outgoing-function-1-ShapeAPI___init__-0" ], "targets": [ "port-class-incoming-function-1-ShapeAPI___init__-0" ] }, { "id": "edge-outer-function-0-ShapeAPI_deselect-0", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-15", "targetNode": "class-ShapeAPI-14", "sources": [ "port-class-outgoing-function-0-ShapeAPI_deselect-0" ], "targets": [ "port-class-incoming-function-0-ShapeAPI_deselect-0" ] }, { "id": "edge-outer-function-0-ShapeAPI_deselect-1", "data": { "isInner": false }, "sourceNode": "class-ShapeAPI-15", "targetNode": "class-TupleInt-9", "sources": [ "port-class-outgoing-function-0-ShapeAPI_deselect-1" ], "targets": [ "port-class-incoming-function-0-ShapeAPI_deselect-1" ] }, { "id": "edge-outer-function-2-TupleInt_from_vec-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-13", "targetNode": "class-Vec_Int-31", "sources": [ "port-class-outgoing-function-2-TupleInt_from_vec-0" ], "targets": [ "port-class-incoming-function-2-TupleInt_from_vec-0" ] }, { "id": "edge-outer-function-1-NDArray_shape-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-13", "targetNode": "class-NDArray-6", "sources": [ "port-class-outgoing-function-1-NDArray_shape-0" ], "targets": [ "port-class-incoming-function-1-NDArray_shape-0" ] }, { "id": "edge-outer-function-11-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-13", "targetNode": "class-UnstableFn_Int_Int-95", "sources": [ "port-class-outgoing-function-11-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-11-TupleInt___init__-0" ] }, { "id": "edge-outer-function-29-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-13", "targetNode": "class-UnstableFn_Int_Int-95", "sources": [ "port-class-outgoing-function-29-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-29-TupleInt___init__-0" ] }, { "id": "edge-outer-function-3-TupleInt_from_vec-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-9", "targetNode": "class-Vec_Int-32", "sources": [ "port-class-outgoing-function-3-TupleInt_from_vec-0" ], "targets": [ "port-class-incoming-function-3-TupleInt_from_vec-0" ] }, { "id": "edge-outer-function-16-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-9", "targetNode": "class-UnstableFn_Int_Int-92", "sources": [ "port-class-outgoing-function-16-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-16-TupleInt___init__-0" ] }, { "id": "edge-outer-function-1-assume_shape-0", "data": { "isInner": false }, "sourceNode": "class-NDArray-6", "targetNode": "class-TupleInt-13", "sources": [ "port-class-outgoing-function-1-assume_shape-0" ], "targets": [ "port-class-incoming-function-1-assume_shape-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-2-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-2", "targetNode": "class-TupleInt-13", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-2-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-2-0" ] }, { "id": "edge-outer-function-0-TupleInt_if_-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-TupleInt-42", "sources": [ "port-class-outgoing-function-0-TupleInt_if_-0" ], "targets": [ "port-class-incoming-function-0-TupleInt_if_-0" ] }, { "id": "edge-outer-function-0-TupleInt_if_-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-TupleInt-62", "sources": [ "port-class-outgoing-function-0-TupleInt_if_-1" ], "targets": [ "port-class-incoming-function-0-TupleInt_if_-1" ] }, { "id": "edge-outer-function-0-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-UnstableFn_Int_Int-15", "sources": [ "port-class-outgoing-function-0-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-0-TupleInt___init__-0" ] }, { "id": "edge-outer-function-2-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-TupleInt-41", "sources": [ "port-class-outgoing-function-2-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-2-TupleInt_filter-0" ] }, { "id": "edge-outer-function-2-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-class-outgoing-function-2-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-2-TupleInt_filter-1" ] }, { "id": "edge-outer-function-4-TupleInt___add__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-function-4-TupleInt___add__-0" ], "targets": [ "port-class-incoming-function-4-TupleInt___add__-0" ] }, { "id": "edge-outer-function-4-TupleInt___add__-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-42", "targetNode": "class-TupleInt-62", "sources": [ "port-class-outgoing-function-4-TupleInt___add__-1" ], "targets": [ "port-class-incoming-function-4-TupleInt___add__-1" ] }, { "id": "edge-outer-function-1-TupleInt_if_-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-TupleInt-25", "sources": [ "port-class-outgoing-function-1-TupleInt_if_-0" ], "targets": [ "port-class-incoming-function-1-TupleInt_if_-0" ] }, { "id": "edge-outer-function-1-TupleInt_if_-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-TupleInt-42", "sources": [ "port-class-outgoing-function-1-TupleInt_if_-1" ], "targets": [ "port-class-incoming-function-1-TupleInt_if_-1" ] }, { "id": "edge-outer-function-9-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-UnstableFn_Int_Int-27", "sources": [ "port-class-outgoing-function-9-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-9-TupleInt___init__-0" ] }, { "id": "edge-outer-function-0-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-TupleInt-24", "sources": [ "port-class-outgoing-function-0-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-0-TupleInt_filter-0" ] }, { "id": "edge-outer-function-0-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-class-outgoing-function-0-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-0-TupleInt_filter-1" ] }, { "id": "edge-outer-function-5-TupleInt___add__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-function-5-TupleInt___add__-0" ], "targets": [ "port-class-incoming-function-5-TupleInt___add__-0" ] }, { "id": "edge-outer-function-5-TupleInt___add__-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-25", "targetNode": "class-TupleInt-42", "sources": [ "port-class-outgoing-function-5-TupleInt___add__-1" ], "targets": [ "port-class-incoming-function-5-TupleInt___add__-1" ] }, { "id": "edge-outer-function-2-TupleInt_if_-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-TupleInt-62", "sources": [ "port-class-outgoing-function-2-TupleInt_if_-0" ], "targets": [ "port-class-incoming-function-2-TupleInt_if_-0" ] }, { "id": "edge-outer-function-2-TupleInt_if_-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-TupleInt-84", "sources": [ "port-class-outgoing-function-2-TupleInt_if_-1" ], "targets": [ "port-class-incoming-function-2-TupleInt_if_-1" ] }, { "id": "edge-outer-function-15-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-UnstableFn_Int_Int-35", "sources": [ "port-class-outgoing-function-15-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-15-TupleInt___init__-0" ] }, { "id": "edge-outer-function-5-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-TupleInt-57", "sources": [ "port-class-outgoing-function-5-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-5-TupleInt_filter-0" ] }, { "id": "edge-outer-function-5-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-class-outgoing-function-5-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-5-TupleInt_filter-1" ] }, { "id": "edge-outer-function-6-TupleInt___add__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-function-6-TupleInt___add__-0" ], "targets": [ "port-class-incoming-function-6-TupleInt___add__-0" ] }, { "id": "edge-outer-function-6-TupleInt___add__-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-62", "targetNode": "class-TupleInt-84", "sources": [ "port-class-outgoing-function-6-TupleInt___add__-1" ], "targets": [ "port-class-incoming-function-6-TupleInt___add__-1" ] }, { "id": "edge-outer-function-3-TupleInt_if_-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-TupleInt-84", "sources": [ "port-class-outgoing-function-3-TupleInt_if_-0" ], "targets": [ "port-class-incoming-function-3-TupleInt_if_-0" ] }, { "id": "edge-outer-function-3-TupleInt_if_-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-3-TupleInt_if_-1" ], "targets": [ "port-class-incoming-function-3-TupleInt_if_-1" ] }, { "id": "edge-outer-function-4-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-UnstableFn_Int_Int-52", "sources": [ "port-class-outgoing-function-4-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-4-TupleInt___init__-0" ] }, { "id": "edge-outer-function-6-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-TupleInt-83", "sources": [ "port-class-outgoing-function-6-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-6-TupleInt_filter-0" ] }, { "id": "edge-outer-function-6-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-class-outgoing-function-6-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-6-TupleInt_filter-1" ] }, { "id": "edge-outer-function-7-TupleInt___add__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-function-7-TupleInt___add__-0" ], "targets": [ "port-class-incoming-function-7-TupleInt___add__-0" ] }, { "id": "edge-outer-function-7-TupleInt___add__-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-84", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-7-TupleInt___add__-1" ], "targets": [ "port-class-incoming-function-7-TupleInt___add__-1" ] }, { "id": "edge-outer-function-7-TupleInt_if_-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-84", "sources": [ "port-class-outgoing-function-7-TupleInt_if_-0" ], "targets": [ "port-class-incoming-function-7-TupleInt_if_-0" ] }, { "id": "edge-outer-function-7-TupleInt_if_-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-7-TupleInt_if_-1" ], "targets": [ "port-class-incoming-function-7-TupleInt_if_-1" ] }, { "id": "edge-outer-function-19-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Int_Int-19", "sources": [ "port-class-outgoing-function-19-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-19-TupleInt___init__-0" ] }, { "id": "edge-outer-function-1-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-24", "sources": [ "port-class-outgoing-function-1-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-1-TupleInt_filter-0" ] }, { "id": "edge-outer-function-1-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-class-outgoing-function-1-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-1-TupleInt_filter-1" ] }, { "id": "edge-outer-function-12-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-12-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-12-TupleInt_filter-0" ] }, { "id": "edge-outer-function-12-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-0", "sources": [ "port-class-outgoing-function-12-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-12-TupleInt_filter-1" ] }, { "id": "edge-outer-function-13-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-13-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-13-TupleInt_filter-0" ] }, { "id": "edge-outer-function-13-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-class-outgoing-function-13-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-13-TupleInt_filter-1" ] }, { "id": "edge-outer-function-14-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-83", "sources": [ "port-class-outgoing-function-14-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-14-TupleInt_filter-0" ] }, { "id": "edge-outer-function-14-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-class-outgoing-function-14-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-14-TupleInt_filter-1" ] }, { "id": "edge-outer-function-15-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-57", "sources": [ "port-class-outgoing-function-15-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-15-TupleInt_filter-0" ] }, { "id": "edge-outer-function-15-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-class-outgoing-function-15-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-15-TupleInt_filter-1" ] }, { "id": "edge-outer-function-16-TupleInt_filter-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-TupleInt-41", "sources": [ "port-class-outgoing-function-16-TupleInt_filter-0" ], "targets": [ "port-class-incoming-function-16-TupleInt_filter-0" ] }, { "id": "edge-outer-function-16-TupleInt_filter-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-28", "targetNode": "class-UnstableFn_Boolean_Int-1", "sources": [ "port-class-outgoing-function-16-TupleInt_filter-1" ], "targets": [ "port-class-incoming-function-16-TupleInt_filter-1" ] }, { "id": "edge-outer-function-0-linalg_norm-0", "data": { "isInner": false }, "sourceNode": "class-NDArray-10", "targetNode": "class-NDArray-6", "sources": [ "port-class-outgoing-function-0-linalg_norm-0" ], "targets": [ "port-class-incoming-function-0-linalg_norm-0" ] }, { "id": "edge-outer-function-0-linalg_norm-1", "data": { "isInner": false }, "sourceNode": "class-NDArray-10", "targetNode": "class-TupleInt-9", "sources": [ "port-class-outgoing-function-0-linalg_norm-1" ], "targets": [ "port-class-incoming-function-0-linalg_norm-1" ] }, { "id": "edge-outer-function-0-NDArray___init__-0", "data": { "isInner": false }, "sourceNode": "class-NDArray-10", "targetNode": "class-TupleInt-11", "sources": [ "port-class-outgoing-function-0-NDArray___init__-0" ], "targets": [ "port-class-incoming-function-0-NDArray___init__-0" ] }, { "id": "edge-outer-function-0-NDArray___init__-1", "data": { "isInner": false }, "sourceNode": "class-NDArray-10", "targetNode": "class-DType-17", "sources": [ "port-class-outgoing-function-0-NDArray___init__-1" ], "targets": [ "port-class-incoming-function-0-NDArray___init__-1" ] }, { "id": "edge-outer-function-0-NDArray___init__-2", "data": { "isInner": false }, "sourceNode": "class-NDArray-10", "targetNode": "class-UnstableFn_Value_TupleInt-0", "sources": [ "port-class-outgoing-function-0-NDArray___init__-2" ], "targets": [ "port-class-incoming-function-0-NDArray___init__-2" ] }, { "id": "edge-outer-primitive-UnstableFn_Value_TupleInt-0-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Value_TupleInt-0", "targetNode": "class-NDArray-6", "sources": [ "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Value_TupleInt-0-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Value_TupleInt-0-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Value_TupleInt-0", "targetNode": "class-TupleInt-19", "sources": [ "port-class-outgoing-primitive-UnstableFn_Value_TupleInt-0-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Value_TupleInt-0-1" ] }, { "id": "edge-outer-function-12-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-56", "targetNode": "class-UnstableFn_Int_Int-88", "sources": [ "port-class-outgoing-function-12-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-12-TupleInt___init__-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-14-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-14", "targetNode": "class-UnstableFn_Int_Int-9", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-14-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-14-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-92-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-92", "targetNode": "class-Vec_Int-32", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-92-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-92-0" ] }, { "id": "edge-outer-function-1-ShapeAPI_to_tuple-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-19", "targetNode": "class-ShapeAPI-18", "sources": [ "port-class-outgoing-function-1-ShapeAPI_to_tuple-0" ], "targets": [ "port-class-incoming-function-1-ShapeAPI_to_tuple-0" ] }, { "id": "edge-outer-function-3-TupleInt_map-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-19", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-function-3-TupleInt_map-0" ], "targets": [ "port-class-incoming-function-3-TupleInt_map-0" ] }, { "id": "edge-outer-function-3-TupleInt_map-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-19", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-class-outgoing-function-3-TupleInt_map-1" ], "targets": [ "port-class-incoming-function-3-TupleInt_map-1" ] }, { "id": "edge-outer-function-18-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-19", "targetNode": "class-UnstableFn_Int_Int-3", "sources": [ "port-class-outgoing-function-18-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-18-TupleInt___init__-0" ] }, { "id": "edge-outer-function-2-ShapeAPI_to_tuple-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-11", "targetNode": "class-ShapeAPI-15", "sources": [ "port-class-outgoing-function-2-ShapeAPI_to_tuple-0" ], "targets": [ "port-class-incoming-function-2-ShapeAPI_to_tuple-0" ] }, { "id": "edge-outer-function-2-TupleInt_map-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-11", "targetNode": "class-TupleInt-25", "sources": [ "port-class-outgoing-function-2-TupleInt_map-0" ], "targets": [ "port-class-incoming-function-2-TupleInt_map-0" ] }, { "id": "edge-outer-function-2-TupleInt_map-1", "data": { "isInner": false }, "sourceNode": "class-TupleInt-11", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-class-outgoing-function-2-TupleInt_map-1" ], "targets": [ "port-class-incoming-function-2-TupleInt_map-1" ] }, { "id": "edge-outer-function-0-NDArray_shape-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-11", "targetNode": "class-NDArray-10", "sources": [ "port-class-outgoing-function-0-NDArray_shape-0" ], "targets": [ "port-class-incoming-function-0-NDArray_shape-0" ] }, { "id": "edge-outer-function-8-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-11", "targetNode": "class-UnstableFn_Int_Int-4", "sources": [ "port-class-outgoing-function-8-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-8-TupleInt___init__-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-15-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-15", "targetNode": "class-TupleInt-62", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-15-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-15-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-15-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-15", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-15-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-15-1" ] }, { "id": "edge-outer-function-2-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-83", "targetNode": "class-UnstableFn_Int_Int-14", "sources": [ "port-class-outgoing-function-2-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-2-TupleInt___init__-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-52-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-52", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-52-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-52-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-52-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-52", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-52-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-52-1" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-4-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-4", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-4-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-4-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-4-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-4", "targetNode": "class-TupleInt-25", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-4-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-4-1" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-27-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-27", "targetNode": "class-TupleInt-42", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-27-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-27-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-27-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-27", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-27-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-27-1" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-95-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-95", "targetNode": "class-Vec_Int-31", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-95-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-95-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-35-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-35", "targetNode": "class-TupleInt-84", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-35-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-35-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-35-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-35", "targetNode": "class-TupleInt-56", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-35-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-35-1" ] }, { "id": "edge-outer-function-17-TupleInt___init__-0", "data": { "isInner": false }, "sourceNode": "class-TupleInt-57", "targetNode": "class-UnstableFn_Int_Int-9", "sources": [ "port-class-outgoing-function-17-TupleInt___init__-0" ], "targets": [ "port-class-incoming-function-17-TupleInt___init__-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-3-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-3", "targetNode": "class-UnstableFn_Int_Int-2", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-3-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-3-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-3-1", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-3", "targetNode": "class-TupleInt-28", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-3-1" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-3-1" ] }, { "id": "edge-outer-primitive-UnstableFn_Int_Int-19-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Int_Int-19", "targetNode": "class-UnstableFn_Int_Int-14", "sources": [ "port-class-outgoing-primitive-UnstableFn_Int_Int-19-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Int_Int-19-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Boolean_Int-0-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Boolean_Int-0", "targetNode": "class-TupleInt-9", "sources": [ "port-class-outgoing-primitive-UnstableFn_Boolean_Int-0-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Boolean_Int-0-0" ] }, { "id": "edge-outer-primitive-UnstableFn_Boolean_Int-1-0", "data": { "isInner": false }, "sourceNode": "class-UnstableFn_Boolean_Int-1", "targetNode": "class-TupleInt-9", "sources": [ "port-class-outgoing-primitive-UnstableFn_Boolean_Int-1-0" ], "targets": [ "port-class-incoming-primitive-UnstableFn_Boolean_Int-1-0" ] } ] } ```