Debian Codegraph @

src/gen/lib/dotgen/rank__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.attr__c.agget;
48 import static gen.lib.cgraph.edge__c.agfstout;
49 import static gen.lib.cgraph.edge__c.aghead;
50 import static gen.lib.cgraph.edge__c.agnxtout;
51 import static gen.lib.cgraph.edge__c.agsubedge;
52 import static gen.lib.cgraph.id__c.agnameof;
53 import static gen.lib.cgraph.node__c.agfstnode;
54 import static gen.lib.cgraph.node__c.agnxtnode;
55 import static gen.lib.cgraph.obj__c.agcontains;
56 import static gen.lib.cgraph.obj__c.agdelete;
57 import static gen.lib.cgraph.subg__c.agfstsubg;
58 import static gen.lib.cgraph.subg__c.agnxtsubg;
59 import static gen.lib.common.input__c.do_graph_label;
60 import static gen.lib.common.ns__c.rank;
61 import static gen.lib.common.utils__c.UF_find;
62 import static gen.lib.common.utils__c.UF_singleton;
63 import static gen.lib.common.utils__c.UF_union;
64 import static gen.lib.common.utils__c.maptoken;
65 import static gen.lib.dotgen.acyclic__c.acyclic_;
66 import static gen.lib.dotgen.aspect__c.rank3;
67 import static gen.lib.dotgen.class1__c.class1_;
68 import static gen.lib.dotgen.decomp__c.decompose;
69 import static gen.lib.dotgen.dotinit__c.dot_root;
70 import static smetana.core.JUtils.EQ;
71 import static smetana.core.JUtils.LOG2;
72 import static smetana.core.JUtils.NEQ;
73 import static smetana.core.JUtils.strncmp;
74 import static smetana.core.JUtilsDebug.ENTERING;
75 import static smetana.core.JUtilsDebug.LEAVING;
76 import static smetana.core.Macro.ED_minlen;
77 import static smetana.core.Macro.ED_to_orig;
78 import static smetana.core.Macro.ED_to_virt;
79 import static smetana.core.Macro.GD_clust;
80 import static smetana.core.Macro.GD_comp;
81 import static smetana.core.Macro.GD_flags;
82 import static smetana.core.Macro.GD_has_labels;
83 import static smetana.core.Macro.GD_leader;
84 import static smetana.core.Macro.GD_maxrank;
85 import static smetana.core.Macro.GD_maxset;
86 import static smetana.core.Macro.GD_minrank;
87 import static smetana.core.Macro.GD_minset;
88 import static smetana.core.Macro.GD_n_cluster;
89 import static smetana.core.Macro.GD_nlist;
90 import static smetana.core.Macro.GD_parent;
91 import static smetana.core.Macro.GD_ranksep;
92 import static smetana.core.Macro.GD_set_type;
93 import static smetana.core.Macro.MAXSHORT;
94 import static smetana.core.Macro.N;
95 import static smetana.core.Macro.ND_clust;
96 import static smetana.core.Macro.ND_in;
97 import static smetana.core.Macro.ND_mark;
98 import static smetana.core.Macro.ND_next;
99 import static smetana.core.Macro.ND_node_type;
100 import static smetana.core.Macro.ND_out;
101 import static smetana.core.Macro.ND_rank;
102 import static smetana.core.Macro.ND_ranktype;
103 import static smetana.core.Macro.UNSUPPORTED;
104 import static smetana.core.Macro.ZALLOC_ST_Agraph_s;
105 import h.ST_Agedge_s;
106 import h.ST_Agnode_s;
107 import h.ST_Agraph_s;
108 import h.ST_aspect_t;
109 import h.ST_elist;
110 import h.ST_point;
111 import h.ST_pointf;
112 import smetana.core.CString;
113 import smetana.core.Memory;
114 import smetana.core.Z;
115
116 public class rank__c {
117 //1 2digov3edok6d5srhgtlmrycs
118 // extern lt_symlist_t lt_preloaded_symbols[]
119
120
121 //1 baedz5i9est5csw3epz3cv7z
122 // typedef Ppoly_t Ppolyline_t
123
124
125 //1 9k44uhd5foylaeoekf3llonjq
126 // extern Dtmethod_t* Dtset
127
128
129 //1 1ahfywsmzcpcig2oxm7pt9ihj
130 // extern Dtmethod_t* Dtbag
131
132
133 //1 anhghfj3k7dmkudy2n7rvt31v
134 // extern Dtmethod_t* Dtoset
135
136
137 //1 5l6oj1ux946zjwvir94ykejbc
138 // extern Dtmethod_t* Dtobag
139
140
141 //1 2wtf222ak6cui8cfjnw6w377z
142 // extern Dtmethod_t* Dtlist
143
144
145 //1 d1s1s6ibtcsmst88e3057u9r7
146 // extern Dtmethod_t* Dtstack
147
148
149 //1 axa7mflo824p6fspjn1rdk0mt
150 // extern Dtmethod_t* Dtqueue
151
152
153 //1 ega812utobm4xx9oa9w9ayij6
154 // extern Dtmethod_t* Dtdeque
155
156
157 //1 cyfr996ur43045jv1tjbelzmj
158 // extern Dtmethod_t* Dtorder
159
160
161 //1 wlofoiftbjgrrabzb2brkycg
162 // extern Dtmethod_t* Dttree
163
164
165 //1 12bds94t7voj7ulwpcvgf6agr
166 // extern Dtmethod_t* Dthash
167
168
169 //1 9lqknzty480cy7zsubmabkk8h
170 // extern Dtmethod_t _Dttree
171
172
173 //1 bvn6zkbcp8vjdhkccqo1xrkrb
174 // extern Dtmethod_t _Dthash
175
176
177 //1 9lidhtd6nsmmv3e7vjv9e10gw
178 // extern Dtmethod_t _Dtlist
179
180
181 //1 34ujfamjxo7xn89u90oh2k6f8
182 // extern Dtmethod_t _Dtqueue
183
184
185 //1 3jy4aceckzkdv950h89p4wjc8
186 // extern Dtmethod_t _Dtstack
187
188
189 //1 8dfqgf3u1v830qzcjqh9o8ha7
190 // extern Agmemdisc_t AgMemDisc
191
192
193 //1 18k2oh2t6llfsdc5x0wlcnby8
194 // extern Agiddisc_t AgIdDisc
195
196
197 //1 a4r7hi80gdxtsv4hdoqpyiivn
198 // extern Agiodisc_t AgIoDisc
199
200
201 //1 bnzt5syjb7mgeru19114vd6xx
202 // extern Agdisc_t AgDefaultDisc
203
204
205 //1 35y2gbegsdjilegaribes00mg
206 // extern Agdesc_t Agdirected, Agstrictdirected, Agundirected, Agstrictundirected
207
208
209 //1 c2rygslq6bcuka3awmvy2b3ow
210 // typedef Agsubnode_t Agnoderef_t
211
212
213 //1 xam6yv0dcsx57dtg44igpbzn
214 // typedef Dtlink_t Agedgeref_t
215
216
217 //1 nye6dsi1twkbddwo9iffca1j
218 // extern char *Version
219
220
221 //1 65mu6k7h7lb7bx14jpiw7iyxr
222 // extern char **Files
223
224
225 //1 2rpjdzsdyrvomf00zcs3u3dyn
226 // extern const char **Lib
227
228
229 //1 6d2f111lntd2rsdt4gswh5909
230 // extern char *CmdName
231
232
233 //1 a0ltq04fpeg83soa05a2fkwb2
234 // extern char *specificFlags
235
236
237 //1 1uv30qeqq2jh6uznlr4dziv0y
238 // extern char *specificItems
239
240
241 //1 7i4hkvngxe3x7lmg5h6b3t9g3
242 // extern char *Gvfilepath
243
244
245 //1 9jp96pa73kseya3w6sulxzok6
246 // extern char *Gvimagepath
247
248
249 //1 40ylumfu7mrvawwf4v2asvtwk
250 // extern unsigned char Verbose
251
252
253 //1 93st8awjy1z0h07n28qycbaka
254 // extern unsigned char Reduce
255
256
257 //1 f2vs67ts992erf8onwfglurzp
258 // extern int MemTest
259
260
261 //1 c6f8whijgjwwagjigmxlwz3gb
262 // extern char *HTTPServerEnVar
263
264
265 //1 cp4hzj7p87m7arw776d3bt7aj
266 // extern char *Output_file_name
267
268
269 //1 a3rqagofsgraie6mx0krzkgsy
270 // extern int graphviz_errors
271
272
273 //1 5up05203r4kxvjn1m4njcgq5x
274 // extern int Nop
275
276
277 //1 umig46cco431x14b3kosde2t
278 // extern double PSinputscale
279
280
281 //1 52bj6v8fqz39khasobljfukk9
282 // extern int Syntax_errors
283
284
285 //1 9ekf2ina8fsjj6y6i0an6somj
286 // extern int Show_cnt
287
288
289 //1 38di5qi3nkxkq65onyvconk3r
290 // extern char** Show_boxes
291
292
293 //1 6ri6iu712m8mpc7t2670etpcw
294 // extern int CL_type
295
296
297 //1 bomxiw3gy0cgd1ydqtek7fpxr
298 // extern unsigned char Concentrate
299
300
301 //1 cqy3gqgcq8empdrbnrhn84058
302 // extern double Epsilon
303
304
305 //1 64slegfoouqeg0rmbyjrm8wgr
306 // extern int MaxIter
307
308
309 //1 88wdinpnmfs4mab4aw62yb0bg
310 // extern int Ndim
311
312
313 //1 8bbad3ogcelqnnvo5br5s05gq
314 // extern int State
315
316
317 //1 17rnd8q45zclfn68qqst2vxxn
318 // extern int EdgeLabelsDone
319
320
321 //1 ymx1z4s8cznjifl2d9f9m8jr
322 // extern double Initial_dist
323
324
325 //1 a33bgl0c3uqb3trx419qulj1x
326 // extern double Damping
327
328
329 //1 d9lvrpjg1r0ojv40pod1xwk8n
330 // extern int Y_invert
331
332
333 //1 71efkfs77q5tq9ex6y0f4kanh
334 // extern int GvExitOnUsage
335
336
337 //1 4xy2dkdkv0acs2ue9eca8hh2e
338 // 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
339
340
341 //1 9js5gxgzr74eakgtfhnbws3t9
342 // 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
343
344
345 //1 anqllp9sj7wo45w6bm11j8trn
346 // 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
347
348
349 //1 bh0z9puipqw7gymjd5h5b8s6i
350 // extern struct fdpParms_s* fdp_parms
351
352
353
354
355 //3 ciez0pfggxdljedzsbklq49f0
356 // static inline point pointof(int x, int y)
357 public static Object pointof(Object... arg) {
358 UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); // static inline point pointof(int x, int y)
359 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
360 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
361 UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); // r.x = x;
362 UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); // r.y = y;
363 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
364 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
365
366 throw new UnsupportedOperationException();
367 }
368
369
370
371
372 //3 c1s4k85p1cdfn176o3uryeros
373 // static inline pointf pointfof(double x, double y)
374 public static ST_pointf pointfof(double x, double y) {
375 // WARNING!! STRUCT
376 return pointfof_w_(x, y).copy();
377 }
378 private static ST_pointf pointfof_w_(double x, double y) {
379 ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof");
380 try {
381 final ST_pointf r = new ST_pointf();
382 r.setDouble("x", x);
383 r.setDouble("y", y);
384 return r;
385 } finally {
386 LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof");
387 }
388 }
389
390
391
392
393 //3 7cufnfitrh935ew093mw0i4b7
394 // static inline box boxof(int llx, int lly, int urx, int ury)
395 public static Object boxof(Object... arg) {
396 UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); // static inline box boxof(int llx, int lly, int urx, int ury)
397 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
398 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box b;
399 UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); // b.LL.x = llx, b.LL.y = lly;
400 UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); // b.UR.x = urx, b.UR.y = ury;
401 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
402 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
403
404 throw new UnsupportedOperationException();
405 }
406
407
408
409
410
411
412
413
414 //3 1n5xl70wxuabyf97mclvilsm6
415 // static inline point add_point(point p, point q)
416 public static Object add_point(Object... arg) {
417 UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); // static inline point add_point(point p, point q)
418 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
419 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
420 UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); // r.x = p.x + q.x;
421 UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); // r.y = p.y + q.y;
422 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
423 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
424
425 throw new UnsupportedOperationException();
426 }
427
428
429
430
431 //3 arrsbik9b5tnfcbzsm8gr2chx
432 // static inline pointf add_pointf(pointf p, pointf q)
433 public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) {
434 // WARNING!! STRUCT
435 return add_pointf_w_(p.copy(), q.copy()).copy();
436 }
437 private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) {
438 ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
439 try {
440 final ST_pointf r = new ST_pointf();
441 r.setDouble("x", p.x + q.x);
442 r.setDouble("y", p.y + q.y);
443 return r;
444 } finally {
445 LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf");
446 }
447 }
448
449
450
451
452 //3 ai2dprak5y6obdsflguh5qbd7
453 // static inline point sub_point(point p, point q)
454 public static Object sub_point(Object... arg) {
455 UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); // static inline point sub_point(point p, point q)
456 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
457 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point 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 16f6pyogcv3j7n2p0n8giqqgh
470 // static inline pointf sub_pointf(pointf p, pointf q)
471 public static Object sub_pointf(Object... arg) {
472 UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); // static inline pointf sub_pointf(pointf p, pointf q)
473 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
474 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
475 UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); // r.x = p.x - q.x;
476 UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); // r.y = p.y - q.y;
477 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
478 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
479
480 throw new UnsupportedOperationException();
481 }
482
483
484
485
486 //3 9k50jgrhc4f9824vf8ony74rw
487 // static inline point mid_point(point p, point q)
488 public static Object mid_point(Object... arg) {
489 UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); // static inline point mid_point(point p, point q)
490 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
491 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point r;
492 UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); // r.x = (p.x + q.x) / 2;
493 UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); // 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 59c4f7im0ftyowhnzzq2v9o1x
504 // static inline pointf mid_pointf(pointf p, pointf q)
505 public static Object mid_pointf(Object... arg) {
506 UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); // static inline pointf mid_pointf(pointf p, pointf q)
507 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
508 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
509 UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); // r.x = (p.x + q.x) / 2.;
510 UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); // r.y = (p.y + q.y) / 2.;
511 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
512 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
513
514 throw new UnsupportedOperationException();
515 }
516
517
518
519
520 //3 5r18p38gisvcx3zsvbb9saixx
521 // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
522 public static Object interpolate_pointf(Object... arg) {
523 UNSUPPORTED("894yimn33kmtm454llwdaotu8"); // static inline pointf interpolate_pointf(double t, pointf p, pointf q)
524 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
525 UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); // pointf r;
526 UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); // r.x = p.x + t * (q.x - p.x);
527 UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); // r.y = p.y + t * (q.y - p.y);
528 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
529 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
530
531 throw new UnsupportedOperationException();
532 }
533
534
535
536
537 //3 bxzrv2ghq04qk5cbyy68s4mol
538 // static inline point exch_xy(point p)
539 public static Object exch_xy(Object... arg) {
540 UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); // static inline point exch_xy(point p)
541 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
542 UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); // point 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 9lt3e03tac6h6sydljrcws8fd
555 // static inline pointf exch_xyf(pointf p)
556 public static Object exch_xyf(Object... arg) {
557 UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); // static inline pointf exch_xyf(pointf p)
558 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
559 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
560 UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); // r.x = p.y;
561 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
562 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
563 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
564
565 throw new UnsupportedOperationException();
566 }
567
568
569
570
571 //3 8l9qhieokthntzdorlu5zn29b
572 // static inline box box_bb(box b0, box b1)
573 public static Object box_bb(Object... arg) {
574 UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); // static inline box box_bb(box b0, box b1)
575 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
576 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box 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 clws9h3bbjm0lw3hexf8nl4c4
591 // static inline boxf boxf_bb(boxf b0, boxf b1)
592 public static Object boxf_bb(Object... arg) {
593 UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); // static inline boxf boxf_bb(boxf b0, boxf b1)
594 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
595 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
596 UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); // b.LL.x = MIN(b0.LL.x, b1.LL.x);
597 UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); // b.LL.y = MIN(b0.LL.y, b1.LL.y);
598 UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); // b.UR.x = MAX(b0.UR.x, b1.UR.x);
599 UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); // b.UR.y = MAX(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 bit6ycxo1iqd2al92y8gkzlvb
610 // static inline box box_intersect(box b0, box b1)
611 public static Object box_intersect(Object... arg) {
612 UNSUPPORTED("34gv28cldst09bl71itjgviue"); // static inline box box_intersect(box b0, box b1)
613 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
614 UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); // box 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 8gfybie7k6pgb3o1a6llgpwng
629 // static inline boxf boxf_intersect(boxf b0, boxf b1)
630 public static Object boxf_intersect(Object... arg) {
631 UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); // static inline boxf boxf_intersect(boxf b0, boxf b1)
632 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
633 UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); // boxf b;
634 UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); // b.LL.x = MAX(b0.LL.x, b1.LL.x);
635 UNSUPPORTED("3uv943c2f82yuif249pf5azob"); // b.LL.y = MAX(b0.LL.y, b1.LL.y);
636 UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); // b.UR.x = MIN(b0.UR.x, b1.UR.x);
637 UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); // b.UR.y = MIN(b0.UR.y, b1.UR.y);
638 UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); // return b;
639 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
640
641 throw new UnsupportedOperationException();
642 }
643
644
645
646
647 //3 7z8j2quq65govaaejrz7b4cvb
648 // static inline int box_overlap(box b0, box b1)
649 public static Object box_overlap(Object... arg) {
650 UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); // static inline int box_overlap(box b0, box b1)
651 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
652 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
653 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
654
655 throw new UnsupportedOperationException();
656 }
657
658
659
660
661 //3 4z0suuut2acsay5m8mg9dqjdu
662 // static inline int boxf_overlap(boxf b0, boxf b1)
663 public static Object boxf_overlap(Object... arg) {
664 UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); // static inline int boxf_overlap(boxf b0, boxf b1)
665 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
666 UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); // return OVERLAP(b0, b1);
667 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
668
669 throw new UnsupportedOperationException();
670 }
671
672
673
674
675 //3 dd34swz5rmdgu3a2np2a4h1dy
676 // static inline int box_contains(box b0, box b1)
677 public static Object box_contains(Object... arg) {
678 UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); // static inline int box_contains(box b0, box b1)
679 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
680 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
681 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
682
683 throw new UnsupportedOperationException();
684 }
685
686
687
688
689 //3 8laj1bspbu2i1cjd9upr7xt32
690 // static inline int boxf_contains(boxf b0, boxf b1)
691 public static Object boxf_contains(Object... arg) {
692 UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); // static inline int boxf_contains(boxf b0, boxf b1)
693 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
694 UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); // return CONTAINS(b0, b1);
695 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
696
697 throw new UnsupportedOperationException();
698 }
699
700
701
702
703 //3 4wf5swkz24xx51ja2dynbycu1
704 // static inline pointf perp (pointf p)
705 public static Object perp(Object... arg) {
706 UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); // static inline pointf perp (pointf p)
707 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
708 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
709 UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); // r.x = -p.y;
710 UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); // r.y = p.x;
711 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
712 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
713
714 throw new UnsupportedOperationException();
715 }
716
717
718
719
720 //3 6dtlpzv4mvgzb9o0b252yweuv
721 // static inline pointf scale (double c, pointf p)
722 public static Object scale(Object... arg) {
723 UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); // static inline pointf scale (double c, pointf p)
724 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
725 UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); // pointf r;
726 UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); // r.x = c * p.x;
727 UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); // r.y = c * p.y;
728 UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); // return r;
729 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
730
731 throw new UnsupportedOperationException();
732 }
733
734
735
736
737 //3 3f1re3nfkhxwjjb90kppwuupr
738 // static void renewlist(elist * L)
739 public static void renewlist(ST_elist L) {
740 ENTERING("3f1re3nfkhxwjjb90kppwuupr","renewlist");
741 try {
742 int i;
743 for (i = L.size; i >= 0; i--)
744 L.list.set(i, null);
745 L.size = 0;
746 } finally {
747 LEAVING("3f1re3nfkhxwjjb90kppwuupr","renewlist");
748 }
749 }
750
751
752
753
754 //3 1xov2qhuxj1f9nbzu3xsa6679
755 // static void cleanup1(graph_t * g)
756 public static void cleanup1(ST_Agraph_s g) {
757 ENTERING("1xov2qhuxj1f9nbzu3xsa6679","cleanup1");
758 try {
759 ST_Agnode_s n;
760 ST_Agedge_s e, f;
761 int c;
762 for (c = 0; c < GD_comp(g).size; c++) {
763 GD_nlist(g, GD_comp(g).getFromList(c));
764 for (n = GD_nlist(g); n!=null; n = ND_next(n)) {
765 renewlist(ND_in(n));
766 renewlist(ND_out(n));
767 ND_mark(n, 0);
768 }
769 }
770 for (n = agfstnode(g); n!=null; n = agnxtnode(g, n)) {
771 for (e = agfstout(g, n); e!=null; e = agnxtout(g, e)) {
772 f = ED_to_virt(e);
773 /* Null out any other references to f to make sure we don't
774 * handle it a second time. For example, parallel multiedges
775 * share a virtual edge.
776 */
777 if (f!=null && (EQ(e, ED_to_orig(f)))) {
778 ST_Agedge_s e1, f1;
779 ST_Agnode_s n1;
780 for (n1 = agfstnode(g); n1!=null; n1 = agnxtnode(g, n1)) {
781 for (e1 = agfstout(g, n1); e1!=null; e1 = agnxtout(g, e1)) {
782 if (NEQ(e, e1)) {
783 f1 = ED_to_virt(e1);
784 if (f1!=null && EQ(f, f1)) {
785 ED_to_virt(e1, null);
786 }
787 }
788 }
789 }
790 Memory.free(f.base.data);
791 Memory.free(f);
792 }
793 ED_to_virt(e, null);
794 }
795 }
796 GD_comp(g).resetList();
797 GD_comp(g).size = 0;
798 } finally {
799 LEAVING("1xov2qhuxj1f9nbzu3xsa6679","cleanup1");
800 }
801 }
802
803
804
805
806 //3 bxjf5g7g953ii1hfodl1j0y4u
807 // static void edgelabel_ranks(graph_t * g)
808 public static void edgelabel_ranks(ST_Agraph_s g) {
809 ENTERING("bxjf5g7g953ii1hfodl1j0y4u","edgelabel_ranks");
810 try {
811 ST_Agnode_s n;
812 ST_Agedge_s e;
813 if ((GD_has_labels(g) & (1 << 0))!=0) {
814 for (n = agfstnode(g); n!=null; n = agnxtnode(g, n))
815 for (e = agfstout(g, n); e!=null; e = agnxtout(g, e))
816 ED_minlen(e, ED_minlen(e) * 2);
817 GD_ranksep(g, (GD_ranksep(g) + 1) / 2);
818 }
819 } finally {
820 LEAVING("bxjf5g7g953ii1hfodl1j0y4u","edgelabel_ranks");
821 }
822 }
823
824
825
826
827 //3 9kjpoxcxoy3nhqd9rflwclo7c
828 // static void collapse_rankset(graph_t * g, graph_t * subg, int kind)
829 public static Object collapse_rankset(Object... arg) {
830 UNSUPPORTED("59dl3yc4jbcy2pb7j1njhlybi"); // static void
831 UNSUPPORTED("8hizp29cxh1rnp84yrlv4nl8x"); // collapse_rankset(graph_t * g, graph_t * subg, int kind)
832 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
833 UNSUPPORTED("5yrhx4blosxo5xnc1nh1kzhfs"); // node_t *u, *v;
834 UNSUPPORTED("nbvmqthk0lqbm00ekylf0l0g"); // u = v = agfstnode(subg);
835 UNSUPPORTED("5q27ub494lpst2s18bizunri0"); // if (u) {
836 UNSUPPORTED("97vrl7utckj5ct78d81xyhhjl"); // ND_ranktype(u) = kind;
837 UNSUPPORTED("99ruvdyom1mcyir0v7i8zq8eh"); // while ((v = agnxtnode(subg, v))) {
838 UNSUPPORTED("7f9cf0wfrirgdoty4qy5pfuj9"); // UF_union(u, v);
839 UNSUPPORTED("5jt25she9etuqjk6nrkrt3059"); // ND_ranktype(v) = ND_ranktype(u);
840 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
841 UNSUPPORTED("9ty5l2g646lrkxz43tcnhcsk8"); // switch (kind) {
842 UNSUPPORTED("b8vgbvwzllfs4lrqmmqyr1spk"); // case 2:
843 UNSUPPORTED("1640m8as34e90xhvvtl877cmo"); // case 3:
844 UNSUPPORTED("2crlxhvtrgd5ohsriopqywv1m"); // if (GD_minset(g) == NULL)
845 UNSUPPORTED("9py54j3v52y5qevrsi1omdoq7"); // GD_minset(g) = u;
846 UNSUPPORTED("5c97f6vfxny0zz35l2bu4maox"); // else
847 UNSUPPORTED("1cqwn2xb41g0dsm2oltj15dsd"); // GD_minset(g) = UF_union(GD_minset(g), u);
848 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
849 UNSUPPORTED("495y0cnvj5vci19wsufg88rrq"); // case 4:
850 UNSUPPORTED("1wjv2f7dql1ddky1us3a7q5jq"); // case 5:
851 UNSUPPORTED("1myv9cwrp9n535g9xsalgmg7n"); // if (GD_maxset(g) == NULL)
852 UNSUPPORTED("45gr04d25a1qxrh4hm1kiip5v"); // GD_maxset(g) = u;
853 UNSUPPORTED("5c97f6vfxny0zz35l2bu4maox"); // else
854 UNSUPPORTED("d5a4ohz8nh8xso8ovij23zsxi"); // GD_maxset(g) = UF_union(GD_maxset(g), u);
855 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
856 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
857 UNSUPPORTED("9ty5l2g646lrkxz43tcnhcsk8"); // switch (kind) {
858 UNSUPPORTED("1640m8as34e90xhvvtl877cmo"); // case 3:
859 UNSUPPORTED("j5ay8vao16zse2bq0etmlhua"); // ND_ranktype(GD_minset(g)) = kind;
860 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
861 UNSUPPORTED("1wjv2f7dql1ddky1us3a7q5jq"); // case 5:
862 UNSUPPORTED("9dtrubjv4hiv1k3dq24skxdb8"); // ND_ranktype(GD_maxset(g)) = kind;
863 UNSUPPORTED("ai3czg6gaaxspsmndknpyvuiu"); // break;
864 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
865 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
866 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
867
868 throw new UnsupportedOperationException();
869 }
870
871
872
873
874 //3 65qi5f0bxp6d6vahhlcolpk88
875 // static int rank_set_class(graph_t * g)
876 public static int rank_set_class(ST_Agraph_s g) {
877 ENTERING("65qi5f0bxp6d6vahhlcolpk88","rank_set_class");
878 try {
879 CString name[] = new CString[] { new CString("same"), new CString("min"), new CString("source"), new CString("max"), new CString("sink"), null };
880 int class_[] = new int[] { 1, 2, 3, 4, 5, 0 };
881 int val;
882 if (is_cluster(g))
883 return 7;
884 val = maptoken(agget(g, new CString("rank")), name, class_);
885 GD_set_type(g, val);
886 return val;
887 } finally {
888 LEAVING("65qi5f0bxp6d6vahhlcolpk88","rank_set_class");
889 }
890 }
891
892
893
894
895 //3 5189iviqj57iztftckz86y6jj
896 // static int make_new_cluster(graph_t * g, graph_t * subg)
897 public static int make_new_cluster(ST_Agraph_s g, ST_Agraph_s subg) {
898 ENTERING("5189iviqj57iztftckz86y6jj","make_new_cluster");
899 try {
900 int cno;
901 GD_n_cluster(g, GD_n_cluster(g)+1);
902 cno = GD_n_cluster(g);
903 GD_clust(g, ZALLOC_ST_Agraph_s((ST_Agraph_s.Array) GD_clust(g), cno + 1));
904 GD_clust(g).plus(cno).setPtr(subg);
905 do_graph_label(subg);
906 return cno;
907 } finally {
908 LEAVING("5189iviqj57iztftckz86y6jj","make_new_cluster");
909 }
910 }
911
912
913
914
915 //3 9lvm2ufqjzl2bsbpo0zg9go58
916 // static void node_induce(graph_t * par, graph_t * g)
917 public static void node_induce(ST_Agraph_s par, ST_Agraph_s g) {
918 ENTERING("9lvm2ufqjzl2bsbpo0zg9go58","node_induce");
919 try {
920 ST_Agnode_s n, nn;
921 ST_Agedge_s e;
922 int i;
923 LOG2("node_induce");
924 /* enforce that a node is in at most one cluster at this level */
925 for (n = agfstnode(g); n!=null; n = nn) {
926 nn = agnxtnode(g, n);
927 if (ND_ranktype(n)!=0) {
928 agdelete(g, n);
929 continue;
930 }
931 for (i = 1; i < GD_n_cluster(par); i++)
932 if (agcontains((ST_Agraph_s) GD_clust(par).get(i).getPtr(), n))
933 break;
934 if (i < GD_n_cluster(par))
935 agdelete(g, n);
936 ND_clust(n, null);
937 }
938 for (n = agfstnode(g); n!=null; n = agnxtnode(g, n)) {
939 for (e = agfstout(dot_root(g), n); e!=null; e = agnxtout(dot_root(g), e)) {
940 if (agcontains(g, aghead(e)))
941 agsubedge(g,e,true);
942 }
943 }
944 } finally {
945 LEAVING("9lvm2ufqjzl2bsbpo0zg9go58","node_induce");
946 }
947 }
948
949
950
951
952 //3 650rxyqioihwhhqkex61prwfs
953 // void dot_scan_ranks(graph_t * g)
954 public static Object dot_scan_ranks(Object... arg) {
955 UNSUPPORTED("347dderd02mvlozoheqo4ejwo"); // void
956 UNSUPPORTED("3qe2zolxii33gr1krcjkgygwm"); // dot_scan_ranks(graph_t * g)
957 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
958 UNSUPPORTED("dkbxmqzr28yu8rswd5vubd3ha"); // node_t *n, *leader = NULL;
959 UNSUPPORTED("65ovv0jsp2kemyp7179cotrqh"); // GD_minrank(g) = MAXSHORT;
960 UNSUPPORTED("4rx9wnlw0uumqfzcjtyg9rpfl"); // GD_maxrank(g) = -1;
961 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
962 UNSUPPORTED("68vv0lam9vxeuk3fg60ad5w6g"); // if (GD_maxrank(g) < ND_rank(n))
963 UNSUPPORTED("2v65dy95gqvsnppoelwwl8ayh"); // GD_maxrank(g) = ND_rank(n);
964 UNSUPPORTED("3ozq6tqfxcegom34qkyrrxnfg"); // if (GD_minrank(g) > ND_rank(n))
965 UNSUPPORTED("duyud2jy9uf1rbcis84c3lsj6"); // GD_minrank(g) = ND_rank(n);
966 UNSUPPORTED("5j9c428shih0wjw2salkxw0qm"); // if (leader == NULL)
967 UNSUPPORTED("73jlqlf2bn3kx7i020menpfcw"); // leader = n;
968 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
969 UNSUPPORTED("bwqhlzu5ifbhdg1jral42ycdx"); // if (ND_rank(n) < ND_rank(leader))
970 UNSUPPORTED("7h663p7xpn4qn3l6bs6vxze7i"); // leader = n;
971 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
972 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
973 UNSUPPORTED("5j1zsofmtglx1esxwbstti1un"); // GD_leader(g) = leader;
974 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
975
976 throw new UnsupportedOperationException();
977 }
978
979
980
981
982 //3 2rbs5deyvlh5s7lkhv6zouqbe
983 // static void cluster_leader(graph_t * clust)
984 public static void cluster_leader(ST_Agraph_s clust) {
985 ENTERING("2rbs5deyvlh5s7lkhv6zouqbe","cluster_leader");
986 try {
987 ST_Agnode_s leader, n;
988 int maxrank = 0;
989 /* find number of ranks and select a leader */
990 leader = null;
991 for (n = GD_nlist(clust); n!=null; n = ND_next(n)) {
992 if ((ND_rank(n) == 0) && (ND_node_type(n) == 0))
993 leader = n;
994 if (maxrank < ND_rank(n))
995 maxrank = ND_rank(n);
996 }
997 assert(leader != null);
998 GD_leader(clust, leader);
999 for (n = agfstnode(clust); n!=null; n = agnxtnode(clust, n)) {
1000 //assert((ND_UF_size(n) <= 1) || (n == leader));
1001 UF_union(n, leader);
1002 ND_ranktype(n, 7);
1003 }
1004 } finally {
1005 LEAVING("2rbs5deyvlh5s7lkhv6zouqbe","cluster_leader");
1006 }
1007 }
1008
1009
1010
1011
1012 //3 f3sl627dqmre3kru883bpdxc3
1013 // static void collapse_cluster(graph_t * g, graph_t * subg)
1014 public static void collapse_cluster(ST_Agraph_s g, ST_Agraph_s subg) {
1015 ENTERING("f3sl627dqmre3kru883bpdxc3","collapse_cluster");
1016 try {
1017 if (GD_parent(subg)!=null) {
1018 return;
1019 }
1020 GD_parent(subg, g);
1021 node_induce(g, subg);
1022 if (agfstnode(subg) == null)
1023 return;
1024 make_new_cluster(g, subg);
1025 if (Z.z().CL_type == 100) {
1026 dot1_rank(subg, null);
1027 cluster_leader(subg);
1028 } else
1029 UNSUPPORTED("1os84mtyrb110i4sd8bdjrwk"); // dot_scan_ranks(subg);
1030 } finally {
1031 LEAVING("f3sl627dqmre3kru883bpdxc3","collapse_cluster");
1032 }
1033 }
1034
1035
1036
1037
1038 //3 din4qnipewrwnelaimzvlplft
1039 // static void collapse_sets(graph_t *rg, graph_t *g)
1040 public static void collapse_sets(ST_Agraph_s rg, ST_Agraph_s g) {
1041 ENTERING("din4qnipewrwnelaimzvlplft","collapse_sets");
1042 try {
1043 int c;
1044 ST_Agraph_s subg;
1045 for (subg = agfstsubg(g); subg!=null; subg = agnxtsubg(subg)) {
1046 c = rank_set_class(subg);
1047 if (c!=0) {
1048 if ((c == 7) && Z.z().CL_type == 100)
1049 collapse_cluster(rg, subg);
1050 else
1051 collapse_rankset(rg, subg, c);
1052 }
1053 else collapse_sets(rg, subg);
1054 }
1055 } finally {
1056 LEAVING("din4qnipewrwnelaimzvlplft","collapse_sets");
1057 }
1058 }
1059
1060
1061
1062
1063 //3 5n9mgh7vlru5mb1j9oienvbvs
1064 // static void find_clusters(graph_t * g)
1065 public static Object find_clusters(Object... arg) {
1066 UNSUPPORTED("59dl3yc4jbcy2pb7j1njhlybi"); // static void
1067 UNSUPPORTED("cdsgmo50taekqgk95mfn25930"); // find_clusters(graph_t * g)
1068 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1069 UNSUPPORTED("8uujemixuhlf040icq3zsh7j8"); // graph_t *subg;
1070 UNSUPPORTED("39msf2samfrjyh2h1a0nh0bnq"); // for (subg = agfstsubg(dot_root(g)); subg; subg = agnxtsubg(subg)) {
1071 UNSUPPORTED("zmexivcsx1b4oppz6cjwhzd9"); // if (GD_set_type(subg) == 7)
1072 UNSUPPORTED("xqwyd1xyo86onxfw4s7p8at4"); // collapse_cluster(g, subg);
1073 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1074 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1075
1076 throw new UnsupportedOperationException();
1077 }
1078
1079
1080
1081
1082 //3 12fw0esv4unfin6waf9mknc1o
1083 // static void set_minmax(graph_t * g)
1084 public static void set_minmax(ST_Agraph_s g) {
1085 ENTERING("12fw0esv4unfin6waf9mknc1o","set_minmax");
1086 try {
1087 int c;
1088 GD_minrank(g, GD_minrank(g) + ND_rank(GD_leader(g)));
1089 GD_maxrank(g, GD_maxrank(g) + ND_rank(GD_leader(g)));
1090 for (c = 1; c <= GD_n_cluster(g); c++)
1091 set_minmax((ST_Agraph_s) GD_clust(g).get(c).getPtr());
1092 } finally {
1093 LEAVING("12fw0esv4unfin6waf9mknc1o","set_minmax");
1094 }
1095 }
1096
1097
1098
1099
1100 //3 3bcr1748gqnu8ogb73jeja7ly
1101 // static point minmax_edges(graph_t * g)
1102 public static ST_point minmax_edges(ST_Agraph_s g) {
1103 // WARNING!! STRUCT
1104 return (ST_point) minmax_edges_w_(g).copy();
1105 }
1106 private static ST_point minmax_edges_w_(ST_Agraph_s g) {
1107 ENTERING("3bcr1748gqnu8ogb73jeja7ly","minmax_edges");
1108 try {
1109 ST_Agnode_s n;
1110 ST_Agedge_s e;
1111 final ST_point slen = new ST_point();
1112 slen.setInt("x", 0);
1113 slen.setInt("y", 0);
1114 if ((GD_maxset(g) == null) && (GD_minset(g) == null))
1115 return slen;
1116 UNSUPPORTED("d0tnzm7aw9504y1w1oqoesw64"); // if ((((Agraphinfo_t*)(((Agobj_t*)(g))->data))->minset) != NULL)
1117 UNSUPPORTED("9esfh1bqntzgyk7zcq16k9f96"); // (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->minset) = UF_find((((Agraphinfo_t*)(((Agobj_t*)(g))->data))->minset));
1118 UNSUPPORTED("2szhe8u8hvuy7p23r4p4zcb83"); // if ((((Agraphinfo_t*)(((Agobj_t*)(g))->data))->maxset) != NULL)
1119 UNSUPPORTED("tufrhwafgfvg5vepfqo9dpwg"); // (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->maxset) = UF_find((((Agraphinfo_t*)(((Agobj_t*)(g))->data))->maxset));
1120 UNSUPPORTED("3num56yubfb33g0m56jntiy0x"); // if ((n = (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->maxset))) {
1121 UNSUPPORTED("d60rrtpfeuylcbp2490sojfjq"); // slen.y = ((((Agnodeinfo_t*)(((Agobj_t*)((((Agraphinfo_t*)(((Agobj_t*)(g))->data))->maxset)))->data))->ranktype) == 5);
1122 UNSUPPORTED("79ls52ss65f22xrsubkcofzz"); // while ((e = (((Agnodeinfo_t*)(((Agobj_t*)(n))->data))->out).list[0])) {
1123 UNSUPPORTED("chd9prkphze2z32e98mbxhqyd"); // assert(((((((Agobj_t*)(e))->tag).objtype) == 2? (e): ((e)-1))->node) == UF_find(((((((Agobj_t*)(e))->tag).objtype) == 2? (e): ((e)-1))->node)));
1124 UNSUPPORTED("829yx3b7rjn7ptz89mz4dj5yo"); // reverse_edge(e);
1125 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1126 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1127 UNSUPPORTED("8us4psjv2ebkgcp54fvjbuhj8"); // if ((n = (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->minset))) {
1128 UNSUPPORTED("7uri9lp9wjgo20ram4gfo974w"); // slen.x = ((((Agnodeinfo_t*)(((Agobj_t*)((((Agraphinfo_t*)(((Agobj_t*)(g))->data))->minset)))->data))->ranktype) == 3);
1129 UNSUPPORTED("5up69q1rp9ts32jvunwg9hlrr"); // while ((e = (((Agnodeinfo_t*)(((Agobj_t*)(n))->data))->in).list[0])) {
1130 UNSUPPORTED("4t476gsg37fhfa2fdrokupx2c"); // assert(((((((Agobj_t*)(e))->tag).objtype) == 3? (e): ((e)+1))->node) == UF_find(((((((Agobj_t*)(e))->tag).objtype) == 3? (e): ((e)+1))->node)));
1131 UNSUPPORTED("829yx3b7rjn7ptz89mz4dj5yo"); // reverse_edge(e);
1132 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1133 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1134 UNSUPPORTED("erz19oifq072tdfzgz6dxa9i4"); // return slen;
1135 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1136
1137 throw new UnsupportedOperationException();
1138 } finally {
1139 LEAVING("3bcr1748gqnu8ogb73jeja7ly","minmax_edges");
1140 }
1141 }
1142
1143
1144
1145
1146 //3 1rmlm1wo3t94wyet9rlwrmith
1147 // static int minmax_edges2(graph_t * g, point slen)
1148 public static boolean minmax_edges2(ST_Agraph_s g, final ST_point slen) {
1149 // WARNING!! STRUCT
1150 return minmax_edges2_w_(g, (ST_point) slen.copy());
1151 }
1152 private static boolean minmax_edges2_w_(ST_Agraph_s g, final ST_point slen) {
1153 ENTERING("1rmlm1wo3t94wyet9rlwrmith","minmax_edges2");
1154 try {
1155 ST_Agnode_s n;
1156 ST_Agedge_s e = null;
1157 if ((GD_maxset(g)!=null) || (GD_minset(g)!=null)) {
1158 UNSUPPORTED("attp4bsjqe99xnhi7lr7pszar"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1159 UNSUPPORTED("8y47p29z0c2f1xpkrsb8w8re8"); // if (n != UF_find(n))
1160 UNSUPPORTED("6hyelvzskqfqa07xtgjtvg2is"); // continue;
1161 UNSUPPORTED("49yt5gs5xlk2yzmiulvp7iqrd"); // if (((((Agnodeinfo_t*)(((Agobj_t*)(n))->data))->out).size == 0) && (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->maxset) && (n != (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->maxset))) {
1162 UNSUPPORTED("9ksut17itonzpk3hp57jn4d1s"); // e = virtual_edge(n, (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->maxset), NULL);
1163 UNSUPPORTED("7dlot3nkpploeywkumjt3erop"); // (((Agedgeinfo_t*)(((Agobj_t*)(e))->data))->minlen) = slen.y;
1164 UNSUPPORTED("5ddkb181unkbg63gxqjx85fzq"); // (((Agedgeinfo_t*)(((Agobj_t*)(e))->data))->weight) = 0;
1165 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1166 UNSUPPORTED("5b66s1jsuwe7l2e8p6o1xpnab"); // if (((((Agnodeinfo_t*)(((Agobj_t*)(n))->data))->in).size == 0) && (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->minset) && (n != (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->minset))) {
1167 UNSUPPORTED("c00g90uqqonkk08nncvi45c8f"); // e = virtual_edge((((Agraphinfo_t*)(((Agobj_t*)(g))->data))->minset), n, NULL);
1168 UNSUPPORTED("cxdsqlq2h35nyz65uc4eifchp"); // (((Agedgeinfo_t*)(((Agobj_t*)(e))->data))->minlen) = slen.x;
1169 UNSUPPORTED("5ddkb181unkbg63gxqjx85fzq"); // (((Agedgeinfo_t*)(((Agobj_t*)(e))->data))->weight) = 0;
1170 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1171 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1172 }
1173 return (e != null);
1174 } finally {
1175 LEAVING("1rmlm1wo3t94wyet9rlwrmith","minmax_edges2");
1176 }
1177 }
1178
1179
1180
1181
1182 //3 3vpthwso788idvycelpnqijys
1183 // void rank1(graph_t * g)
1184 public static void rank1(ST_Agraph_s g) {
1185 ENTERING("3vpthwso788idvycelpnqijys","rank1");
1186 try {
1187 int maxiter = Integer.MAX_VALUE;
1188 int c;
1189 CString s;
1190 if ((s = agget(g, new CString("nslimit1")))!=null)
1191 UNSUPPORTED("9tp2zk1tsr4ce9rwsr0is9u3o"); // maxiter = atof(s) * agnnodes(g);
1192 for (c = 0; c < GD_comp(g).size; c++) {
1193 //GD_nlist(g, GD_comp(g).list.get(c));
1194 GD_nlist(g, GD_comp(g).getFromList(c));
1195 rank(g, (GD_n_cluster(g) == 0 ? 1 : 0), maxiter); /* TB balance */
1196 }
1197 } finally {
1198 LEAVING("3vpthwso788idvycelpnqijys","rank1");
1199 }
1200 }
1201
1202
1203
1204
1205 //3 cdh8wnb99v90dy6efpbzmrjix
1206 // static void expand_ranksets(graph_t * g, aspect_t* asp)
1207 public static void expand_ranksets(ST_Agraph_s g, ST_aspect_t asp) {
1208 ENTERING("cdh8wnb99v90dy6efpbzmrjix","expand_ranksets");
1209 try {
1210 int c;
1211 ST_Agnode_s n, leader;
1212 if ((n = agfstnode(g))!=null) {
1213 GD_minrank(g, MAXSHORT);
1214 GD_maxrank(g, -1);
1215 while (n!=null) {
1216 leader = UF_find(n);
1217 /* The following works because ND_rank(n) == 0 if n is not in a
1218 * cluster, and ND_rank(n) = the local rank offset if n is in
1219 * a cluster. */
1220 if (NEQ(leader, n) && (N(asp) || (ND_rank(n) == 0)))
1221 ND_rank(n, ND_rank(n) + ND_rank(leader));
1222 if (GD_maxrank(g) < ND_rank(n))
1223 GD_maxrank(g, ND_rank(n));
1224 if (GD_minrank(g) > ND_rank(n))
1225 GD_minrank(g, ND_rank(n));
1226 if (ND_ranktype(n)!=0 && (ND_ranktype(n) != 6))
1227 UF_singleton(n);
1228 n = agnxtnode(g, n);
1229 }
1230 if (EQ(g, dot_root(g))) {
1231 if (Z.z().CL_type == 100) {
1232 for (c = 1; c <= GD_n_cluster(g); c++)
1233 set_minmax((ST_Agraph_s) GD_clust(g).get(c).getPtr());
1234 } else {
1235 find_clusters(g);
1236 }
1237 }
1238 } else {
1239 GD_maxrank(g, 0);
1240 GD_minrank(g, 0);
1241 }
1242 } finally {
1243 LEAVING("cdh8wnb99v90dy6efpbzmrjix","expand_ranksets");
1244 }
1245 }
1246
1247
1248
1249
1250 //3 2o4rmb4o6f6zh46ak3se91rwr
1251 // static void dot1_rank(graph_t * g, aspect_t* asp)
1252 public static void dot1_rank(ST_Agraph_s g, ST_aspect_t asp) {
1253 ENTERING("2o4rmb4o6f6zh46ak3se91rwr","dot1_rank");
1254 try {
1255 final ST_point p = new ST_point();
1256 edgelabel_ranks(g);
1257 if (asp!=null) {
1258 UNSUPPORTED("kh7e20nqwuserrnpf3zpvuyl"); // init_UF_size(g);
1259 UNSUPPORTED("d88j5oswhz0d3yvd4wlvxohmu"); // initEdgeTypes(g);
1260 }
1261 collapse_sets(g,g);
1262 /*collapse_leaves(g); */
1263 class1_(g);
1264 p.___(minmax_edges(g));
1265 decompose(g, 0);
1266 if (asp!=null && ((GD_comp(g).size > 1)||(GD_n_cluster(g) > 0))) {
1267 UNSUPPORTED("evcjt85irnaa02v8cam07i009"); // asp->badGraph = 1;
1268 UNSUPPORTED("45nxv6kczal9hnytkfcyt2jk8"); // asp = NULL;
1269 }
1270 acyclic_(g);
1271 if (minmax_edges2(g, p))
1272 UNSUPPORTED("800vpyk6y4hcx2txwyrr2boxu"); // decompose(g, 0);
1273 if (asp!=null)
1274 rank3(g, asp);
1275 else
1276 rank1(g);
1277 expand_ranksets(g, asp);
1278 cleanup1(g);
1279 } finally {
1280 LEAVING("2o4rmb4o6f6zh46ak3se91rwr","dot1_rank");
1281 }
1282 }
1283
1284
1285
1286
1287 //3 asyfujgwqa407ffvqn5psbtsc
1288 // void dot_rank(graph_t * g, aspect_t* asp)
1289 public static void dot_rank(ST_Agraph_s g, ST_aspect_t asp) {
1290 ENTERING("asyfujgwqa407ffvqn5psbtsc","dot_rank");
1291 try {
1292 if (agget (g, new CString("newrank"))!=null) {
1293 GD_flags(g, GD_flags(g) | (1 << 4));
1294 dot2_rank (g, asp);
1295 }
1296 else
1297 dot1_rank (g, asp);
1298 //if (Verbose)
1299 //fprintf (stderr, "Maxrank = %d, minrank = %d\n", (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->maxrank), (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->minrank));
1300 } finally {
1301 LEAVING("asyfujgwqa407ffvqn5psbtsc","dot_rank");
1302 }
1303 }
1304
1305
1306
1307
1308 //3 cdncou6d2ng5i48rd1mk2cpnw
1309 // int is_cluster(graph_t * g)
1310 public static boolean is_cluster(ST_Agraph_s g) {
1311 ENTERING("cdncou6d2ng5i48rd1mk2cpnw","is_cluster");
1312 try {
1313 return (strncmp(agnameof(g), new CString("cluster"), 7) == 0);
1314 } finally {
1315 LEAVING("cdncou6d2ng5i48rd1mk2cpnw","is_cluster");
1316 }
1317 }
1318
1319
1320
1321
1322 //3 29qzn29glqnhg14z5cwt9i8ds
1323 // static void set_parent(graph_t* g, graph_t* p)
1324 public static Object set_parent(Object... arg) {
1325 UNSUPPORTED("blcrnfwfdmb15y0sduplfd1kd"); // static void set_parent(graph_t* g, graph_t* p)
1326 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1327 UNSUPPORTED("761elco9es28q1el1h87c9q8w"); // GD_parent(g) = p;
1328 UNSUPPORTED("84dx27r05ns2c0pm7idum25td"); // make_new_cluster(p, g);
1329 UNSUPPORTED("65op19ofyxj4vywwg8hovy2yh"); // node_induce(p, g);
1330 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1331
1332 throw new UnsupportedOperationException();
1333 }
1334
1335
1336
1337
1338 //3 3qlca4afaxtwu0r2v22ccpfy9
1339 // static int is_empty(graph_t * g)
1340 public static Object is_empty(Object... arg) {
1341 UNSUPPORTED("1bkrdpgwmb75nr2g9ooqfc79r"); // static int is_empty(graph_t * g)
1342 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1343 UNSUPPORTED("8bgakhvkt8exvi70zpvdvwrt4"); // return (!agfstnode(g));
1344 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1345
1346 throw new UnsupportedOperationException();
1347 }
1348
1349
1350
1351
1352 //3 sxmrpf4e3wi4vzeiu486heyw
1353 // static int is_a_strong_cluster(graph_t * g)
1354 public static Object is_a_strong_cluster(Object... arg) {
1355 UNSUPPORTED("251zndmdq92kg3zmfr3akrrmn"); // static int is_a_strong_cluster(graph_t * g)
1356 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1357 UNSUPPORTED("ecz4e03zumggc8tfymqvirexq"); // int rv;
1358 UNSUPPORTED("9l9qe4o3ak62d2r6cbq90e5g"); // char *str = agget(g, "compact");
1359 UNSUPPORTED("5zgcjj66562k7c4z26hmps9jr"); // /* rv = mapBool((str), TRUE); */
1360 UNSUPPORTED("7k6ls7carz5knwiocbejouapm"); // rv = mapBool((str), 0);
1361 UNSUPPORTED("v7vqc9l7ge2bfdwnw11z7rzi"); // return rv;
1362 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1363
1364 throw new UnsupportedOperationException();
1365 }
1366
1367
1368
1369
1370 //3 954bo7mrh993f96ujb8u3e8vt
1371 // static int rankset_kind(graph_t * g)
1372 public static Object rankset_kind(Object... arg) {
1373 UNSUPPORTED("5vyg261oak77cq7e9dmvw2omc"); // static int rankset_kind(graph_t * g)
1374 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1375 UNSUPPORTED("70l71erfhd26e1u7dnnxpa6i"); // char *str = agget(g, "rank");
1376 UNSUPPORTED("4ml2m315k80oi1eww739kxwgi"); // if (str && str[0]) {
1377 UNSUPPORTED("7j0qc9ibr6niawo611kvm2swb"); // if (!strcmp(str, "min"))
1378 UNSUPPORTED("avnuwo0ld6vqw4bdve4ku0kwr"); // return 2;
1379 UNSUPPORTED("8q0yyecb20k2nm2qnluagpkcv"); // if (!strcmp(str, "source"))
1380 UNSUPPORTED("1xt8eg4imiwilo2bv2i5shg7g"); // return 3;
1381 UNSUPPORTED("7dkmgopul9nxw7arr5odhh641"); // if (!strcmp(str, "max"))
1382 UNSUPPORTED("ajqfmduyeyu16131ii3itnjx7"); // return 4;
1383 UNSUPPORTED("4f7keu82iifj10rf0thee5c4s"); // if (!strcmp(str, "sink"))
1384 UNSUPPORTED("f45x5jzpirzixrsp3utlgrddo"); // return 5;
1385 UNSUPPORTED("kjtw0fdz1jophwulunsrgzdb"); // if (!strcmp(str, "same"))
1386 UNSUPPORTED("btmwubugs9vkexo4yb7a5nqel"); // return 1;
1387 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1388 UNSUPPORTED("ds4c38px5ikyzcv8pbtfcfg8h"); // return 6;
1389 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1390
1391 throw new UnsupportedOperationException();
1392 }
1393
1394
1395
1396
1397 //3 ej4vtw2e6g22jzlypo03buuob
1398 // static int is_nonconstraint(edge_t * e)
1399 public static Object is_nonconstraint(Object... arg) {
1400 UNSUPPORTED("cdj60nbfp2uc9emgj9bb9tuq4"); // static int is_nonconstraint(edge_t * e)
1401 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1402 UNSUPPORTED("5bdi9u1cut03m2rbxpkmjg38w"); // char *constr;
1403 UNSUPPORTED("ipmkcv3n8rnco04rgte3qrlh"); // if (E_constr && (constr = agxget(e, E_constr))) {
1404 UNSUPPORTED("cnlkffmn4nysfcmoyktn3wvrx"); // if (constr[0] && mapbool(constr) == 0)
1405 UNSUPPORTED("9qhn9m3123s8n6wwxjfo8awlm"); // return NOT(0);
1406 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1407 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
1408 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1409
1410 throw new UnsupportedOperationException();
1411 }
1412
1413
1414
1415
1416 //3 8pb7znv8q3ikfulus8sprsrb8
1417 // static node_t *find(node_t * n)
1418 public static Object find(Object... arg) {
1419 UNSUPPORTED("420nqb6oiuhh8qfg7ick8eb5j"); // static node_t *find(node_t * n)
1420 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1421 UNSUPPORTED("dxloerh79kcplsvqy37g3kwx1"); // node_t *set;
1422 UNSUPPORTED("ch7ucg4bhoyhb0yswbbtjy53"); // if ((set = ND_set(n))) {
1423 UNSUPPORTED("e20g6f3inc2t1acfqffb0ksqe"); // if (set != n)
1424 UNSUPPORTED("3lalmwvgf54uou021ltj0hfqg"); // set = ND_set(n) = find(set);
1425 UNSUPPORTED("2lkbqgh2h6urnppaik3zo7ywi"); // } else
1426 UNSUPPORTED("45wb5d7uba8g13ojkskeug5v2"); // set = ND_set(n) = n;
1427 UNSUPPORTED("d5jffopzvq1b1jnhb3jadtkkb"); // return set;
1428 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1429
1430 throw new UnsupportedOperationException();
1431 }
1432
1433
1434
1435
1436 //3 tgndl91vjf2dvnepj15uye32
1437 // static node_t *union_one(node_t * leader, node_t * n)
1438 public static Object union_one(Object... arg) {
1439 UNSUPPORTED("bk1ys5rvc0fqcssw437mw03pk"); // static node_t *union_one(node_t * leader, node_t * n)
1440 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1441 UNSUPPORTED("vkwoakpy0gnbvzgy8gprpluu"); // if (n)
1442 UNSUPPORTED("879p5fay2s7f829lo6qaxs62y"); // return (ND_set(find(n)) = find(leader));
1443 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
1444 UNSUPPORTED("o1psslvh23yuu288xx1nzbv6"); // return leader;
1445 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1446
1447 throw new UnsupportedOperationException();
1448 }
1449
1450
1451
1452
1453 //3 1ku7zqljp4yk6j8pqxa19ko4u
1454 // static node_t *union_all(graph_t * g)
1455 public static Object union_all(Object... arg) {
1456 UNSUPPORTED("1bddf3dbho07f9di3ae5tdn2z"); // static node_t *union_all(graph_t * g)
1457 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1458 UNSUPPORTED("d5wzfazsul6ns71kurzu097zq"); // node_t *n, *leader;
1459 UNSUPPORTED("42x5vqk9aw9a2ld3duvpmp7u9"); // n = agfstnode(g);
1460 UNSUPPORTED("b23lxt0h34yyivnau77kavofl"); // if (!n)
1461 UNSUPPORTED("bp96fem54xcxrw16cmnlpell9"); // return n;
1462 UNSUPPORTED("c7r16vtue9uiodzk7n9ybdegz"); // leader = find(n);
1463 UNSUPPORTED("1azt0yldbuvzvyhftheine5bv"); // while ((n = agnxtnode(g, n)))
1464 UNSUPPORTED("aygpegbyw6isjunzjiq2efa8e"); // union_one(leader, n);
1465 UNSUPPORTED("d2vvjehoyl5rcjodzjl8q0xne"); // return leader;
1466 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1467
1468 throw new UnsupportedOperationException();
1469 }
1470
1471
1472
1473
1474 //3 dehfujiq2i24w0y9qcoq88gbd
1475 // static void compile_samerank(graph_t * ug, graph_t * parent_clust)
1476 public static Object compile_samerank(Object... arg) {
1477 UNSUPPORTED("52xc1gml0ynibrpu4r03l9cs"); // static void compile_samerank(graph_t * ug, graph_t * parent_clust)
1478 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1479 UNSUPPORTED("5prtalowcftfpc3phfgtdwxe1"); // graph_t *s; /* subgraph being scanned */
1480 UNSUPPORTED("6rya07j39ddlbnek0cawgbdxq"); // graph_t *clust; /* cluster that contains the rankset */
1481 UNSUPPORTED("d5wzfazsul6ns71kurzu097zq"); // node_t *n, *leader;
1482 UNSUPPORTED("3j62rndf411nak99bxbvwogwg"); // if (is_empty(ug))
1483 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
1484 UNSUPPORTED("116sd790xqr0sm9prs44dhdi9"); // if (is_a_cluster(ug)) {
1485 UNSUPPORTED("anfjvlosf3592vmzm64wp9ukv"); // clust = ug;
1486 UNSUPPORTED("a4nj79aw8gc4rsc6qh4h1j3ca"); // if (parent_clust) {
1487 UNSUPPORTED("2cme4svj15jnccy2a5my2k0vk"); // GD_level(ug) = GD_level(parent_clust) + 1;
1488 UNSUPPORTED("92dkw1fscsyjwrbkjnllcmsiz"); // set_parent(ug, parent_clust);
1489 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1490 UNSUPPORTED("9352ql3e58qs4fzapgjfrms2s"); // else
1491 UNSUPPORTED("1f3tsi2calw640ylv89zufnqg"); // GD_level(ug) = 0;
1492 UNSUPPORTED("2lkbqgh2h6urnppaik3zo7ywi"); // } else
1493 UNSUPPORTED("f2eqknbcu7dkt0mk3aa0nseps"); // clust = parent_clust;
1494 UNSUPPORTED("2jowbcd45wf29ysq00oxpb9qh"); // /* process subgraphs of this subgraph */
1495 UNSUPPORTED("cpub3vrdy1soy50cezvowuqp8"); // for (s = agfstsubg(ug); s; s = agnxtsubg(s))
1496 UNSUPPORTED("6y2vizzx42iva8zf3ndgfxuoo"); // compile_samerank(s, clust);
1497 UNSUPPORTED("4st45szka4kxyf5afpt9r2lr7"); // /* process this subgraph as a cluster */
1498 UNSUPPORTED("116sd790xqr0sm9prs44dhdi9"); // if (is_a_cluster(ug)) {
1499 UNSUPPORTED("4pm26v2jo8qeolmy8246h5zal"); // for (n = agfstnode(ug); n; n = agnxtnode(ug, n)) {
1500 UNSUPPORTED("dpma84q2zbh96nqex4fp8bs5a"); // if (ND_clust(n) == 0)
1501 UNSUPPORTED("9ov8qga72kqj7lnxefrlneehb"); // ND_clust(n) = ug;
1502 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1503 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1504 UNSUPPORTED("b6vj39735t21yl5ayiouei3ea"); // /* process this subgraph as a rankset */
1505 UNSUPPORTED("bt28cwea3vaqopki07c2rians"); // switch (rankset_kind(ug)) {
1506 UNSUPPORTED("33l7a58zp8vj6fuliwdkk2nkn"); // case 3:
1507 UNSUPPORTED("btl4oqew40wl0bqc9bhe1qshq"); // GD_has_sourcerank(clust) = NOT(0); /* fall through */
1508 UNSUPPORTED("4u5xz2u3urj13y0aw30fdyup5"); // case 2:
1509 UNSUPPORTED("9shvnosp4rfl2zcu1mk8mt6k"); // leader = union_all(ug);
1510 UNSUPPORTED("6o42rb3i5w3jv1861oa077ahy"); // GD_minrep(clust) = union_one(leader, GD_minrep(clust));
1511 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
1512 UNSUPPORTED("94bjfk0blg9ugkinwopclju8t"); // case 5:
1513 UNSUPPORTED("b9tzw03kknh7ged56o6llxdh0"); // GD_has_sinkrank(clust) = NOT(0); /* fall through */
1514 UNSUPPORTED("7gwyze795m9aa2915n3bou49x"); // case 4:
1515 UNSUPPORTED("9shvnosp4rfl2zcu1mk8mt6k"); // leader = union_all(ug);
1516 UNSUPPORTED("dumvmo0mkc9khfmooiadflzuz"); // GD_maxrep(clust) = union_one(leader, GD_maxrep(clust));
1517 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
1518 UNSUPPORTED("d0gk15gzj4wz8nv54zbr285hm"); // case 1:
1519 UNSUPPORTED("9shvnosp4rfl2zcu1mk8mt6k"); // leader = union_all(ug);
1520 UNSUPPORTED("aukepn75qomcnwetlwyvziwx1"); // /* do we need to record these ranksets? */
1521 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
1522 UNSUPPORTED("4ak4rwp0nsvc9n89y3dnvoiy9"); // case 6:
1523 UNSUPPORTED("6aw91xzjmqvmtdvt1di23af8y"); // break;
1524 UNSUPPORTED("b7b3qf9gm8yinsl7rq2tcvamg"); // default: /* unrecognized - warn and do nothing */
1525 UNSUPPORTED("dsg015rva622f29whl6b5ner1"); // agerr(AGWARN, "%s has unrecognized rank=%s", agnameof(ug),
1526 UNSUPPORTED("7gjdlew6rtq0dsdxc6uyc7v48"); // agget(ug, "rank"));
1527 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1528 UNSUPPORTED("8z2hxrvowojvpioiz41x8djhw"); // /* a cluster may become degenerate */
1529 UNSUPPORTED("bg6be1cr97nd4blhxwc8577cz"); // if (is_a_cluster(ug) && GD_minrep(ug)) {
1530 UNSUPPORTED("7z1ki4lb1ja4hai3qi68hlg72"); // if (GD_minrep(ug) == GD_maxrep(ug)) {
1531 UNSUPPORTED("6d3xnrwrzibz1hajej296nhj4"); // node_t *up = union_all(ug);
1532 UNSUPPORTED("bisonxzfe0vx9x9xtsvv27rq9"); // GD_minrep(ug) = up;
1533 UNSUPPORTED("esz48qzeb3f3oomg8wb4drmrn"); // GD_maxrep(ug) = up;
1534 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1535 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1536 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1537
1538 throw new UnsupportedOperationException();
1539 }
1540
1541
1542
1543
1544 //3 6mzsthkzz214du9ljfc7ijlf3
1545 // static graph_t *dot_lca(graph_t * c0, graph_t * c1)
1546 public static Object dot_lca(Object... arg) {
1547 UNSUPPORTED("egnw42d8jhfdyl5zqlzqffv17"); // static graph_t *dot_lca(graph_t * c0, graph_t * c1)
1548 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1549 UNSUPPORTED("8qmvk29gersospxrjeukh5zdn"); // while (c0 != c1) {
1550 UNSUPPORTED("9395225iwl078vpfdl5fz3q1i"); // if (GD_level(c0) >= GD_level(c1))
1551 UNSUPPORTED("ud0xxtx626m6p44f5ybl28oz"); // c0 = GD_parent(c0);
1552 UNSUPPORTED("9352ql3e58qs4fzapgjfrms2s"); // else
1553 UNSUPPORTED("1z7wsarh0nlwq4y04yizw1pbj"); // c1 = GD_parent(c1);
1554 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1555 UNSUPPORTED("aqd6v9mqxnbx6er4fkhkmhusr"); // return c0;
1556 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1557
1558 throw new UnsupportedOperationException();
1559 }
1560
1561
1562
1563
1564 //3 7fwe6cym6k60fw6f2gkbftvh8
1565 // static int is_internal_to_cluster(edge_t * e)
1566 public static Object is_internal_to_cluster(Object... arg) {
1567 UNSUPPORTED("esoedecj682cdsbz3i9026zfo"); // static int is_internal_to_cluster(edge_t * e)
1568 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1569 UNSUPPORTED("bf7f1i4wj7cvj82os2h0somln"); // graph_t *par, *ct, *ch;
1570 UNSUPPORTED("pzh3wmhacvb8baamh8d0x2j5"); // ct = ND_clust(agtail(e));
1571 UNSUPPORTED("1yxzewahgac4khyfwgegotstb"); // ch = ND_clust(aghead(e));
1572 UNSUPPORTED("c0hxl5pgz9bgngw9cw54a6y8z"); // if (ct == ch)
1573 UNSUPPORTED("bp2y18pqq5n09006utwifdyxo"); // return NOT(0);
1574 UNSUPPORTED("b4gos5u06phmhqll71bg7znsl"); // par = dot_lca(ct, ch);
1575 UNSUPPORTED("32a491a5jyr0gaudx2odlyl1x"); // /* if (par == agroot(par)) */
1576 UNSUPPORTED("4ugp2o11w5qr2tr0vjcqlm5xu"); // /* return FALSE; */
1577 UNSUPPORTED("1vb9z2lsj8ote2lis1nzqfq98"); // if ((par == ct) || (par == ch))
1578 UNSUPPORTED("bp2y18pqq5n09006utwifdyxo"); // return NOT(0);
1579 UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); // return 0;
1580 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1581
1582 throw new UnsupportedOperationException();
1583 }
1584
1585
1586 //1 ca279jzn1n2k40bv7mz55ccx7
1587 // static node_t* Last_node
1588 //private static Agnode_s Last_node;
1589
1590
1591 //3 6odjfuoywf6x6xpuz14xn1w07
1592 // static node_t* makeXnode (graph_t* G, char* name)
1593 public static Object makeXnode(Object... arg) {
1594 UNSUPPORTED("bpc5db7ozsqpc73t2xl0qmpnr"); // static node_t* makeXnode (graph_t* G, char* name)
1595 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1596 UNSUPPORTED("as7pt6rau89ac05ml4zp39xgj"); // node_t *n = agnode(G, name, 1);
1597 UNSUPPORTED("6b9ymcqm4d2w42w6dvlhb7hio"); // alloc_elist(4, ND_in(n));
1598 UNSUPPORTED("b0ocdkprm41g10emqffwvovpd"); // alloc_elist(4, ND_out(n));
1599 UNSUPPORTED("e32lwhe8aj8zbofa5hl91g94x"); // if (Last_node) {
1600 UNSUPPORTED("ctnbewkujd0gitkeptmdjrc5e"); // ND_prev(n) = Last_node;
1601 UNSUPPORTED("efpj513jkepv1eb6ehj5cyuqy"); // ND_next(Last_node) = n;
1602 UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); // } else {
1603 UNSUPPORTED("d73xo1uhf9960attqraecy18q"); // ND_prev(n) = NULL;
1604 UNSUPPORTED("bd7fe5nmcvdfwgbbuzoxzk59n"); // GD_nlist(G) = n;
1605 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1606 UNSUPPORTED("7gutgf5zbme88t9ueyzvir9yh"); // Last_node = n;
1607 UNSUPPORTED("9tl9ztdpfpeb900t5gagch4eg"); // ND_next(n) = NULL;
1608 UNSUPPORTED("69hc24ic55i66g8tf2ne42327"); // return n;
1609 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1610
1611 throw new UnsupportedOperationException();
1612 }
1613
1614
1615
1616
1617 //3 cd3kauuz11z03xym1la7ze5e6
1618 // static void compile_nodes(graph_t * g, graph_t * Xg)
1619 public static Object compile_nodes(Object... arg) {
1620 UNSUPPORTED("12jh8m3jnppgzqcx642zkv20x"); // static void compile_nodes(graph_t * g, graph_t * Xg)
1621 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1622 UNSUPPORTED("dm6k18yfspisvs0pl8f3kp9j4"); // /* build variables */
1623 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1624 UNSUPPORTED("hibhvgkp511r6u6ips8yb0un"); // Last_node = NULL;
1625 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1626 UNSUPPORTED("2f2poxq5fr9k7bgerylsq6dkm"); // if (find(n) == n)
1627 UNSUPPORTED("9xe9wxas5cxrrzpmqtkfavbuj"); // ND_rep(n) = makeXnode (Xg, agnameof(n));
1628 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1629 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1630 UNSUPPORTED("cfjmkdzc5nj1nbp2ckl0mejra"); // if (ND_rep(n) == 0)
1631 UNSUPPORTED("2u4sgiv3zkgh3t4r1ksk76oyl"); // ND_rep(n) = ND_rep(find(n));
1632 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1633 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1634
1635 throw new UnsupportedOperationException();
1636 }
1637
1638
1639
1640
1641 //3 e1guv5kmb9i30k71e66mdxo3y
1642 // static void merge(edge_t * e, int minlen, int weight)
1643 public static Object merge(Object... arg) {
1644 UNSUPPORTED("1npguevtdh47xfz698yahzrqb"); // static void merge(edge_t * e, int minlen, int weight)
1645 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1646 UNSUPPORTED("acr0hvlhebqp3iieup5bti0r6"); // ED_minlen(e) = MAX(ED_minlen(e), minlen);
1647 UNSUPPORTED("eq9oxzgg08304c8ph77144cpu"); // ED_weight(e) += weight;
1648 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1649
1650 throw new UnsupportedOperationException();
1651 }
1652
1653
1654
1655
1656 //3 59c6dqhr5u2wv75vxz5cgbkui
1657 // static void strong(graph_t * g, node_t * t, node_t * h, edge_t * orig)
1658 public static Object strong(Object... arg) {
1659 UNSUPPORTED("6vzggze9zva4h232s9hd64r27"); // static void strong(graph_t * g, node_t * t, node_t * h, edge_t * orig)
1660 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1661 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
1662 UNSUPPORTED("bqayp53mx8tl3a9owcil2sfpy"); // if ((e = (agedge(g,t,h,NULL,0))) ||
1663 UNSUPPORTED("4bkprvzfmfr1nlqmvqcd1xpg"); // (e = (agedge(g,h,t,NULL,0))) || (e = agedge(g, t, h, 0, 1)))
1664 UNSUPPORTED("9otcshlag9drzks2p4q4bz1z8"); // merge(e, ED_minlen(orig), ED_weight(orig));
1665 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
1666 UNSUPPORTED("1qsfg1so4d9ee0f799ylbtkyp"); // agerr(AGERR, "ranking: failure to create strong constraint edge between nodes %s and %s\n",
1667 UNSUPPORTED("347820654uihcls8om0v8c3g1"); // agnameof(t), agnameof(h));
1668 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1669
1670 throw new UnsupportedOperationException();
1671 }
1672
1673
1674
1675
1676 //3 a1kjm11iwgfl824pakzcm8kuu
1677 // static void weak(graph_t * g, node_t * t, node_t * h, edge_t * orig)
1678 public static Object weak(Object... arg) {
1679 UNSUPPORTED("e0f6tf4pkq822l7f10u2xromd"); // static void weak(graph_t * g, node_t * t, node_t * h, edge_t * orig)
1680 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1681 UNSUPPORTED("aigogf44ojtcesuy4xs7inqbn"); // node_t *v;
1682 UNSUPPORTED("9b48a157azcrz2ihzqehhpsvs"); // edge_t *e, *f;
1683 UNSUPPORTED("3kkq8fnz3moxvyriighzr9v70"); // static int id;
1684 UNSUPPORTED("hbaoyuj2oi8c7iuzviuukgb7"); // char buf[100];
1685 UNSUPPORTED("5n9mmbpgpmin1li1s5wxfn0j7"); // for (e = agfstin(g, t); e; e = agnxtin(g, e)) {
1686 UNSUPPORTED("blrs1fuvxzbs20bdqz7btw4yt"); // /* merge with existing weak edge (e,f) */
1687 UNSUPPORTED("cccrsacwb6lshsxm8g9vpqdvo"); // v = agtail(e);
1688 UNSUPPORTED("657evjbfij6x36pli6d9g15lg"); // if ((f = agfstout(g, v)) && (aghead(f) == h)) {
1689 UNSUPPORTED("6cprbghvenu9ldc0ez1ifc63q"); // return;
1690 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1691 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1692 UNSUPPORTED("dhdmfarapbytpy4h24lgqslbi"); // if (!e) {
1693 UNSUPPORTED("blf0483ca5ufq6yh26qqww4wv"); // sprintf (buf, "_weak_%d", id++);
1694 UNSUPPORTED("9gu1nn0ir6yx53fj7kawo6xtw"); // v = makeXnode(g, buf);
1695 UNSUPPORTED("7us6c9ykrtln0besnd67v5cer"); // e = agedge(g, v, t, 0, 1);
1696 UNSUPPORTED("atd2wygaazfzcta0bus6bs4uu"); // f = agedge(g, v, h, 0, 1);
1697 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1698 UNSUPPORTED("7nn4pn4dj4nuo71wfp1byijpx"); // ED_minlen(e) = MAX(ED_minlen(e), 0); /* effectively a nop */
1699 UNSUPPORTED("drqgauf89xr1mpyydaxqfg694"); // ED_weight(e) += ED_weight(orig) * 1000;
1700 UNSUPPORTED("halhvp8h6olsu4tb4b5zb8ys"); // ED_minlen(f) = MAX(ED_minlen(f), ED_minlen(orig));
1701 UNSUPPORTED("dyyu1myirsx00xvfvqq97f6dt"); // ED_weight(f) += ED_weight(orig);
1702 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1703
1704 throw new UnsupportedOperationException();
1705 }
1706
1707
1708
1709
1710 //3 68dc7hsp2siu9in566grx5h8l
1711 // static void compile_edges(graph_t * ug, graph_t * Xg)
1712 public static Object compile_edges(Object... arg) {
1713 UNSUPPORTED("57s72j3dqfa0fdsi9zu6yqbxe"); // static void compile_edges(graph_t * ug, graph_t * Xg)
1714 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1715 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1716 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
1717 UNSUPPORTED("1dgz401xgus10wp90qpgfmm84"); // node_t *Xt, *Xh;
1718 UNSUPPORTED("c37x0xox8y9eba9wy6d00j14i"); // graph_t *tc, *hc;
1719 UNSUPPORTED("lp2eyq9typ14npscbcmds97c"); // /* build edge constraints */
1720 UNSUPPORTED("1rgbf8esuu21jsnjy0ozcv2nx"); // for (n = agfstnode(ug); n; n = agnxtnode(ug, n)) {
1721 UNSUPPORTED("36jgu4l53q07scrzxtbzu9ws1"); // Xt = ND_rep(n);
1722 UNSUPPORTED("1huyj2j0jo6l60j1121l0cenn"); // for (e = agfstout(ug, n); e; e = agnxtout(ug, e)) {
1723 UNSUPPORTED("eihgt2jen0ohii72jzayossof"); // if (is_nonconstraint(e))
1724 UNSUPPORTED("6hyelvzskqfqa07xtgjtvg2is"); // continue;
1725 UNSUPPORTED("21s68hvg9tcok9mc1yj0cxyo8"); // Xh = ND_rep(find(aghead(e)));
1726 UNSUPPORTED("5c9s9jmoqhby2u29zb0g9neqn"); // if (Xt == Xh)
1727 UNSUPPORTED("6hyelvzskqfqa07xtgjtvg2is"); // continue;
1728 UNSUPPORTED("enlmoet02jwyseh462fspj7kr"); // tc = ND_clust(agtail(e));
1729 UNSUPPORTED("47ba8c5wv42664v4uk20dcxui"); // hc = ND_clust(aghead(e));
1730 UNSUPPORTED("7o1ut6pe3ws38101s6x9jv08k"); // if (is_internal_to_cluster(e)) {
1731 UNSUPPORTED("61gy4yt9v1l4586kvpqtacmur"); // /* determine if graph requires reversed edge */
1732 UNSUPPORTED("cuivzwkiwyl1njm43k0v3zig3"); // if ((find(agtail(e)) == GD_maxrep(ND_clust(agtail(e))))
1733 UNSUPPORTED("9xxo59da6q1v90ljd3h8apc3j"); // || (find(aghead(e)) == GD_minrep(ND_clust(aghead(e))))) {
1734 UNSUPPORTED("4mdqa1pib7sml5socnk5zj1jn"); // node_t *temp = Xt;
1735 UNSUPPORTED("edto6lxzuam8lv9gvigp2bnnh"); // Xt = Xh;
1736 UNSUPPORTED("edahfvolx6t8a93b1jzop0prz"); // Xh = temp;
1737 UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); // }
1738 UNSUPPORTED("eap1t3wskyfghhrwqv5fzgiye"); // strong(Xg, Xt, Xh, e);
1739 UNSUPPORTED("175pyfe8j8mbhdwvrbx3gmew9"); // } else {
1740 UNSUPPORTED("73tu1coi87ooqzro2vtdezlut"); // if (is_a_strong_cluster(tc) || is_a_strong_cluster(hc))
1741 UNSUPPORTED("1qlyasf525g29jx5adouyjjaf"); // weak(Xg, Xt, Xh, e);
1742 UNSUPPORTED("7e1uy5mzei37p66t8jp01r3mk"); // else
1743 UNSUPPORTED("dtnnxvw72r9ajw35rh6sh0twe"); // strong(Xg, Xt, Xh, e);
1744 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1745 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1746 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1747 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1748
1749 throw new UnsupportedOperationException();
1750 }
1751
1752
1753
1754
1755 //3 1nzwhja8l48xyfliiyqjsvegu
1756 // static void compile_clusters(graph_t* g, graph_t* Xg, node_t* top, node_t* bot)
1757 public static Object compile_clusters(Object... arg) {
1758 UNSUPPORTED("4w43o1w7rtbr7a1ewf1ai3ynx"); // static void compile_clusters(graph_t* g, graph_t* Xg, node_t* top, node_t* bot)
1759 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1760 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1761 UNSUPPORTED("tppzioyoeodu2sq7fsqife44"); // node_t *rep;
1762 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
1763 UNSUPPORTED("evmjaaqcnbnbnogx8aaw70ura"); // graph_t *sub;
1764 UNSUPPORTED("73bera1w406yjis65313aefau"); // if (is_a_cluster(g) && is_a_strong_cluster(g)) {
1765 UNSUPPORTED("attp4bsjqe99xnhi7lr7pszar"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1766 UNSUPPORTED("cpkj2qkslx3blfoouey105509"); // if (agfstin(g, n) == 0) {
1767 UNSUPPORTED("eqsuud7jsawkoiswwrrru1r3a"); // rep = ND_rep(find(n));
1768 UNSUPPORTED("4fbgaoqhx6tmezixpndizn8ee"); // if (!top) top = makeXnode(Xg,"\177top");
1769 UNSUPPORTED("bp6fj85jbfmup51iezb1m0ceo"); // agedge(Xg, top, rep, 0, 1);
1770 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1771 UNSUPPORTED("f5bjshz39kvzzthd7dqnbg81p"); // if (agfstout(g, n) == 0) {
1772 UNSUPPORTED("eqsuud7jsawkoiswwrrru1r3a"); // rep = ND_rep(find(n));
1773 UNSUPPORTED("46t01tbbri501pur6cw0iwvs3"); // if (!bot) bot = makeXnode(Xg,"\177bot");
1774 UNSUPPORTED("5hobrjtzylmppobf8pdnq7rhk"); // agedge(Xg, rep, bot, 0, 1);
1775 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1776 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1777 UNSUPPORTED("6qtb53kac7myad1p5cy3wf89i"); // if (top && bot) {
1778 UNSUPPORTED("2ydmagof3r394ooo3v0twq5us"); // e = agedge(Xg, top, bot, 0, 1);
1779 UNSUPPORTED("5s7xl2rvkq0dxxapwrubcmv9p"); // merge(e, 0, 1000);
1780 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1781 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1782 UNSUPPORTED("bkafc0cyfhu7g619r30g2vtmg"); // for (sub = agfstsubg(g); sub; sub = agnxtsubg(sub))
1783 UNSUPPORTED("br6bnlza0f68fwkd0sbsfznv5"); // compile_clusters(sub, Xg, top, bot);
1784 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1785
1786 throw new UnsupportedOperationException();
1787 }
1788
1789
1790
1791
1792 //3 93ycqhupenif7m6n70yj2rptv
1793 // static void reverse_edge2(graph_t * g, edge_t * e)
1794 public static Object reverse_edge2(Object... arg) {
1795 UNSUPPORTED("aa57ihhjujmpk9d1fjnh7uhn2"); // static void reverse_edge2(graph_t * g, edge_t * e)
1796 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1797 UNSUPPORTED("32j70piql6r327tbseq7o0k28"); // edge_t *rev;
1798 UNSUPPORTED("ankp6nch7e9a18lqb2heot7yf"); // rev = (agedge(g,aghead(e),agtail(e),NULL,0));
1799 UNSUPPORTED("8c5hijvd5kr4lynpc8zoa0b9l"); // if (!rev)
1800 UNSUPPORTED("3tf0rz74jsukbjti74suklmrr"); // rev = agedge(g, aghead(e), agtail(e), 0, 1);
1801 UNSUPPORTED("a37ttwpda0n66ej1agvpbx9u"); // merge(rev, ED_minlen(e), ED_weight(e));
1802 UNSUPPORTED("ae7ymr0zymf63zpp3vzny1kw5"); // agdelete(g, e);
1803 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1804
1805 throw new UnsupportedOperationException();
1806 }
1807
1808
1809
1810
1811 //3 75994nd7ifrh2xjk0eei7kj04
1812 // static void dfs(graph_t * g, node_t * v)
1813 public static Object dfs(Object... arg) {
1814 UNSUPPORTED("e728nuv7n4wyffryp1y6ny8no"); // static void dfs(graph_t * g, node_t * v)
1815 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1816 UNSUPPORTED("9b48a157azcrz2ihzqehhpsvs"); // edge_t *e, *f;
1817 UNSUPPORTED("9cx417bj13sr8qn5zfj0zllwm"); // node_t *w;
1818 UNSUPPORTED("701du899u3x4bjilnoar3a2me"); // if (ND_mark(v))
1819 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
1820 UNSUPPORTED("3dxrqgsmycugkp3qprexbuawx"); // ND_mark(v) = NOT(0);
1821 UNSUPPORTED("9z9a3g70rwq874kmknu0re0w0"); // ND_onstack(v) = NOT(0);
1822 UNSUPPORTED("3twcq4i177ymcmm9hj6l996fr"); // for (e = agfstout(g, v); e; e = f) {
1823 UNSUPPORTED("9oaziib9dhmc3xyk6ku5rco5a"); // f = agnxtout(g, e);
1824 UNSUPPORTED("bqi3fu38n0i7mblfl3ycwdjuo"); // w = aghead(e);
1825 UNSUPPORTED("1pq8rawujka41xkc0ujz0c4jl"); // if (ND_onstack(w))
1826 UNSUPPORTED("cxzlqoajcjsygpeg1218t5uh8"); // reverse_edge2(g, e);
1827 UNSUPPORTED("8k75h069sv2k9b6tgz77dscwd"); // else {
1828 UNSUPPORTED("1w7s47988wvu89n176ee6lnii"); // if (ND_mark(w) == 0)
1829 UNSUPPORTED("d5xmvav6dfdviu7ikabr84w6g"); // dfs(g, w);
1830 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1831 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1832 UNSUPPORTED("8o0qmsv6vkvey8j3nrtn0z3nd"); // ND_onstack(v) = 0;
1833 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1834
1835 throw new UnsupportedOperationException();
1836 }
1837
1838
1839
1840
1841 //3 dt90swbhv55qox6i9anmtxctb
1842 // static void break_cycles(graph_t * g)
1843 public static Object break_cycles(Object... arg) {
1844 UNSUPPORTED("d7jjxsr59cimfe921b021ndni"); // static void break_cycles(graph_t * g)
1845 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1846 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1847 UNSUPPORTED("16hw9gw0dz2w7mrtba0eoqrdi"); // for (n = agfstnode(g); n; n = agnxtnode(g, n))
1848 UNSUPPORTED("3hbdxz1mh0xcb0h1e1gea41u4"); // ND_mark(n) = ND_onstack(n) = 0;
1849 UNSUPPORTED("16hw9gw0dz2w7mrtba0eoqrdi"); // for (n = agfstnode(g); n; n = agnxtnode(g, n))
1850 UNSUPPORTED("15bqemmbeo0l42s4hi394weuz"); // dfs(g, n);
1851 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1852
1853 throw new UnsupportedOperationException();
1854 }
1855
1856
1857
1858
1859 //3 8wnczo1mkpxdobt1qmszr6m9f
1860 // static void setMinMax (graph_t* g, int doRoot)
1861 public static Object setMinMax(Object... arg) {
1862 UNSUPPORTED("5hvfkvu5sx7btm870992ll8rq"); // static void setMinMax (graph_t* g, int doRoot)
1863 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1864 UNSUPPORTED("1cpavh3irbeilfgefcbzvnl04"); // int c, v;
1865 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1866 UNSUPPORTED("eygm2jbvlhvevem9cgvzdsnoi"); // node_t* leader;
1867 UNSUPPORTED("8lepc7wxus3ce9jmpjg54nxtw"); // /* Do child clusters */
1868 UNSUPPORTED("7z5fb6iyowsosn1hiz7opeoc6"); // for (c = 1; c <= GD_n_cluster(g); c++)
1869 UNSUPPORTED("8r4qwge4bz0777mdq5rt0ojei"); // setMinMax(GD_clust(g)[c], 0);
1870 UNSUPPORTED("3x63fs1jyz7xhzx9gygufh7wx"); // if (!GD_parent(g) && !doRoot) // root graph
1871 UNSUPPORTED("a7fgam0j0jm7bar0mblsv3no4"); // return;
1872 UNSUPPORTED("65ovv0jsp2kemyp7179cotrqh"); // GD_minrank(g) = MAXSHORT;
1873 UNSUPPORTED("4rx9wnlw0uumqfzcjtyg9rpfl"); // GD_maxrank(g) = -1;
1874 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1875 UNSUPPORTED("5wsvwyjckf81tdlqonfb9nvhu"); // v = ND_rank(n);
1876 UNSUPPORTED("bbcqt8euig2s31zz814pp52cw"); // if (GD_maxrank(g) < v)
1877 UNSUPPORTED("3cfkrpa6pt2hni0tkp45ybvtz"); // GD_maxrank(g) = v;
1878 UNSUPPORTED("3vjkf11cl59z0q8i5mfju17se"); // if (GD_minrank(g) > v) {
1879 UNSUPPORTED("cze1fj82fd8cmalgawkse3gy"); // GD_minrank(g) = v;
1880 UNSUPPORTED("73jlqlf2bn3kx7i020menpfcw"); // leader = n;
1881 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1882 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1883 UNSUPPORTED("5j1zsofmtglx1esxwbstti1un"); // GD_leader(g) = leader;
1884 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1885
1886 throw new UnsupportedOperationException();
1887 }
1888
1889
1890
1891
1892 //3 1rsds60zu7vl5g6sqr3ielup6
1893 // static void readout_levels(graph_t * g, graph_t * Xg, int ncc)
1894 public static Object readout_levels(Object... arg) {
1895 UNSUPPORTED("5rkflwuoyx87w4zl80k9x22hy"); // static void readout_levels(graph_t * g, graph_t * Xg, int ncc)
1896 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1897 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1898 UNSUPPORTED("889z71siph20icfcbycjqnicp"); // node_t *xn;
1899 UNSUPPORTED("a76n98ruj81c10y11ge1t5f71"); // int* minrk = NULL;
1900 UNSUPPORTED("8kdgedl9jvch9df0ltm68vfas"); // int doRoot = 0;
1901 UNSUPPORTED("65ovv0jsp2kemyp7179cotrqh"); // GD_minrank(g) = MAXSHORT;
1902 UNSUPPORTED("4rx9wnlw0uumqfzcjtyg9rpfl"); // GD_maxrank(g) = -1;
1903 UNSUPPORTED("almasgzi7eeks0c5qj1cne0ma"); // if (ncc > 1) {
1904 UNSUPPORTED("bbuxsg26kpzb2fl660hjri9l8"); // int i;
1905 UNSUPPORTED("dl79ga1rb2mw8udgcp9s69msx"); // minrk = (int*)zmalloc((ncc+1)*sizeof(int));
1906 UNSUPPORTED("2e6gemf3dl8erdtw782hcarc0"); // for (i = 1; i <= ncc; i++)
1907 UNSUPPORTED("dd010jlvkjz1z7fowihz8s25o"); // minrk[i] = MAXSHORT;
1908 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1909 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1910 UNSUPPORTED("dfofew00g6pxf2nxt4l881l0i"); // xn = ND_rep(find(n));
1911 UNSUPPORTED("qp65iwqtnpliswz9lpihtuzc"); // ND_rank(n) = ND_rank(xn);
1912 UNSUPPORTED("68vv0lam9vxeuk3fg60ad5w6g"); // if (GD_maxrank(g) < ND_rank(n))
1913 UNSUPPORTED("2v65dy95gqvsnppoelwwl8ayh"); // GD_maxrank(g) = ND_rank(n);
1914 UNSUPPORTED("3ozq6tqfxcegom34qkyrrxnfg"); // if (GD_minrank(g) > ND_rank(n))
1915 UNSUPPORTED("duyud2jy9uf1rbcis84c3lsj6"); // GD_minrank(g) = ND_rank(n);
1916 UNSUPPORTED("5hf6jaqj5exe9r41fzbjl28ys"); // if (minrk) {
1917 UNSUPPORTED("2m02fq9wavpk0rfm07klg50p0"); // ND_hops(n) = ND_hops(xn);
1918 UNSUPPORTED("1kpcg7olwm9sb9fw0cw9xov8p"); // minrk[ND_hops(n)] = MIN(minrk[ND_hops(n)],ND_rank(n));
1919 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1920 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1921 UNSUPPORTED("6grm8jag5924kjntwhi98yt6v"); // if (minrk) {
1922 UNSUPPORTED("eg21iwn9eqyjsoisl58nl8i36"); // for (n = agfstnode(g); n; n = agnxtnode(g, n))
1923 UNSUPPORTED("1xy7cyvcmd5jh134wfd4hkd73"); // ND_rank(n) -= minrk[ND_hops(n)];
1924 UNSUPPORTED("3h50jqntcutttxjjqk9e7qrp9"); // /* Non-uniform shifting, so recompute maxrank/minrank of root graph */
1925 UNSUPPORTED("7cxmg4tvzh3us2wx1hpur4ify"); // doRoot = 1;
1926 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1927 UNSUPPORTED("19s4z0qdne7jghr6qco9pewkb"); // else if (GD_minrank(g) > 0) { /* should never happen */
1928 UNSUPPORTED("ekheljktcnka7fv7odg7w4w0b"); // int delta = GD_minrank(g);
1929 UNSUPPORTED("eg21iwn9eqyjsoisl58nl8i36"); // for (n = agfstnode(g); n; n = agnxtnode(g, n))
1930 UNSUPPORTED("6xuxsgiblao234kr6ifzzngj"); // ND_rank(n) -= delta;
1931 UNSUPPORTED("205yra8usg0d60ou7fdef8sb8"); // GD_minrank(g) -= delta;
1932 UNSUPPORTED("1l0r03kgtm5wfa9w1tb2o6pst"); // GD_maxrank(g) -= delta;
1933 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1934 UNSUPPORTED("bfa83r7gfvl4so45ea11h6hs8"); // setMinMax(g, doRoot);
1935 UNSUPPORTED("1oeld9qf035o8gav2314scxai"); // /* release fastgraph memory from Xg */
1936 UNSUPPORTED("4uue9kqy9xt1y7qinhilyp73p"); // for (n = agfstnode(Xg); n; n = agnxtnode(Xg, n)) {
1937 UNSUPPORTED("6uowedfybay0zqxujx4izx5eb"); // free_list(ND_in(n));
1938 UNSUPPORTED("9ma0k3ktcua915egahxrgo1f"); // free_list(ND_out(n));
1939 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1940 UNSUPPORTED("13jrnqbzc7n4ujm1kc140syrh"); // free(ND_alg(agfstnode(g)));
1941 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1942 UNSUPPORTED("6acp2mmds4i0gjn21ospjdm1i"); // ND_alg(n) = NULL;
1943 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1944 UNSUPPORTED("xlaantr4lfd0cf3p6fhyfjii"); // if (minrk)
1945 UNSUPPORTED("2quf4kce4g997p8lptbe0s678"); // free (minrk);
1946 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1947
1948 throw new UnsupportedOperationException();
1949 }
1950
1951
1952
1953
1954 //3 6wyn9t7y4rni0tldyaap4zsg4
1955 // static void dfscc(graph_t * g, node_t * n, int cc)
1956 public static Object dfscc(Object... arg) {
1957 UNSUPPORTED("9rlus4sokq2q7mrelfhcyeq9t"); // static void dfscc(graph_t * g, node_t * n, int cc)
1958 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1959 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
1960 UNSUPPORTED("6xj79bn6cjnne89udj4eccjbq"); // if (ND_hops(n) == 0) {
1961 UNSUPPORTED("2ug68j3zfpl1hhipj43mlacw4"); // ND_hops(n) = cc;
1962 UNSUPPORTED("8gbd6b2ssf51om8neirzzr6rw"); // for (e = agfstout(g, n); e; e = agnxtout(g, e))
1963 UNSUPPORTED("1petrc5reriuz99j26l6kvk9g"); // dfscc(g, aghead(e), cc);
1964 UNSUPPORTED("c9yz11pm5cux1tvh62xx2kwle"); // for (e = agfstin(g, n); e; e = agnxtin(g, e))
1965 UNSUPPORTED("4gm4tqnmznd5xu1jmel9vdwu0"); // dfscc(g, agtail(e), cc);
1966 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1967 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1968
1969 throw new UnsupportedOperationException();
1970 }
1971
1972
1973
1974
1975 //3 4n4sn2k04eosjc6v3amau8l89
1976 // static int connect_components(graph_t * g)
1977 public static Object connect_components(Object... arg) {
1978 UNSUPPORTED("93546dpzyvd2lgopztw3kyszh"); // static int connect_components(graph_t * g)
1979 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
1980 UNSUPPORTED("3zjt2iwedrvoc4tjrhcgrj2kp"); // int cc = 0;
1981 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
1982 UNSUPPORTED("16hw9gw0dz2w7mrtba0eoqrdi"); // for (n = agfstnode(g); n; n = agnxtnode(g, n))
1983 UNSUPPORTED("5yepsj8ho954ywprktudr66m8"); // ND_hops(n) = 0;
1984 UNSUPPORTED("16hw9gw0dz2w7mrtba0eoqrdi"); // for (n = agfstnode(g); n; n = agnxtnode(g, n))
1985 UNSUPPORTED("12mke9q9ufte7dz3juk9xj03o"); // if (ND_hops(n) == 0)
1986 UNSUPPORTED("1hzimiukrcikr5ja8r8jsy6mg"); // dfscc(g, n, ++cc);
1987 UNSUPPORTED("16hhes6efkztzuw8ooeyr7duq"); // if (cc > 1) {
1988 UNSUPPORTED("aen3uv1t10s8e76c30y8j0051"); // node_t *root = makeXnode(g, "\177root");
1989 UNSUPPORTED("bzbr2vqual2twjcg2p2sffsd4"); // int ncc = 1;
1990 UNSUPPORTED("attp4bsjqe99xnhi7lr7pszar"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
1991 UNSUPPORTED("eci2j6e8io07039308zl0no88"); // if (ND_hops(n) == ncc) {
1992 UNSUPPORTED("7rj8qzz8d2u85i7gf6c4rs62m"); // (void) agedge(g, root, n, 0, 1);
1993 UNSUPPORTED("cgm8ehtyoyn2ybwnrxvfx1cv8"); // ncc++;
1994 UNSUPPORTED("6t98dcecgbvbvtpycwiq2ynnj"); // }
1995 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
1996 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
1997 UNSUPPORTED("95z6nz9mlol4p31l239u0zyz1"); // return (cc);
1998 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
1999
2000 throw new UnsupportedOperationException();
2001 }
2002
2003
2004
2005
2006 //3 9lj0r4q3ulap7ly9cvvqn3d0t
2007 // static void add_fast_edges (graph_t * g)
2008 public static Object add_fast_edges(Object... arg) {
2009 UNSUPPORTED("9od2j2a8s9ki669jghjqrkcym"); // static void add_fast_edges (graph_t * g)
2010 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2011 UNSUPPORTED("cjx5v6hayed3q8eeub1cggqca"); // node_t *n;
2012 UNSUPPORTED("5gypxs09iuryx5a2eho9lgdcp"); // edge_t *e;
2013 UNSUPPORTED("44thr6ep72jsj3fksjiwdx3yr"); // for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
2014 UNSUPPORTED("e20lm4qtccvgsfq5fzjv6sjyl"); // for (e = agfstout(g, n); e; e = agnxtout(g, e)) {
2015 UNSUPPORTED("1xm961cuv38vb1rckbyfsk5a8"); // elist_append(e, ND_out(n));
2016 UNSUPPORTED("30covjl73nxramgd8lw1apbkm"); // elist_append(e, ND_in(aghead(e)));
2017 UNSUPPORTED("flupwh3kosf3fkhkxllllt1"); // }
2018 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2019 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2020
2021 throw new UnsupportedOperationException();
2022 }
2023
2024
2025
2026
2027 //3 2xyhunzw903dytfpyy63oznhz
2028 // static void my_init_graph(Agraph_t *g, Agobj_t *graph, void *arg)
2029 public static Object my_init_graph(Object... arg) {
2030 UNSUPPORTED("3s5gmr0i7qaf8sa79h9ek2t42"); // static void my_init_graph(Agraph_t *g, Agobj_t *graph, void *arg)
2031 UNSUPPORTED("12ubgsqsc8d2oeobshclx2e9m"); // { int *sz = arg; agbindrec(graph,"level graph rec",sz[0],NOT(0)); }
2032
2033 throw new UnsupportedOperationException();
2034 }
2035
2036
2037
2038
2039 //3 1vibj3ycvfkl07m1a2dzr3qf3
2040 // static void my_init_node(Agraph_t *g, Agobj_t *node, void *arg)
2041 public static Object my_init_node(Object... arg) {
2042 UNSUPPORTED("448m4h3oktm1kylrq3iss782r"); // static void my_init_node(Agraph_t *g, Agobj_t *node, void *arg)
2043 UNSUPPORTED("3mooa3mwczxhc97acdygow0sx"); // { int *sz = arg; agbindrec(node,"level node rec",sz[1],NOT(0)); }
2044
2045 throw new UnsupportedOperationException();
2046 }
2047
2048
2049
2050
2051 //3 avor9syqevkn2jo4yf8whbg5f
2052 // static void my_init_edge(Agraph_t *g, Agobj_t *edge, void *arg)
2053 public static Object my_init_edge(Object... arg) {
2054 UNSUPPORTED("bo6poh3fcfvu02sod3dyzjhsi"); // static void my_init_edge(Agraph_t *g, Agobj_t *edge, void *arg)
2055 UNSUPPORTED("4f0jw3wys20zimucjor8qrhzg"); // { int *sz = arg; agbindrec(edge,"level edge rec",sz[2],NOT(0)); }
2056
2057 throw new UnsupportedOperationException();
2058 }
2059
2060
2061 //1 46nx7przjp7fn42o28hqdaj9k
2062 // static Agcbdisc_t mydisc =
2063
2064
2065 //1 9quqxw3oujl7u6bymimr5be7t
2066 // int infosizes[] =
2067
2068
2069
2070
2071 //3 590k5zi3mrpwbc3lib0w3rmr2
2072 // void dot2_rank(graph_t * g, aspect_t* asp)
2073 public static Object dot2_rank(Object... arg) {
2074 UNSUPPORTED("d8gu9ua6rerpv9vz9ctco1ca2"); // void dot2_rank(graph_t * g, aspect_t* asp)
2075 UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); // {
2076 UNSUPPORTED("23k65agnd27tv4ix9teds9e2t"); // int ssize;
2077 UNSUPPORTED("dx1unsp79t4ji8dh8idt48jrc"); // int ncc, maxiter = INT_MAX;
2078 UNSUPPORTED("8yytudftst76763qgnjebkzhm"); // char *s;
2079 UNSUPPORTED("dxlxz9md3d6r12wog4x5sc7td"); // graph_t *Xg;
2080 UNSUPPORTED("hibhvgkp511r6u6ips8yb0un"); // Last_node = NULL;
2081 UNSUPPORTED("ey4p0fjtw4ac18jh9svmzjs23"); // Xg = agopen("level assignment constraints", Agstrictdirected, 0);
2082 UNSUPPORTED("e4j7z7nfe33svydzyn4w6abcy"); // agbindrec(Xg,"level graph rec",sizeof(Agraphinfo_t),NOT(0));
2083 UNSUPPORTED("4j4bkw2k5v7xlf7ycqcrz8qip"); // agpushdisc(Xg,&mydisc,infosizes);
2084 UNSUPPORTED("d4pjn5ef0ywzmhe2fshhm8bvn"); // edgelabel_ranks(g);
2085 UNSUPPORTED("e0rdg08m66a12fiixgkjnyrbj"); // if ((s = agget(g, "nslimit1")))
2086 UNSUPPORTED("9tp2zk1tsr4ce9rwsr0is9u3o"); // maxiter = atof(s) * agnnodes(g);
2087 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
2088 UNSUPPORTED("dapt7hf1vwq593la2oydyrv27"); // maxiter = INT_MAX;
2089 UNSUPPORTED("62k95fm4s1z2wzcyg28ir0x7u"); // compile_samerank(g, 0);
2090 UNSUPPORTED("bh9imh5owlj1c9ad7mime392x"); // compile_nodes(g, Xg);
2091 UNSUPPORTED("3kxtahvovojtzi6qqnrricpoo"); // compile_edges(g, Xg);
2092 UNSUPPORTED("9twf7u3r2hzeic9w0gmvh10bc"); // compile_clusters(g, Xg, 0, 0);
2093 UNSUPPORTED("cwrov5g30logh4g9omvkblonh"); // break_cycles(Xg);
2094 UNSUPPORTED("3ficrpbhiwichejg6n1hshz7k"); // ncc = connect_components(Xg);
2095 UNSUPPORTED("9x72se4xuqwfv27jlqpmivrwb"); // add_fast_edges (Xg);
2096 UNSUPPORTED("2yazmwrpb1ni51wuck3ruvi2j"); // if (asp) {
2097 UNSUPPORTED("8ow3lzc6gh107g9bcn4szm7hj"); // init_UF_size(Xg);
2098 UNSUPPORTED("9503vlimf1i2zv76ua88ooepc"); // initEdgeTypes(Xg);
2099 UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); // }
2100 UNSUPPORTED("b65fc1791mzxccp9zzxi8vk12"); // if ((s = agget(g, "searchsize")))
2101 UNSUPPORTED("aqd144wenl3zq15bwc41u9aha"); // ssize = atoi(s);
2102 UNSUPPORTED("div10atae09n36x269sl208r1"); // else
2103 UNSUPPORTED("2n4z8w1w3il45lik0kraspkud"); // ssize = -1;
2104 UNSUPPORTED("aotd35u0hficqt6hlkw8xof03"); // rank2(Xg, 1, maxiter, ssize);
2105 UNSUPPORTED("4x9mvgxbdou6xj4n98rwzucgi"); // /* fastgr(Xg); */
2106 UNSUPPORTED("8un6x92pzddrzsnq8y95af4m6"); // readout_levels(g, Xg, ncc);
2107 UNSUPPORTED("6rs6sp7mefzzbf02kfmvycnaq"); // agclose(Xg);
2108 UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); // }
2109
2110 throw new UnsupportedOperationException();
2111 }
2112
2113
2114 }