Debian Codegraph @

src/gen/lib/dotgen/fastgr__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.cgraph.obj__c.agroot;
50 import static gen.lib.dotgen.dotinit__c.dot_root;
51 import static smetana.core.JUtils.EQ;
52 import static smetana.core.JUtilsDebug.ENTERING;
53 import static smetana.core.JUtilsDebug.LEAVING;
54 import static smetana.core.Macro.AGINEDGE;
55 import static smetana.core.Macro.AGNODE;
56 import static smetana.core.Macro.AGOUTEDGE;
57 import static smetana.core.Macro.AGSEQ;
58 import static smetana.core.Macro.AGTYPE;
59 import static smetana.core.Macro.ED_count;
60 import static smetana.core.Macro.ED_edge_type;
61 import static smetana.core.Macro.ED_head_port;
62 import static smetana.core.Macro.ED_minlen;
63 import static smetana.core.Macro.ED_tail_port;
64 import static smetana.core.Macro.ED_to_orig;
65 import static smetana.core.Macro.ED_to_virt;
66 import static smetana.core.Macro.ED_weight;
67 import static smetana.core.Macro.ED_xpenalty;
68 import static smetana.core.Macro.GD_has_flat_edges;
69 import static smetana.core.Macro.GD_n_nodes;
70 import static smetana.core.Macro.GD_nlist;
71 import static smetana.core.Macro.ND_UF_size;
72 import static smetana.core.Macro.ND_flat_in;
73 import static smetana.core.Macro.ND_flat_out;
74 import static smetana.core.Macro.ND_ht;
75 import static smetana.core.Macro.ND_in;
76 import static smetana.core.Macro.ND_lw;
77 import static smetana.core.Macro.ND_next;
78 import static smetana.core.Macro.ND_node_type;
79 import static smetana.core.Macro.ND_other;
80 import static smetana.core.Macro.ND_out;
81 import static smetana.core.Macro.ND_prev;
82 import static smetana.core.Macro.ND_rw;
83 import static smetana.core.Macro.NOT;
84 import static smetana.core.Macro.UNSUPPORTED;
85 import static smetana.core.Macro.aghead;
86 import static smetana.core.Macro.agtail;
87 import static smetana.core.Macro.alloc_elist;
88 import static smetana.core.Macro.elist_append;
89 import h.ST_Agedge_s;
90 import h.ST_Agedgeinfo_t;
91 import h.ST_Agedgepair_s;
92 import h.ST_Agnode_s;
93 import h.ST_Agnodeinfo_t;
94 import h.ST_Agraph_s;
95 import h.ST_Agrec_s;
96 import h.ST_elist;
97 import h.ST_pointf;
98
99 public class fastgr__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
396
397 //3 1n5xl70wxuabyf97mclvilsm6
398 // static inline point add_point(point p, point q)
399 public static Object add_point(Object... arg) {
400 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
401 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
402 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
403 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
404 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
405 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
406 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
407
408 throw new UnsupportedOperationException();
409 }
410
411
412
413
414 //3 arrsbik9b5tnfcbzsm8gr2chx
415 // static inline pointf add_pointf(pointf p, pointf q)
416 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
417 // WARNING!! STRUCT
418 return add_pointf_w_(p.copy(), q.copy()).copy();
419 }
420 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
421 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
422 try {
423 final ST_pointf r = new ST_pointf();
424 r.setDouble("x", p.x + q.x);
425 r.setDouble("y", p.y + q.y);
426 return r;
427 } finally {
428 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
429 }
430 }
431
432
433
434
435 //3 ai2dprak5y6obdsflguh5qbd7
436 // static inline point sub_point(point p, point q)
437 public static Object sub_point(Object... arg) {
438 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
439 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
440 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
441 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
442 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
443 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
444 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
445
446 throw new UnsupportedOperationException();
447 }
448
449
450
451
452 //3 16f6pyogcv3j7n2p0n8giqqgh
453 // static inline pointf sub_pointf(pointf p, pointf q)
454 public static Object sub_pointf(Object... arg) {
455 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
456 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
457 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
458 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
459 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
460 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
461 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
462
463 throw new UnsupportedOperationException();
464 }
465
466
467
468
469 //3 9k50jgrhc4f9824vf8ony74rw
470 // static inline point mid_point(point p, point q)
471 public static Object mid_point(Object... arg) {
472 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
473 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
474 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
475 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
476 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // r.y = (p.y + q.y) / 2;
477 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
478 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
479
480 throw new UnsupportedOperationException();
481 }
482
483
484
485
486 //3 59c4f7im0ftyowhnzzq2v9o1x
487 // static inline pointf mid_pointf(pointf p, pointf q)
488 public static Object mid_pointf(Object... arg) {
489 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
490 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
491 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
492 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
493 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
494 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
495 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
496
497 throw new UnsupportedOperationException();
498 }
499
500
501
502
503 //3 5r18p38gisvcx3zsvbb9saixx
504 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
505 public static Object interpolate_pointf(Object... arg) {
506 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
507 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
508 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
509 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
510 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
511 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
512 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
513
514 throw new UnsupportedOperationException();
515 }
516
517
518
519
520 //3 bxzrv2ghq04qk5cbyy68s4mol
521 // static inline point exch_xy(point p)
522 public static Object exch_xy(Object... arg) {
523 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
524 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
525 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
526 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
527 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
528 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
529 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
530
531 throw new UnsupportedOperationException();
532 }
533
534
535
536
537 //3 9lt3e03tac6h6sydljrcws8fd
538 // static inline pointf exch_xyf(pointf p)
539 public static Object exch_xyf(Object... arg) {
540 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
541 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
542 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
543 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
544 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
545 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
546 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
547
548 throw new UnsupportedOperationException();
549 }
550
551
552
553
554 //3 8l9qhieokthntzdorlu5zn29b
555 // static inline box box_bb(box b0, box b1)
556 public static Object box_bb(Object... arg) {
557 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
558 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
559 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
560 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
561 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
562 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
563 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
564 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
565 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
566
567 throw new UnsupportedOperationException();
568 }
569
570
571
572
573 //3 clws9h3bbjm0lw3hexf8nl4c4
574 // static inline boxf boxf_bb(boxf b0, boxf b1)
575 public static Object boxf_bb(Object... arg) {
576 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
577 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
578 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
579 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
580 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
581 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
582 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(b0.UR.y, b1.UR.y);
583 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
584 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
585
586 throw new UnsupportedOperationException();
587 }
588
589
590
591
592 //3 bit6ycxo1iqd2al92y8gkzlvb
593 // static inline box box_intersect(box b0, box b1)
594 public static Object box_intersect(Object... arg) {
595 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
596 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
597 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
598 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
599 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
600 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
601 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
602 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
603 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
604
605 throw new UnsupportedOperationException();
606 }
607
608
609
610
611 //3 8gfybie7k6pgb3o1a6llgpwng
612 // static inline boxf boxf_intersect(boxf b0, boxf b1)
613 public static Object boxf_intersect(Object... arg) {
614 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
615 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
616 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
617 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
618 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
619 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
620 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
621 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
622 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
623
624 throw new UnsupportedOperationException();
625 }
626
627
628
629
630 //3 7z8j2quq65govaaejrz7b4cvb
631 // static inline int box_overlap(box b0, box b1)
632 public static Object box_overlap(Object... arg) {
633 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
634 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
635 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
636 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
637
638 throw new UnsupportedOperationException();
639 }
640
641
642
643
644 //3 4z0suuut2acsay5m8mg9dqjdu
645 // static inline int boxf_overlap(boxf b0, boxf b1)
646 public static Object boxf_overlap(Object... arg) {
647 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
648 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
649 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
650 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
651
652 throw new UnsupportedOperationException();
653 }
654
655
656
657
658 //3 dd34swz5rmdgu3a2np2a4h1dy
659 // static inline int box_contains(box b0, box b1)
660 public static Object box_contains(Object... arg) {
661 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
662 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
663 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
664 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
665
666 throw new UnsupportedOperationException();
667 }
668
669
670
671
672 //3 8laj1bspbu2i1cjd9upr7xt32
673 // static inline int boxf_contains(boxf b0, boxf b1)
674 public static Object boxf_contains(Object... arg) {
675 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
676 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
677 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
678 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
679
680 throw new UnsupportedOperationException();
681 }
682
683
684
685
686 //3 4wf5swkz24xx51ja2dynbycu1
687 // static inline pointf perp (pointf p)
688 public static Object perp(Object... arg) {
689 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
690 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
691 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
692 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
693 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
694 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
695 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
696
697 throw new UnsupportedOperationException();
698 }
699
700
701
702
703 //3 6dtlpzv4mvgzb9o0b252yweuv
704 // static inline pointf scale (double c, pointf p)
705 public static Object scale(Object... arg) {
706 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
707 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
708 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
709 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
710 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
711 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
712 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
713
714 throw new UnsupportedOperationException();
715 }
716
717
718
719
720 //3 econbrl314rr46qnvvw5e32j7
721 // static edge_t *ffe(node_t * u, elist uL, node_t * v, elist vL)
722 public static ST_Agedge_s ffe(ST_Agnode_s u, final ST_elist uL, ST_Agnode_s v, final ST_elist vL) {
723 // WARNING!! STRUCT
724 return ffe_w_(u, uL.copy(), v, vL.copy());
725 }
726 private static ST_Agedge_s ffe_w_(ST_Agnode_s u, final ST_elist uL, ST_Agnode_s v, final ST_elist vL) {
727 ENTERING("econbrl314rr46qnvvw5e32j7","ffe");
728 try {
729 int i;
730 ST_Agedge_s e = null;
731 if ((uL.size > 0) && (vL.size > 0)) {
732 if (uL.size < vL.size) {
733 for (i = 0; (e = (ST_Agedge_s) uL.getFromList(i))!=null; i++)
734 if (EQ(aghead(e), v))
735 break;
736 } else {
737 for (i = 0; (e = (ST_Agedge_s) vL.getFromList(i))!=null; i++)
738 if (EQ(agtail(e), u))
739 break;
740 }
741 } else
742 e = null;
743 return e;
744 } finally {
745 LEAVING("econbrl314rr46qnvvw5e32j7","ffe");
746 }
747 }
748
749
750
751
752 //3 1uygfrgur73lfy9vsjozwwupm
753 // edge_t *find_fast_edge(node_t * u, node_t * v)
754 public static ST_Agedge_s find_fast_edge(ST_Agnode_s u, ST_Agnode_s v) {
755 ENTERING("1uygfrgur73lfy9vsjozwwupm","find_fast_edge");
756 try {
757 return ffe(u, ND_out(u), v, ND_in(v));
758 } finally {
759 LEAVING("1uygfrgur73lfy9vsjozwwupm","find_fast_edge");
760 }
761 }
762
763
764
765
766 //3 1yw7ahdnxnexnicj552zqyyej
767 // static node_t* find_fast_node(graph_t * g, node_t * n)
768 public static ST_Agnode_s find_fast_node(ST_Agraph_s g, ST_Agnode_s n) {
769 ENTERING("1yw7ahdnxnexnicj552zqyyej","find_fast_node");
770 try {
771 ST_Agnode_s v;
772 for (v = GD_nlist(g); v!=null; v = ND_next(v))
773 if (EQ(v, n))
774 break;
775 return v;
776 } finally {
777 LEAVING("1yw7ahdnxnexnicj552zqyyej","find_fast_node");
778 }
779 }
780
781
782
783
784 //3 bf1j97keudu416avridkj9fpb
785 // edge_t *find_flat_edge(node_t * u, node_t * v)
786 public static ST_Agedge_s find_flat_edge(ST_Agnode_s u, ST_Agnode_s v) {
787 ENTERING("bf1j97keudu416avridkj9fpb","find_flat_edge");
788 try {
789 return ffe(u, ND_flat_out(u), v, ND_flat_in(v));
790 } finally {
791 LEAVING("bf1j97keudu416avridkj9fpb","find_flat_edge");
792 }
793 }
794
795
796
797
798 //3 cttswsffgmw1g710jzvdd3wzn
799 // static void safe_list_append(edge_t * e, elist * L)
800 public static void safe_list_append(ST_Agedge_s e, ST_elist L) {
801 ENTERING("cttswsffgmw1g710jzvdd3wzn","safe_list_append");
802 try {
803 int i;
804 for (i = 0; i < L.size; i++)
805 if (EQ(e, L.list.get(i)))
806 return;
807 UNSUPPORTED("cslejjtgepjdwlcykfas4fmvz"); // elist_append(e, (*L));
808 } finally {
809 LEAVING("cttswsffgmw1g710jzvdd3wzn","safe_list_append");
810 }
811 }
812
813
814
815
816 //3 8t6gpubo908pz1pqnt1s88lnt
817 // edge_t *fast_edge(edge_t * e)
818 public static ST_Agedge_s fast_edge(ST_Agedge_s e) {
819 ENTERING("8t6gpubo908pz1pqnt1s88lnt","fast_edge");
820 try {
821 elist_append(e, ND_out(agtail(e)));
822 elist_append(e, ND_in(aghead(e)));
823 return e;
824 } finally {
825 LEAVING("8t6gpubo908pz1pqnt1s88lnt","fast_edge");
826 }
827 }
828
829
830
831
832 //3 dxb0q8ajb7iv25aj6zdqnbwh5
833 // void zapinlist(elist * L, edge_t * e)
834 public static void zapinlist(ST_elist L, ST_Agedge_s e) {
835 ENTERING("dxb0q8ajb7iv25aj6zdqnbwh5","zapinlist");
836 try {
837 int i;
838 for (i = 0; i < L.size; i++) {
839 if (EQ(L.list.get(i), e)) {
840 L.size = L.size-1;
841 L.list.set(i, L.list.get(L.size));
842 L.list.set(L.size, null);
843 break;
844 }
845 }
846 } finally {
847 LEAVING("dxb0q8ajb7iv25aj6zdqnbwh5","zapinlist");
848 }
849 }
850
851
852
853
854 //3 dkv97rr4ytpehp291etaxe9gc
855 // void delete_fast_edge(edge_t * e)
856 public static void delete_fast_edge(ST_Agedge_s e) {
857 ENTERING("dkv97rr4ytpehp291etaxe9gc","delete_fast_edge");
858 try {
859 //assert(e != NULL);
860 zapinlist((ND_out(agtail(e))), e);
861 zapinlist((ND_in(aghead(e))), e);
862 } finally {
863 LEAVING("dkv97rr4ytpehp291etaxe9gc","delete_fast_edge");
864 }
865 }
866
867
868
869
870 //3 b8a9hlxts1y43x7r4f31vwee6
871 // static void safe_delete_fast_edge(edge_t * e)
872 public static Object safe_delete_fast_edge(Object... arg) {
873 UNSUPPORTED("59dl3yc4jbcy2pb7j1njhlybi"); // static void
874 UNSUPPORTED("bw8hdfe3bql5qxhdyxjh12iaf"); // safe_delete_fast_edge(edge_t * e)
875 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
876 UNSUPPORTED("b17di9c7wgtqm51bvsyxz6e2f"); // int i;
877 UNSUPPORTED("6ag74vz3kjmohe4bp89fktey4"); // edge_t *f;
878 UNSUPPORTED("axei6r4pdvrumkaqc9p82yzjh"); // assert(e != NULL);
879 UNSUPPORTED("f10apexer8zzjd53hdc3kc6l5"); // for (i = 0; (f = ND_out(agtail(e)).list[i]); i++)
880 UNSUPPORTED("dibajtvzac9fny0wd51x9jto8"); // if (f == e)
881 UNSUPPORTED("8jj8ar5kwgfuzsk5nd6eyfcmc"); // zapinlist(&(ND_out(agtail(e))), e);
882 UNSUPPORTED("7h2ym5qzjdgt4gg6uscho1z1e"); // for (i = 0; (f = ND_in(aghead(e)).list[i]); i++)
883 UNSUPPORTED("dibajtvzac9fny0wd51x9jto8"); // if (f == e)
884 UNSUPPORTED("dyemtglp4tpava0oysdm66am8"); // zapinlist(&(ND_in(aghead(e))), e);
885 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
886
887 throw new UnsupportedOperationException();
888 }
889
890
891
892
893 //3 73oebfcfiescklohgt8mddswc
894 // void other_edge(edge_t * e)
895 public static void other_edge(ST_Agedge_s e) {
896 ENTERING("73oebfcfiescklohgt8mddswc","other_edge");
897 try {
898 elist_append(e, ND_other(agtail(e)));
899 } finally {
900 LEAVING("73oebfcfiescklohgt8mddswc","other_edge");
901 }
902 }
903
904
905
906
907 //3 4zg1fp1b7bhnx2tbeaij8yeel
908 // void safe_other_edge(edge_t * e)
909 public static void safe_other_edge(ST_Agedge_s e) {
910 ENTERING("4zg1fp1b7bhnx2tbeaij8yeel","safe_other_edge");
911 try {
912 safe_list_append(e, ND_other(agtail(e)));
913 } finally {
914 LEAVING("4zg1fp1b7bhnx2tbeaij8yeel","safe_other_edge");
915 }
916 }
917
918
919
920
921 //3 4gd9tmpq70q0rij5otj0k6sn2
922 // edge_t *new_virtual_edge(node_t * u, node_t * v, edge_t * orig)
923 public static ST_Agedge_s new_virtual_edge(ST_Agnode_s u, ST_Agnode_s v, ST_Agedge_s orig) {
924 ENTERING("4gd9tmpq70q0rij5otj0k6sn2","new_virtual_edge");
925 try {
926 ST_Agedge_s e;
927 ST_Agedgepair_s e2 = new ST_Agedgepair_s();
928 AGTYPE(e2.in, AGINEDGE);
929 AGTYPE(e2.out, AGOUTEDGE);
930 e2.out.base.setPtr("data", new ST_Agedgeinfo_t().castTo(ST_Agrec_s.class));
931 e = (ST_Agedge_s) e2.out;
932 agtail(e, u);
933 aghead(e, v);
934 ED_edge_type(e, 1);
935 if (orig!=null) {
936 AGSEQ(e, AGSEQ(orig));
937 AGSEQ(e2.in, AGSEQ(orig));
938 ED_count(e, ED_count(orig));
939 ED_xpenalty(e, ED_xpenalty(orig));
940 ED_weight(e, ED_weight(orig));
941 ED_minlen(e, ED_minlen(orig));
942 if (EQ(agtail(e), agtail(orig)))
943 ED_tail_port(e, ED_tail_port(orig));
944 else if (EQ(agtail(e), aghead(orig)))
945 ED_tail_port(e, ED_head_port(orig));
946 if (EQ(aghead(e), aghead(orig)))
947 ED_head_port(e, ED_head_port(orig));
948 else if (EQ(aghead(e), agtail(orig)))
949 ED_head_port(e, ED_tail_port(orig));
950 if (ED_to_virt(orig) == null)
951 ED_to_virt(orig, e);
952 ED_to_orig(e, orig);
953 } else {
954 ED_minlen(e, 1);
955 ED_count(e, 1);
956 ED_xpenalty(e, 1);
957 ED_weight(e, 1);
958 }
959 return e;
960 } finally {
961 LEAVING("4gd9tmpq70q0rij5otj0k6sn2","new_virtual_edge");
962 }
963 }
964
965
966
967
968 //3 9obdfflzw4cs2z9r0dng26mvw
969 // edge_t *virtual_edge(node_t * u, node_t * v, edge_t * orig)
970 public static ST_Agedge_s virtual_edge(ST_Agnode_s u, ST_Agnode_s v, ST_Agedge_s orig) {
971 ENTERING("9obdfflzw4cs2z9r0dng26mvw","virtual_edge");
972 try {
973 return fast_edge(new_virtual_edge(u, v, orig));
974 } finally {
975 LEAVING("9obdfflzw4cs2z9r0dng26mvw","virtual_edge");
976 }
977 }
978
979
980
981
982 //3 98hkec8t6fjk10bjpstumw0ey
983 // void fast_node(graph_t * g, Agnode_t * n)
984 public static void fast_node(ST_Agraph_s g, ST_Agnode_s n) {
985 ENTERING("98hkec8t6fjk10bjpstumw0ey","fast_node");
986 try {
987 ND_next(n, GD_nlist(g));
988 if (ND_next(n)!=null)
989 ND_prev(ND_next(n), n);
990 GD_nlist(g, n);
991 ND_prev(n, null);
992 //assert(n != ND_next(n));
993 } finally {
994 LEAVING("98hkec8t6fjk10bjpstumw0ey","fast_node");
995 }
996 }
997
998
999
1000
1001 //3 66jdzhjfa6kx3ntfyl5t7cehm
1002 // void fast_nodeapp(node_t * u, node_t * v)
1003 public static Object fast_nodeapp(Object... arg) {
1004 UNSUPPORTED("24rf80znlmwn6xx6m03vqyykr"); // void fast_nodeapp(node_t * u, node_t * v)
1005 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1006 UNSUPPORTED("8g450a5aruflexr2yn977dnjz"); // assert(u != v);
1007 UNSUPPORTED("dw67xh0kd304grgqkgiffmejh"); // assert(ND_next(v) == NULL);
1008 UNSUPPORTED("1tm9zh31fbm0sufjyg78ke83i"); // ND_next(v) = ND_next(u);
1009 UNSUPPORTED("cswodtimhknr7wxlbmhxfzutw"); // if (ND_next(u))
1010 UNSUPPORTED("7aukr7lwtj4wnis5h9ciserpd"); // ND_prev(ND_next(u)) = v;
1011 UNSUPPORTED("6oaowqmk3llh0vp3h096bo6nq"); // ND_prev(v) = u;
1012 UNSUPPORTED("5ymiaen2fr7qzsn4uotyf2eqy"); // ND_next(u) = v;
1013 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1014
1015 throw new UnsupportedOperationException();
1016 }
1017
1018
1019
1020
1021 //3 emsq7b6s5100lscckzy3ileqd
1022 // void delete_fast_node(graph_t * g, node_t * n)
1023 public static void delete_fast_node(ST_Agraph_s g, ST_Agnode_s n) {
1024 ENTERING("emsq7b6s5100lscckzy3ileqd","delete_fast_node");
1025 try {
1026 assert(find_fast_node(g, n)!=null);
1027 if (ND_next(n)!=null)
1028 ND_prev(ND_next(n), ND_prev(n));
1029 if (ND_prev(n)!=null)
1030 ND_next(ND_prev(n), ND_next(n));
1031 else
1032 GD_nlist(g, ND_next(n));
1033 } finally {
1034 LEAVING("emsq7b6s5100lscckzy3ileqd","delete_fast_node");
1035 }
1036 }
1037
1038
1039
1040
1041 //3 eg08ajzojsm0224btmfi7kdxt
1042 // node_t *virtual_node(graph_t * g)
1043 public static ST_Agnode_s virtual_node(ST_Agraph_s g) {
1044 ENTERING("eg08ajzojsm0224btmfi7kdxt","virtual_node");
1045 try {
1046 ST_Agnode_s n;
1047 n = new ST_Agnode_s();
1048 // agnameof(n) = "virtual";
1049 AGTYPE(n, AGNODE);
1050 n.base.setPtr("data", new ST_Agnodeinfo_t());
1051 n.setPtr("root", agroot(g));
1052 ND_node_type(n, 1);
1053 ND_rw(n, 1);
1054 ND_lw(n, 1);
1055 ND_ht(n, 1);
1056 ND_UF_size(n, 1);
1057 alloc_elist(4, ND_in(n));
1058 alloc_elist(4, ND_out(n));
1059 fast_node(g, n);
1060 GD_n_nodes(g, GD_n_nodes(g)+1);
1061 return n;
1062 } finally {
1063 LEAVING("eg08ajzojsm0224btmfi7kdxt","virtual_node");
1064 }
1065 }
1066
1067
1068
1069
1070 //3 8dvukicq96g5t3xgdl0ue35mj
1071 // void flat_edge(graph_t * g, edge_t * e)
1072 public static void flat_edge(ST_Agraph_s g, ST_Agedge_s e) {
1073 ENTERING("8dvukicq96g5t3xgdl0ue35mj","flat_edge");
1074 try {
1075 elist_append(e, ND_flat_out(agtail(e)));
1076 elist_append(e, ND_flat_in(aghead(e)));
1077 GD_has_flat_edges(g, NOT(false));
1078 GD_has_flat_edges(dot_root(g), NOT(false));
1079 } finally {
1080 LEAVING("8dvukicq96g5t3xgdl0ue35mj","flat_edge");
1081 }
1082 }
1083
1084
1085
1086
1087 //3 clspalhiuedfnk9g9rlvfqpg7
1088 // void delete_flat_edge(edge_t * e)
1089 public static void delete_flat_edge(ST_Agedge_s e) {
1090 ENTERING("clspalhiuedfnk9g9rlvfqpg7","delete_flat_edge");
1091 try {
1092 assert(e != null);
1093 if (ED_to_orig(e)!=null && EQ(ED_to_virt(ED_to_orig(e)), e))
1094 ED_to_virt(ED_to_orig(e), null);
1095 zapinlist((ND_flat_out(agtail(e))), e);
1096 zapinlist((ND_flat_in(aghead(e))), e);
1097 } finally {
1098 LEAVING("clspalhiuedfnk9g9rlvfqpg7","delete_flat_edge");
1099 }
1100 }
1101
1102
1103
1104
1105 //3 dcfpol11cvlt6aaa6phqbp6fo
1106 // static void basic_merge(edge_t * e, edge_t * rep)
1107 public static void basic_merge(ST_Agedge_s e, ST_Agedge_s rep) {
1108 ENTERING("dcfpol11cvlt6aaa6phqbp6fo","basic_merge");
1109 try {
1110 if (ED_minlen(rep) < ED_minlen(e))
1111 ED_minlen(rep, ED_minlen(e));
1112 while (rep!=null) {
1113 ED_count(rep, ED_count(rep) + ED_count(e));
1114 ED_xpenalty(rep, ED_xpenalty(rep) +ED_xpenalty(e));
1115 ED_weight(rep, ED_weight(rep) + ED_weight(e));
1116 rep = ED_to_virt(rep);
1117 }
1118 } finally {
1119 LEAVING("dcfpol11cvlt6aaa6phqbp6fo","basic_merge");
1120 }
1121 }
1122
1123
1124
1125
1126 //3 6dxgtoii76tmonlnvz4rmiytd
1127 // void merge_oneway(edge_t * e, edge_t * rep)
1128 public static void merge_oneway(ST_Agedge_s e, ST_Agedge_s rep) {
1129 ENTERING("6dxgtoii76tmonlnvz4rmiytd","merge_oneway");
1130 try {
1131 if (EQ(rep, ED_to_virt(e))) {
1132 UNSUPPORTED("84xxsh1cgsif42hgizyxw36ul"); // agerr(AGWARN, "merge_oneway glitch\n");
1133 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
1134 }
1135 //assert(ED_to_virt(e) == NULL);
1136 ED_to_virt(e, rep);
1137 basic_merge(e, rep);
1138 } finally {
1139 LEAVING("6dxgtoii76tmonlnvz4rmiytd","merge_oneway");
1140 }
1141 }
1142
1143
1144
1145
1146 //3 656h1u18x3gommk50i4bak8wi
1147 // static void unrep(edge_t * rep, edge_t * e)
1148 public static Object unrep(Object... arg) {
1149 UNSUPPORTED("59dl3yc4jbcy2pb7j1njhlybi"); // static void
1150 UNSUPPORTED("1cysdqgx90krtmp6pc8358byz"); // unrep(edge_t * rep, edge_t * e)
1151 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1152 UNSUPPORTED("az4p9xxo3dhparzmtf3co61n"); // ED_count(rep) -= ED_count(e);
1153 UNSUPPORTED("bf8f3cgvxc5n9ixbj4d1z94r0"); // ED_xpenalty(rep) -= ED_xpenalty(e);
1154 UNSUPPORTED("5m9h7kqjxjgizf3o1i6udm3c5"); // ED_weight(rep) -= ED_weight(e);
1155 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1156
1157 throw new UnsupportedOperationException();
1158 }
1159
1160
1161
1162
1163 //3 62io7qyqg9kqthfkbotnjdq49
1164 // void unmerge_oneway(edge_t * e)
1165 public static Object unmerge_oneway(Object... arg) {
1166 UNSUPPORTED("3rlflkkd29cm53ssikvrqx06v"); // void unmerge_oneway(edge_t * e)
1167 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1168 UNSUPPORTED("3we8ga4x5k2sj4s20xlwumjq5"); // edge_t *rep, *nextrep;
1169 UNSUPPORTED("e23vpxy61ysfsjvp3u2boafhb"); // for (rep = ED_to_virt(e); rep; rep = nextrep) {
1170 UNSUPPORTED("bifyf7jydjlvj8u8hc9tqwutm"); // unrep(rep, e);
1171 UNSUPPORTED("eyjz7xjwxabdlqhyvuzfkks49"); // nextrep = ED_to_virt(rep);
1172 UNSUPPORTED("4h71tbcobl3o6put6h58thpgu"); // if (ED_count(rep) == 0)
1173 UNSUPPORTED("c87nxr35m1again4xqc8x4rhh"); // safe_delete_fast_edge(rep); /* free(rep)? */
1174 UNSUPPORTED("9np2sz8r74ucvij23elgzxkr4"); // /* unmerge from a virtual edge chain */
1175 UNSUPPORTED("5wohy8hhosadqtj6712ufa10t"); // while ((ED_edge_type(rep) == 1)
1176 UNSUPPORTED("9nortwuccpr0jx3z027d2jcyh"); // && (ND_node_type(aghead(rep)) == 1)
1177 UNSUPPORTED("drowv2sbxmbe2b6632mn3luww"); // && (ND_out(aghead(rep)).size == 1)) {
1178 UNSUPPORTED("6f9b53obe00vhcbxj865xc57u"); // rep = ND_out(aghead(rep)).list[0];
1179 UNSUPPORTED("11fxzls2ru6go1mcuza6i8zhv"); // unrep(rep, e);
1180 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1181 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1182 UNSUPPORTED("bm31ww0y2fu2w9n5nyi04ad76"); // ED_to_virt(e) = NULL;
1183 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1184
1185 throw new UnsupportedOperationException();
1186 }
1187
1188
1189 }