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