Debian Codegraph @

src/gen/lib/dotgen/flat__c.java

raw symbols SCIP
1 /* ========================================================================
2 * PlantUML : a free UML diagram generator
3 * ========================================================================
4 *
5 * Project Info: http://plantuml.com
6 *
7 * If you like this project or if you find it useful, you can support us at:
8 *
9 * http://plantuml.com/patreon (only 1$ per month!)
10 * http://plantuml.com/paypal
11 *
12 * This file is part of Smetana.
13 * Smetana is a partial translation of Graphviz/Dot sources from C to Java.
14 *
15 * (C) Copyright 2009-2020, Arnaud Roques
16 *
17 * This translation is distributed under the same Licence as the original C program:
18 *
19 *************************************************************************
20 * Copyright (c) 2011 AT&T Intellectual Property
21 * All rights reserved. This program and the accompanying materials
22 * are made available under the terms of the Eclipse Public License v1.0
23 * which accompanies this distribution, and is available at
24 * http://www.eclipse.org/legal/epl-v10.html
25 *
26 * Contributors: See CVS logs. Details at http://www.graphviz.org/
27 *************************************************************************
28 *
29 * THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
30 * LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
31 *
32 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
33 * RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
34 *
35 * You may obtain a copy of the License at
36 *
37 * http://www.eclipse.org/legal/epl-v10.html
38 *
39 * Unless required by applicable law or agreed to in writing, software
40 * distributed under the License is distributed on an "AS IS" BASIS,
41 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42 * See the License for the specific language governing permissions and
43 * limitations under the License.
44 *
45 */
46 package gen.lib.dotgen;
47 import static gen.lib.cgraph.edge__c.aghead;
48 import static gen.lib.cgraph.edge__c.agtail;
49 import static gen.lib.dotgen.dotinit__c.dot_root;
50 import static gen.lib.dotgen.fastgr__c.virtual_edge;
51 import static gen.lib.dotgen.fastgr__c.virtual_node;
52 import static gen.lib.dotgen.mincross__c.rec_reset_vlists;
53 import static gen.lib.dotgen.mincross__c.rec_save_vlists;
54 import static smetana.core.JUtils.EQ;
55 import static smetana.core.JUtilsDebug.ENTERING;
56 import static smetana.core.JUtilsDebug.LEAVING;
57 import static smetana.core.Macro.ALLOC_Agnode_s;
58 import static smetana.core.Macro.ALLOC_ST_rank_t;
59 import static smetana.core.Macro.ED_adjacent;
60 import static smetana.core.Macro.ED_dist;
61 import static smetana.core.Macro.ED_edge_type;
62 import static smetana.core.Macro.ED_head_port;
63 import static smetana.core.Macro.ED_label;
64 import static smetana.core.Macro.ED_tail_port;
65 import static smetana.core.Macro.ED_to_virt;
66 import static smetana.core.Macro.GD_flip;
67 import static smetana.core.Macro.GD_maxrank;
68 import static smetana.core.Macro.GD_minrank;
69 import static smetana.core.Macro.GD_n_cluster;
70 import static smetana.core.Macro.GD_nlist;
71 import static smetana.core.Macro.GD_rank;
72 import static smetana.core.Macro.GD_ranksep;
73 import static smetana.core.Macro.MAX;
74 import static smetana.core.Macro.N;
75 import static smetana.core.Macro.ND_alg;
76 import static smetana.core.Macro.ND_coord;
77 import static smetana.core.Macro.ND_flat_in;
78 import static smetana.core.Macro.ND_flat_out;
79 import static smetana.core.Macro.ND_ht;
80 import static smetana.core.Macro.ND_in;
81 import static smetana.core.Macro.ND_label;
82 import static smetana.core.Macro.ND_lw;
83 import static smetana.core.Macro.ND_next;
84 import static smetana.core.Macro.ND_node_type;
85 import static smetana.core.Macro.ND_order;
86 import static smetana.core.Macro.ND_other;
87 import static smetana.core.Macro.ND_out;
88 import static smetana.core.Macro.ND_rank;
89 import static smetana.core.Macro.ND_rw;
90 import static smetana.core.Macro.NOT;
91 import static smetana.core.Macro.UNSUPPORTED;
92 import h.ST_Agedge_s;
93 import h.ST_Agnode_s;
94 import h.ST_Agraph_s;
95 import h.ST_pointf;
96 import h.ST_rank_t;
97 import smetana.core.__ptr__;
98
99 public class flat__c {
100 //1 2digov3edok6d5srhgtlmrycs
101 // extern lt_symlist_t lt_preloaded_symbols[]
102
103
104 //1 baedz5i9est5csw3epz3cv7z
105 // typedef Ppoly_t Ppolyline_t
106
107
108 //1 9k44uhd5foylaeoekf3llonjq
109 // extern Dtmethod_t* Dtset
110
111
112 //1 1ahfywsmzcpcig2oxm7pt9ihj
113 // extern Dtmethod_t* Dtbag
114
115
116 //1 anhghfj3k7dmkudy2n7rvt31v
117 // extern Dtmethod_t* Dtoset
118
119
120 //1 5l6oj1ux946zjwvir94ykejbc
121 // extern Dtmethod_t* Dtobag
122
123
124 //1 2wtf222ak6cui8cfjnw6w377z
125 // extern Dtmethod_t* Dtlist
126
127
128 //1 d1s1s6ibtcsmst88e3057u9r7
129 // extern Dtmethod_t* Dtstack
130
131
132 //1 axa7mflo824p6fspjn1rdk0mt
133 // extern Dtmethod_t* Dtqueue
134
135
136 //1 ega812utobm4xx9oa9w9ayij6
137 // extern Dtmethod_t* Dtdeque
138
139
140 //1 cyfr996ur43045jv1tjbelzmj
141 // extern Dtmethod_t* Dtorder
142
143
144 //1 wlofoiftbjgrrabzb2brkycg
145 // extern Dtmethod_t* Dttree
146
147
148 //1 12bds94t7voj7ulwpcvgf6agr
149 // extern Dtmethod_t* Dthash
150
151
152 //1 9lqknzty480cy7zsubmabkk8h
153 // extern Dtmethod_t _Dttree
154
155
156 //1 bvn6zkbcp8vjdhkccqo1xrkrb
157 // extern Dtmethod_t _Dthash
158
159
160 //1 9lidhtd6nsmmv3e7vjv9e10gw
161 // extern Dtmethod_t _Dtlist
162
163
164 //1 34ujfamjxo7xn89u90oh2k6f8
165 // extern Dtmethod_t _Dtqueue
166
167
168 //1 3jy4aceckzkdv950h89p4wjc8
169 // extern Dtmethod_t _Dtstack
170
171
172 //1 8dfqgf3u1v830qzcjqh9o8ha7
173 // extern Agmemdisc_t AgMemDisc
174
175
176 //1 18k2oh2t6llfsdc5x0wlcnby8
177 // extern Agiddisc_t AgIdDisc
178
179
180 //1 a4r7hi80gdxtsv4hdoqpyiivn
181 // extern Agiodisc_t AgIoDisc
182
183
184 //1 bnzt5syjb7mgeru19114vd6xx
185 // extern Agdisc_t AgDefaultDisc
186
187
188 //1 35y2gbegsdjilegaribes00mg
189 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
190
191
192 //1 c2rygslq6bcuka3awmvy2b3ow
193 // typedef Agsubnode_t Agnoderef_t
194
195
196 //1 xam6yv0dcsx57dtg44igpbzn
197 // typedef Dtlink_t Agedgeref_t
198
199
200 //1 nye6dsi1twkbddwo9iffca1j
201 // extern char *Version
202
203
204 //1 65mu6k7h7lb7bx14jpiw7iyxr
205 // extern char **Files
206
207
208 //1 2rpjdzsdyrvomf00zcs3u3dyn
209 // extern const char **Lib
210
211
212 //1 6d2f111lntd2rsdt4gswh5909
213 // extern char *CmdName
214
215
216 //1 a0ltq04fpeg83soa05a2fkwb2
217 // extern char *specificFlags
218
219
220 //1 1uv30qeqq2jh6uznlr4dziv0y
221 // extern char *specificItems
222
223
224 //1 7i4hkvngxe3x7lmg5h6b3t9g3
225 // extern char *Gvfilepath
226
227
228 //1 9jp96pa73kseya3w6sulxzok6
229 // extern char *Gvimagepath
230
231
232 //1 40ylumfu7mrvawwf4v2asvtwk
233 // extern unsigned char Verbose
234
235
236 //1 93st8awjy1z0h07n28qycbaka
237 // extern unsigned char Reduce
238
239
240 //1 f2vs67ts992erf8onwfglurzp
241 // extern int MemTest
242
243
244 //1 c6f8whijgjwwagjigmxlwz3gb
245 // extern char *HTTPServerEnVar
246
247
248 //1 cp4hzj7p87m7arw776d3bt7aj
249 // extern char *Output_file_name
250
251
252 //1 a3rqagofsgraie6mx0krzkgsy
253 // extern int graphviz_errors
254
255
256 //1 5up05203r4kxvjn1m4njcgq5x
257 // extern int Nop
258
259
260 //1 umig46cco431x14b3kosde2t
261 // extern double PSinputscale
262
263
264 //1 52bj6v8fqz39khasobljfukk9
265 // extern int Syntax_errors
266
267
268 //1 9ekf2ina8fsjj6y6i0an6somj
269 // extern int Show_cnt
270
271
272 //1 38di5qi3nkxkq65onyvconk3r
273 // extern char** Show_boxes
274
275
276 //1 6ri6iu712m8mpc7t2670etpcw
277 // extern int CL_type
278
279
280 //1 bomxiw3gy0cgd1ydqtek7fpxr
281 // extern unsigned char Concentrate
282
283
284 //1 cqy3gqgcq8empdrbnrhn84058
285 // extern double Epsilon
286
287
288 //1 64slegfoouqeg0rmbyjrm8wgr
289 // extern int MaxIter
290
291
292 //1 88wdinpnmfs4mab4aw62yb0bg
293 // extern int Ndim
294
295
296 //1 8bbad3ogcelqnnvo5br5s05gq
297 // extern int State
298
299
300 //1 17rnd8q45zclfn68qqst2vxxn
301 // extern int EdgeLabelsDone
302
303
304 //1 ymx1z4s8cznjifl2d9f9m8jr
305 // extern double Initial_dist
306
307
308 //1 a33bgl0c3uqb3trx419qulj1x
309 // extern double Damping
310
311
312 //1 d9lvrpjg1r0ojv40pod1xwk8n
313 // extern int Y_invert
314
315
316 //1 71efkfs77q5tq9ex6y0f4kanh
317 // extern int GvExitOnUsage
318
319
320 //1 4xy2dkdkv0acs2ue9eca8hh2e
321 // extern Agsym_t *G_activepencolor, *G_activefillcolor, *G_selectedpencolor, *G_selectedfillcolor, *G_visitedpencolor, *G_visitedfillcolor, *G_deletedpencolor, *G_deletedfillcolor, *G_ordering, *G_peripheries, *G_penwidth, *G_gradientangle, *G_margin
322
323
324 //1 9js5gxgzr74eakgtfhnbws3t9
325 // extern Agsym_t *N_height, *N_width, *N_shape, *N_color, *N_fillcolor, *N_activepencolor, *N_activefillcolor, *N_selectedpencolor, *N_selectedfillcolor, *N_visitedpencolor, *N_visitedfillcolor, *N_deletedpencolor, *N_deletedfillcolor, *N_fontsize, *N_fontname, *N_fontcolor, *N_margin, *N_label, *N_xlabel, *N_nojustify, *N_style, *N_showboxes, *N_sides, *N_peripheries, *N_ordering, *N_orientation, *N_skew, *N_distortion, *N_fixed, *N_imagescale, *N_layer, *N_group, *N_comment, *N_vertices, *N_z, *N_penwidth, *N_gradientangle
326
327
328 //1 anqllp9sj7wo45w6bm11j8trn
329 // extern Agsym_t *E_weight, *E_minlen, *E_color, *E_fillcolor, *E_activepencolor, *E_activefillcolor, *E_selectedpencolor, *E_selectedfillcolor, *E_visitedpencolor, *E_visitedfillcolor, *E_deletedpencolor, *E_deletedfillcolor, *E_fontsize, *E_fontname, *E_fontcolor, *E_label, *E_xlabel, *E_dir, *E_style, *E_decorate, *E_showboxes, *E_arrowsz, *E_constr, *E_layer, *E_comment, *E_label_float, *E_samehead, *E_sametail, *E_arrowhead, *E_arrowtail, *E_headlabel, *E_taillabel, *E_labelfontsize, *E_labelfontname, *E_labelfontcolor, *E_labeldistance, *E_labelangle, *E_tailclip, *E_headclip, *E_penwidth
330
331
332 //1 bh0z9puipqw7gymjd5h5b8s6i
333 // extern struct fdpParms_s* fdp_parms
334
335
336
337
338 //3 ciez0pfggxdljedzsbklq49f0
339 // static inline point pointof(int x, int y)
340 public static Object pointof(Object... arg) {
341 UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); // static inline point pointof(int x, int y)
342 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
343 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
344 UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); // r.x = x;
345 UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); // r.y = y;
346 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
347 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
348
349 throw new UnsupportedOperationException();
350 }
351
352
353
354
355 //3 c1s4k85p1cdfn176o3uryeros
356 // static inline pointf pointfof(double x, double y)
357 public static ST_pointf pointfof(double x, double y) {
358 // WARNING!! STRUCT
359 return pointfof_w_(x, y).copy();
360 }
361 private static ST_pointf pointfof_w_(double x, double y) {
362 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
363 try {
364 final ST_pointf r = new ST_pointf();
365 r.setDouble("x", x);
366 r.setDouble("y", y);
367 return r;
368 } finally {
369 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
370 }
371 }
372
373
374
375
376 //3 7cufnfitrh935ew093mw0i4b7
377 // static inline box boxof(int llx, int lly, int urx, int ury)
378 public static Object boxof(Object... arg) {
379 UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); // static inline box boxof(int llx, int lly, int urx, int ury)
380 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
381 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
382 UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); // b.LL.x = llx, b.LL.y = lly;
383 UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); // b.UR.x = urx, b.UR.y = ury;
384 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
385 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
386
387 throw new UnsupportedOperationException();
388 }
389
390
391
392
393
394
395 //3 1n5xl70wxuabyf97mclvilsm6
396 // static inline point add_point(point p, point q)
397 public static Object add_point(Object... arg) {
398 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
399 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
400 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
401 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
402 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
403 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
404 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
405
406 throw new UnsupportedOperationException();
407 }
408
409
410
411
412 //3 arrsbik9b5tnfcbzsm8gr2chx
413 // static inline pointf add_pointf(pointf p, pointf q)
414 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
415 // WARNING!! STRUCT
416 return add_pointf_w_(p.copy(), q.copy()).copy();
417 }
418 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
419 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
420 try {
421 final ST_pointf r = new ST_pointf();
422 r.setDouble("x", p.x + q.x);
423 r.setDouble("y", p.y + q.y);
424 return r;
425 } finally {
426 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
427 }
428 }
429
430
431
432
433 //3 ai2dprak5y6obdsflguh5qbd7
434 // static inline point sub_point(point p, point q)
435 public static Object sub_point(Object... arg) {
436 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
437 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
438 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
439 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
440 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
441 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
442 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
443
444 throw new UnsupportedOperationException();
445 }
446
447
448
449
450 //3 16f6pyogcv3j7n2p0n8giqqgh
451 // static inline pointf sub_pointf(pointf p, pointf q)
452 public static Object sub_pointf(Object... arg) {
453 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
454 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
455 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
456 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
457 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
458 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
459 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
460
461 throw new UnsupportedOperationException();
462 }
463
464
465
466
467 //3 9k50jgrhc4f9824vf8ony74rw
468 // static inline point mid_point(point p, point q)
469 public static Object mid_point(Object... arg) {
470 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
471 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
472 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
473 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
474 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
475 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
476 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
477
478 throw new UnsupportedOperationException();
479 }
480
481
482
483
484 //3 59c4f7im0ftyowhnzzq2v9o1x
485 // static inline pointf mid_pointf(pointf p, pointf q)
486 public static Object mid_pointf(Object... arg) {
487 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
488 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
489 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
490 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
491 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
492 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
493 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
494
495 throw new UnsupportedOperationException();
496 }
497
498
499
500
501 //3 5r18p38gisvcx3zsvbb9saixx
502 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
503 public static Object interpolate_pointf(Object... arg) {
504 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
505 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
506 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
507 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
508 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
509 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
510 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
511
512 throw new UnsupportedOperationException();
513 }
514
515
516
517
518 //3 bxzrv2ghq04qk5cbyy68s4mol
519 // static inline point exch_xy(point p)
520 public static Object exch_xy(Object... arg) {
521 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
522 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
523 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
524 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
525 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
526 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
527 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
528
529 throw new UnsupportedOperationException();
530 }
531
532
533
534
535 //3 9lt3e03tac6h6sydljrcws8fd
536 // static inline pointf exch_xyf(pointf p)
537 public static Object exch_xyf(Object... arg) {
538 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
539 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
540 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
541 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
542 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
543 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
544 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
545
546 throw new UnsupportedOperationException();
547 }
548
549
550
551
552 //3 8l9qhieokthntzdorlu5zn29b
553 // static inline box box_bb(box b0, box b1)
554 public static Object box_bb(Object... arg) {
555 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
556 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
557 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
558 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
559 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
560 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
561 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
562 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
563 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
564
565 throw new UnsupportedOperationException();
566 }
567
568
569
570
571 //3 clws9h3bbjm0lw3hexf8nl4c4
572 // static inline boxf boxf_bb(boxf b0, boxf b1)
573 public static Object boxf_bb(Object... arg) {
574 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
575 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
576 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
577 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
578 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
579 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
580 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
581 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
582 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
583
584 throw new UnsupportedOperationException();
585 }
586
587
588
589
590 //3 bit6ycxo1iqd2al92y8gkzlvb
591 // static inline box box_intersect(box b0, box b1)
592 public static Object box_intersect(Object... arg) {
593 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
594 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
595 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
596 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
597 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
598 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
599 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
600 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
601 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
602
603 throw new UnsupportedOperationException();
604 }
605
606
607
608
609 //3 8gfybie7k6pgb3o1a6llgpwng
610 // static inline boxf boxf_intersect(boxf b0, boxf b1)
611 public static Object boxf_intersect(Object... arg) {
612 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
613 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
614 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
615 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
616 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
617 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
618 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
619 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
620 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
621
622 throw new UnsupportedOperationException();
623 }
624
625
626
627
628 //3 7z8j2quq65govaaejrz7b4cvb
629 // static inline int box_overlap(box b0, box b1)
630 public static Object box_overlap(Object... arg) {
631 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
632 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
633 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
634 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
635
636 throw new UnsupportedOperationException();
637 }
638
639
640
641
642 //3 4z0suuut2acsay5m8mg9dqjdu
643 // static inline int boxf_overlap(boxf b0, boxf b1)
644 public static Object boxf_overlap(Object... arg) {
645 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
646 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
647 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
648 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
649
650 throw new UnsupportedOperationException();
651 }
652
653
654
655
656 //3 dd34swz5rmdgu3a2np2a4h1dy
657 // static inline int box_contains(box b0, box b1)
658 public static Object box_contains(Object... arg) {
659 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
660 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
661 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
662 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
663
664 throw new UnsupportedOperationException();
665 }
666
667
668
669
670 //3 8laj1bspbu2i1cjd9upr7xt32
671 // static inline int boxf_contains(boxf b0, boxf b1)
672 public static Object boxf_contains(Object... arg) {
673 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
674 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
675 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
676 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
677
678 throw new UnsupportedOperationException();
679 }
680
681
682
683
684 //3 4wf5swkz24xx51ja2dynbycu1
685 // static inline pointf perp (pointf p)
686 public static Object perp(Object... arg) {
687 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
688 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
689 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
690 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
691 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
692 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
693 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
694
695 throw new UnsupportedOperationException();
696 }
697
698
699
700
701 //3 6dtlpzv4mvgzb9o0b252yweuv
702 // static inline pointf scale (double c, pointf p)
703 public static Object scale(Object... arg) {
704 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
705 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
706 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
707 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
708 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
709 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
710 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
711
712 throw new UnsupportedOperationException();
713 }
714
715
716
717
718 //3 e0gtvsxlvztmwu8yy44wfvf97
719 // static node_t *make_vn_slot(graph_t * g, int r, int pos)
720 public static ST_Agnode_s make_vn_slot(ST_Agraph_s g, int r, int pos) {
721 ENTERING("e0gtvsxlvztmwu8yy44wfvf97","make_vn_slot");
722 try {
723 int i;
724 ST_Agnode_s.ArrayOfStar v;
725 ST_Agnode_s n;
726 v = ALLOC_Agnode_s(GD_rank(g).get(r).n + 2, (ST_Agnode_s.ArrayOfStar) GD_rank(g).get(r).v);
727 GD_rank(g).plus(r).setPtr("v", v);
728 for (i = GD_rank(g).get(r).n; i > pos; i--) {
729 v.plus(i).setPtr(v.plus(i - 1).getPtr());
730 ND_order(v.get(i), ND_order(v.get(i))+1);
731 }
732 n = virtual_node(g);
733 v.plus(pos).setPtr(n);
734 ND_order(n, pos);
735 ND_rank(n, r);
736 GD_rank(g).plus(r).setInt("n", GD_rank(g).get(r).n+1);
737 v.plus(GD_rank(g).get(r).n).setPtr(null);
738 return (ST_Agnode_s) v.get(pos);
739 } finally {
740 LEAVING("e0gtvsxlvztmwu8yy44wfvf97","make_vn_slot");
741 }
742 }
743
744
745
746
747 //3 d64wt9oqphauv3hp4axbg2ep3
748 // static void findlr(node_t * u, node_t * v, int *lp, int *rp)
749 public static void findlr(ST_Agnode_s u, ST_Agnode_s v, int lp[], int rp[]) {
750 ENTERING("d64wt9oqphauv3hp4axbg2ep3","findlr");
751 try {
752 int l, r;
753 l = ND_order(u);
754 r = ND_order(v);
755 if (l > r) {
756 int t = l;
757 l = r;
758 r = t;
759 }
760 lp[0] = l;
761 rp[0] = r;
762 } finally {
763 LEAVING("d64wt9oqphauv3hp4axbg2ep3","findlr");
764 }
765 }
766
767
768
769
770 //3 bwjjmaydx5a2fnpeoligkha0r
771 // static void setbounds(node_t * v, int *bounds, int lpos, int rpos)
772 public static void setbounds(ST_Agnode_s v, int bounds[], int lpos[], int rpos[]) {
773 ENTERING("bwjjmaydx5a2fnpeoligkha0r","setbounds");
774 try {
775 int i, ord;
776 int[] l = new int[1], r = new int[1];
777 ST_Agedge_s f;
778 if (ND_node_type(v) == 1) {
779 ord = ND_order(v);
780 if (ND_in(v).size == 0) { /* flat */
781 assert(ND_out(v).size == 2);
782 findlr((ST_Agnode_s) aghead(ND_out(v).getFromList(0)), (ST_Agnode_s) aghead(ND_out(v).getFromList(1)), l,
783 r);
784 /* the other flat edge could be to the left or right */
785 if (r[0] <= lpos[0])
786 bounds[2] = bounds[0] = ord;
787 else if (l[0] >= rpos[0])
788 bounds[3] = bounds[1] = ord;
789 /* could be spanning this one */
790 else if ((l[0] < lpos[0]) && (r[0] > rpos[0])); /* ignore */
791 /* must have intersecting ranges */
792 else {
793 if ((l[0] < lpos[0]) || ((l[0] == lpos[0]) && (r[0] < rpos[0])))
794 bounds[2] = ord;
795 if ((r[0] > rpos[0]) || ((r[0] == rpos[0]) && (l[0] > lpos[0])))
796 bounds[3] = ord;
797 }
798 } else { /* forward */
799 boolean onleft, onright;
800 onleft = onright = false;
801 for (i = 0; (f = (ST_Agedge_s) ND_out(v).getFromList(i))!=null; i++) {
802 if (ND_order(aghead(f)) <= lpos[0]) {
803 onleft = NOT(false);
804 continue;
805 }
806 if (ND_order(aghead(f)) >= rpos[0]) {
807 onright = NOT(false);
808 continue;
809 }
810 }
811 if (onleft && (onright == false))
812 bounds[0] = ord + 1;
813 if (onright && (onleft == false))
814 bounds[1] = ord - 1;
815 }
816 }
817 } finally {
818 LEAVING("bwjjmaydx5a2fnpeoligkha0r","setbounds");
819 }
820 }
821
822
823
824
825 //3 3bc4otcsxj1dujj49ydbb19oa
826 // static int flat_limits(graph_t * g, edge_t * e)
827 public static int flat_limits(ST_Agraph_s g, ST_Agedge_s e) {
828 ENTERING("3bc4otcsxj1dujj49ydbb19oa","flat_limits");
829 try {
830 int lnode, rnode, r, pos;
831 int[] lpos = new int[1], rpos = new int[1];
832 int bounds[] = new int[4];
833 ST_Agnode_s.ArrayOfStar rank;
834 r = ND_rank(agtail(e)) - 1;
835 rank = GD_rank(g).get(r).v;
836 lnode = 0;
837 rnode = GD_rank(g).get(r).n - 1;
838 bounds[0] = bounds[2] = lnode - 1;
839 bounds[1] = bounds[3] = rnode + 1;
840 findlr(agtail(e), aghead(e), lpos, rpos);
841 while (lnode <= rnode) {
842 setbounds((ST_Agnode_s)rank.get(lnode), bounds, lpos, rpos);
843 if (lnode != rnode)
844 setbounds((ST_Agnode_s)rank.get(rnode), bounds, lpos, rpos);
845 lnode++;
846 rnode--;
847 if (bounds[1] - bounds[0] <= 1)
848 break;
849 }
850 if (bounds[0] <= bounds[1])
851 pos = (bounds[0] + bounds[1] + 1) / 2;
852 else
853 pos = (bounds[2] + bounds[3] + 1) / 2;
854 return pos;
855 } finally {
856 LEAVING("3bc4otcsxj1dujj49ydbb19oa","flat_limits");
857 }
858 }
859
860
861
862
863 //3 4cw9yo9ap8ze1r873v6jat4yc
864 // static void flat_node(edge_t * e)
865 public static void flat_node(ST_Agedge_s e) {
866 ENTERING("4cw9yo9ap8ze1r873v6jat4yc","flat_node");
867 try {
868 int r, place, ypos, h2;
869 ST_Agraph_s g;
870 ST_Agnode_s n, vn;
871 ST_Agedge_s ve;
872 final ST_pointf dimen = new ST_pointf();
873 if (ED_label(e) == null)
874 return;
875 g = dot_root(agtail(e));
876 r = ND_rank(agtail(e));
877 place = flat_limits(g, e);
878 /* grab ypos = LL.y of label box before make_vn_slot() */
879 if ((n = (ST_Agnode_s) GD_rank(g).get(r - 1).v.get(0))!=null)
880 ypos = (int)(ND_coord(n).y - GD_rank(g).get(r - 1).ht1);
881 else {
882 n = (ST_Agnode_s) GD_rank(g).get(r).v.get(0);
883 ypos = (int)(ND_coord(n).y + GD_rank(g).get(r).ht2 + GD_ranksep(g));
884 }
885 vn = make_vn_slot(g, r - 1, place);
886 dimen.___(ED_label(e).dimen);
887 if (GD_flip(g)!=0) {
888 double f = dimen.x;
889 dimen.setDouble("x", dimen.y);
890 dimen.setDouble("y", f);
891 }
892 ND_ht(vn, dimen.y);
893 h2 = (int)(ND_ht(vn) / 2);
894 ND_rw(vn, dimen.x / 2);
895 ND_lw(vn, ND_rw(vn));
896 ND_label(vn, ED_label(e));
897 ND_coord(vn).setDouble("y", ypos + h2);
898 ve = virtual_edge(vn, agtail(e), e); /* was NULL? */
899 ED_tail_port(ve).p.setDouble("x", -ND_lw(vn));
900 ED_head_port(ve).p.setDouble("x", ND_rw(agtail(e)));
901 ED_edge_type(ve, 4);
902 ve = virtual_edge(vn, aghead(e), e);
903 ED_tail_port(ve).p.setDouble("x", ND_rw(vn));
904 ED_head_port(ve).p.setDouble("x", ND_lw(aghead(e)));
905 ED_edge_type(ve, 4);
906 /* another assumed symmetry of ht1/ht2 of a label node */
907 if (GD_rank(g).get(r - 1).ht1 < h2)
908 GD_rank(g).plus(r - 1).setDouble("ht1", h2);
909 if (GD_rank(g).get(r - 1).ht2 < h2)
910 GD_rank(g).plus(r - 1).setDouble("ht2", h2);
911 ND_alg(vn, e);
912 } finally {
913 LEAVING("4cw9yo9ap8ze1r873v6jat4yc","flat_node");
914 }
915 }
916
917
918
919
920 //3 1lopavodoru6ee52snd5l6swd
921 // static void abomination(graph_t * g)
922 public static void abomination(ST_Agraph_s g) {
923 ENTERING("1lopavodoru6ee52snd5l6swd","abomination");
924 try {
925 int r;
926 ST_rank_t.Array2 rptr;
927 assert(GD_minrank(g) == 0);
928 /* 3 = one for new rank, one for sentinel, one for off-by-one */
929 r = GD_maxrank(g) + 3;
930 rptr = ALLOC_ST_rank_t(r, (ST_rank_t.Array2) GD_rank(g));
931 GD_rank(g, rptr.plus(1));
932 for (r = GD_maxrank(g); r >= 0; r--)
933 GD_rank(g).get(r).setStruct(GD_rank(g).get(r - 1).getStruct());
934 GD_rank(g).plus(r).setInt("n", 0);
935 GD_rank(g).plus(r).setInt("an", 0);
936 GD_rank(g).plus(r).setPtr("v", new ST_Agnode_s.ArrayOfStar(2));
937 GD_rank(g).plus(r).setPtr("av", GD_rank(g).get(r).v);
938 GD_rank(g).plus(r).setPtr("flat", null);
939 GD_rank(g).plus(r).setDouble("ht1", 1);
940 GD_rank(g).plus(r).setDouble("ht2", 1);
941 GD_rank(g).plus(r).setDouble("pht1", 1);
942 GD_rank(g).plus(r).setDouble("pht2", 1);
943 GD_minrank(g, GD_minrank(g)-1);
944 } finally {
945 LEAVING("1lopavodoru6ee52snd5l6swd","abomination");
946 }
947 }
948
949
950
951
952 //3 ctujx6e8k3rzv08h6gswdcaqs
953 // static void checkFlatAdjacent (edge_t* e)
954 public static void checkFlatAdjacent(ST_Agedge_s e) {
955 ENTERING("ctujx6e8k3rzv08h6gswdcaqs","checkFlatAdjacent");
956 try {
957 ST_Agnode_s tn = agtail(e);
958 ST_Agnode_s hn = aghead(e);
959 int i, lo, hi;
960 ST_Agnode_s n;
961 ST_rank_t.Array2 rank;
962 if (ND_order(tn) < ND_order(hn)) {
963 lo = ND_order(tn);
964 hi = ND_order(hn);
965 }
966 else {
967 lo = ND_order(hn);
968 hi = ND_order(tn);
969 }
970 rank = GD_rank(dot_root(tn)).plus(ND_rank(tn));
971 for (i = lo + 1; i < hi; i++) {
972 n = (ST_Agnode_s) rank.getPtr().v.get(i);
973 if ((ND_node_type(n) == 1 && ND_label(n)!=null) ||
974 ND_node_type(n) == 0)
975 break;
976 }
977 if (i == hi) { /* adjacent edge */
978 do {
979 ED_adjacent(e, 1);
980 e = ED_to_virt(e);
981 } while (e!=null);
982 }
983 } finally {
984 LEAVING("ctujx6e8k3rzv08h6gswdcaqs","checkFlatAdjacent");
985 }
986 }
987
988
989
990
991 //3 bjwwj6ftkm0gv04cf1edqeaw6
992 // int flat_edges(graph_t * g)
993 public static int flat_edges(ST_Agraph_s g) {
994 ENTERING("bjwwj6ftkm0gv04cf1edqeaw6","flat_edges");
995 try {
996 int i, j, reset = 0;
997 ST_Agnode_s n;
998 ST_Agedge_s e;
999 int found = 0;
1000 for (n = GD_nlist(g); n!=null; n = ND_next(n)) {
1001 if (ND_flat_out(n).listNotNull()) {
1002 for (j = 0; (e = (ST_Agedge_s) ND_flat_out(n).getFromList(j))!=null; j++) {
1003 checkFlatAdjacent (e);
1004 }
1005 }
1006 for (j = 0; j < ND_other(n).size; j++) {
1007 e = (ST_Agedge_s) ND_other(n).getFromList(j);
1008 if (ND_rank(aghead(e)) == ND_rank(agtail(e)))
1009 checkFlatAdjacent (e);
1010 }
1011 }
1012 if ((GD_rank(g).get(0).flat!=null) || (GD_n_cluster(g) > 0)) {
1013 for (i = 0; (n = (ST_Agnode_s) GD_rank(g).get(0).v.get(i))!=null; i++) {
1014 for (j = 0; (e = (ST_Agedge_s) ND_flat_in(n).getFromList(j))!=null; j++) {
1015 if ((ED_label(e)!=null) && N(ED_adjacent(e))) {
1016 abomination(g);
1017 found = 1;
1018 break;
1019 }
1020 }
1021 if (found!=0)
1022 break;
1023 }
1024 }
1025 rec_save_vlists(g);
1026 for (n = GD_nlist(g); n!=null; n = ND_next(n)) {
1027 /* if n is the tail of any flat edge, one will be in flat_out */
1028 if (ND_flat_out(n).listNotNull()) {
1029 for (i = 0; (e = (ST_Agedge_s) ND_flat_out(n).getFromList(i))!=null; i++) {
1030 if (ED_label(e)!=null) {
1031 if (ED_adjacent(e)!=0) {
1032 if (GD_flip(g)!=0) ED_dist(e, ED_label(e).dimen.y);
1033 else ED_dist(e, ED_label(e).dimen.x);
1034 }
1035 else {
1036 reset = 1;
1037 flat_node(e);
1038 }
1039 }
1040 }
1041 /* look for other flat edges with labels */
1042 for (j = 0; j < ND_other(n).size; j++) {
1043 ST_Agedge_s le;
1044 e = (ST_Agedge_s) ND_other(n).getFromList(j);
1045 if (ND_rank(agtail(e)) != ND_rank(aghead(e))) continue;
1046 if (EQ(agtail(e), aghead(e))) continue; /* skip loops */
1047 le = e;
1048 while (ED_to_virt(le)!=null) le = ED_to_virt(le);
1049 ED_adjacent(e, ED_adjacent(le));
1050 if (ED_label(e)!=null) {
1051 if (ED_adjacent(e)!=0) {
1052 double lw;
1053 if (GD_flip(g)!=0) lw = ED_label(e).dimen.y;
1054 else lw = ED_label(e).dimen.x;
1055 ED_dist(le, MAX(lw,ED_dist(le)));
1056 }
1057 else {
1058 reset = 1;
1059 flat_node(e);
1060 }
1061 }
1062 }
1063 }
1064 }
1065 if (reset!=0)
1066 rec_reset_vlists(g);
1067 return reset;
1068 } finally {
1069 LEAVING("bjwwj6ftkm0gv04cf1edqeaw6","flat_edges");
1070 }
1071 }
1072
1073
1074 }