{ "graph": { "ast": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,0:0:0-3:0:30", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,1:0:1-1:11:12", "edges": [ { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,1:0:1-1:6:7", "src": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,1:0:1-1:2:3", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,1:0:1-1:1:2", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "src_arrow": "", "dst": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,1:4:5-1:6:7", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,1:5:6-1:6:7", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "dst_arrow": ">" } ], "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,1:8:9-1:11:12", "value": [ { "string": "one", "raw_string": "one" } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:0:13-2:16:29", "edges": [ { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:1:14-2:7:20", "src": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:1:14-2:3:16", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:1:14-2:2:15", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "src_arrow": "", "dst": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:5:18-2:7:20", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:6:19-2:7:20", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "dst_arrow": ">" } ], "edge_index": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:8:21-2:11:24", "int": 0, "glob": false }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:13:26-2:16:29", "value": [ { "string": "two", "raw_string": "two" } ] } } } } ] }, "root": { "id": "", "id_val": "", "label_dimensions": { "width": 0, "height": 0 }, "attributes": { "label": { "value": "" }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" } }, "zIndex": 0 }, "edges": [ { "index": 0, "minWidth": 0, "minHeight": 0, "label_dimensions": { "width": 0, "height": 0 }, "isCurve": false, "src_arrow": false, "dst_arrow": true, "references": [ { "map_key_edge_index": 0 }, { "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "two" }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" } }, "zIndex": 0 } ], "objects": [ { "id": "x", "id_val": "x", "label_dimensions": { "width": 0, "height": 0 }, "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,1:0:1-1:2:3", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,1:0:1-1:1:2", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:1:14-2:3:16", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:1:14-2:2:15", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "x" }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" } }, "zIndex": 0 }, { "id": "y", "id_val": "y", "label_dimensions": { "width": 0, "height": 0 }, "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,1:4:5-1:6:7", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,1:5:6-1:6:7", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:5:18-2:7:20", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index.d2,2:6:19-2:7:20", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "y" }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" } }, "zIndex": 0 } ] }, "err": null }