1{
2 "graph": {
3 "name": "",
4 "isFolderOnly": false,
5 "ast": {
6 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:0:0-1:0:13",
7 "nodes": [
8 {
9 "map_key": {
10 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:0:0-0:12:12",
11 "edges": [
12 {
13 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:0:0-0:12:12",
14 "src": {
15 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:0:0-0:5:5",
16 "path": [
17 {
18 "unquoted_string": {
19 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:0:0-0:1:1",
20 "value": [
21 {
22 "string": "x",
23 "raw_string": "x"
24 }
25 ]
26 }
27 },
28 {
29 "unquoted_string": {
30 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:2:2-0:3:3",
31 "value": [
32 {
33 "string": "y",
34 "raw_string": "y"
35 }
36 ]
37 }
38 },
39 {
40 "unquoted_string": {
41 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:4:4-0:5:5",
42 "value": [
43 {
44 "string": "z",
45 "raw_string": "z"
46 }
47 ]
48 }
49 }
50 ]
51 },
52 "src_arrow": "",
53 "dst": {
54 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:9:9-0:12:12",
55 "path": [
56 {
57 "unquoted_string": {
58 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:9:9-0:10:10",
59 "value": [
60 {
61 "string": "x",
62 "raw_string": "x"
63 }
64 ]
65 }
66 },
67 {
68 "unquoted_string": {
69 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:11:11-0:12:12",
70 "value": [
71 {
72 "string": "b",
73 "raw_string": "b"
74 }
75 ]
76 }
77 }
78 ]
79 },
80 "dst_arrow": ">"
81 }
82 ],
83 "primary": {},
84 "value": {}
85 }
86 }
87 ]
88 },
89 "root": {
90 "id": "",
91 "id_val": "",
92 "attributes": {
93 "label": {
94 "value": ""
95 },
96 "labelDimensions": {
97 "width": 0,
98 "height": 0
99 },
100 "style": {},
101 "near_key": null,
102 "shape": {
103 "value": ""
104 },
105 "direction": {
106 "value": ""
107 },
108 "constraint": null
109 },
110 "zIndex": 0
111 },
112 "edges": [
113 {
114 "index": 0,
115 "isCurve": false,
116 "src_arrow": false,
117 "dst_arrow": true,
118 "references": [
119 {
120 "map_key_edge_index": 0
121 }
122 ],
123 "attributes": {
124 "label": {
125 "value": ""
126 },
127 "labelDimensions": {
128 "width": 0,
129 "height": 0
130 },
131 "style": {},
132 "near_key": null,
133 "shape": {
134 "value": ""
135 },
136 "direction": {
137 "value": ""
138 },
139 "constraint": null
140 },
141 "zIndex": 0
142 }
143 ],
144 "objects": [
145 {
146 "id": "x",
147 "id_val": "x",
148 "references": [
149 {
150 "key": {
151 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:0:0-0:5:5",
152 "path": [
153 {
154 "unquoted_string": {
155 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:0:0-0:1:1",
156 "value": [
157 {
158 "string": "x",
159 "raw_string": "x"
160 }
161 ]
162 }
163 },
164 {
165 "unquoted_string": {
166 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:2:2-0:3:3",
167 "value": [
168 {
169 "string": "y",
170 "raw_string": "y"
171 }
172 ]
173 }
174 },
175 {
176 "unquoted_string": {
177 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:4:4-0:5:5",
178 "value": [
179 {
180 "string": "z",
181 "raw_string": "z"
182 }
183 ]
184 }
185 }
186 ]
187 },
188 "key_path_index": 0,
189 "map_key_edge_index": 0
190 },
191 {
192 "key": {
193 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:9:9-0:12:12",
194 "path": [
195 {
196 "unquoted_string": {
197 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:9:9-0:10:10",
198 "value": [
199 {
200 "string": "x",
201 "raw_string": "x"
202 }
203 ]
204 }
205 },
206 {
207 "unquoted_string": {
208 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:11:11-0:12:12",
209 "value": [
210 {
211 "string": "b",
212 "raw_string": "b"
213 }
214 ]
215 }
216 }
217 ]
218 },
219 "key_path_index": 0,
220 "map_key_edge_index": 0
221 }
222 ],
223 "attributes": {
224 "label": {
225 "value": "x"
226 },
227 "labelDimensions": {
228 "width": 0,
229 "height": 0
230 },
231 "style": {},
232 "near_key": null,
233 "shape": {
234 "value": "rectangle"
235 },
236 "direction": {
237 "value": ""
238 },
239 "constraint": null
240 },
241 "zIndex": 0
242 },
243 {
244 "id": "y",
245 "id_val": "y",
246 "references": [
247 {
248 "key": {
249 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:0:0-0:5:5",
250 "path": [
251 {
252 "unquoted_string": {
253 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:0:0-0:1:1",
254 "value": [
255 {
256 "string": "x",
257 "raw_string": "x"
258 }
259 ]
260 }
261 },
262 {
263 "unquoted_string": {
264 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:2:2-0:3:3",
265 "value": [
266 {
267 "string": "y",
268 "raw_string": "y"
269 }
270 ]
271 }
272 },
273 {
274 "unquoted_string": {
275 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:4:4-0:5:5",
276 "value": [
277 {
278 "string": "z",
279 "raw_string": "z"
280 }
281 ]
282 }
283 }
284 ]
285 },
286 "key_path_index": 1,
287 "map_key_edge_index": 0
288 }
289 ],
290 "attributes": {
291 "label": {
292 "value": "y"
293 },
294 "labelDimensions": {
295 "width": 0,
296 "height": 0
297 },
298 "style": {},
299 "near_key": null,
300 "shape": {
301 "value": "rectangle"
302 },
303 "direction": {
304 "value": ""
305 },
306 "constraint": null
307 },
308 "zIndex": 0
309 },
310 {
311 "id": "z",
312 "id_val": "z",
313 "references": [
314 {
315 "key": {
316 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:0:0-0:5:5",
317 "path": [
318 {
319 "unquoted_string": {
320 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:0:0-0:1:1",
321 "value": [
322 {
323 "string": "x",
324 "raw_string": "x"
325 }
326 ]
327 }
328 },
329 {
330 "unquoted_string": {
331 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:2:2-0:3:3",
332 "value": [
333 {
334 "string": "y",
335 "raw_string": "y"
336 }
337 ]
338 }
339 },
340 {
341 "unquoted_string": {
342 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:4:4-0:5:5",
343 "value": [
344 {
345 "string": "z",
346 "raw_string": "z"
347 }
348 ]
349 }
350 }
351 ]
352 },
353 "key_path_index": 2,
354 "map_key_edge_index": 0
355 }
356 ],
357 "attributes": {
358 "label": {
359 "value": "z"
360 },
361 "labelDimensions": {
362 "width": 0,
363 "height": 0
364 },
365 "style": {},
366 "near_key": null,
367 "shape": {
368 "value": "rectangle"
369 },
370 "direction": {
371 "value": ""
372 },
373 "constraint": null
374 },
375 "zIndex": 0
376 },
377 {
378 "id": "b",
379 "id_val": "b",
380 "references": [
381 {
382 "key": {
383 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:9:9-0:12:12",
384 "path": [
385 {
386 "unquoted_string": {
387 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:9:9-0:10:10",
388 "value": [
389 {
390 "string": "x",
391 "raw_string": "x"
392 }
393 ]
394 }
395 },
396 {
397 "unquoted_string": {
398 "range": "d2/testdata/d2oracle/TestDelete/edge_both_identical_childs.d2,0:11:11-0:12:12",
399 "value": [
400 {
401 "string": "b",
402 "raw_string": "b"
403 }
404 ]
405 }
406 }
407 ]
408 },
409 "key_path_index": 1,
410 "map_key_edge_index": 0
411 }
412 ],
413 "attributes": {
414 "label": {
415 "value": "b"
416 },
417 "labelDimensions": {
418 "width": 0,
419 "height": 0
420 },
421 "style": {},
422 "near_key": null,
423 "shape": {
424 "value": "rectangle"
425 },
426 "direction": {
427 "value": ""
428 },
429 "constraint": null
430 },
431 "zIndex": 0
432 }
433 ]
434 },
435 "err": "<nil>"
436}
View as plain text