| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
package gen.lib.dotgen; |
| 47 |
import static gen.lib.cgraph.edge__c.agedge; |
| 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.agtail; |
| 52 |
import static gen.lib.cgraph.node__c.agfstnode; |
| 53 |
import static gen.lib.cgraph.node__c.agnxtnode; |
| 54 |
import static gen.lib.cgraph.obj__c.agroot; |
| 55 |
import static gen.lib.common.utils__c.UF_find; |
| 56 |
import static gen.lib.dotgen.cluster__c.build_skeleton; |
| 57 |
import static gen.lib.dotgen.cluster__c.mark_clusters; |
| 58 |
import static gen.lib.dotgen.dotinit__c.dot_root; |
| 59 |
import static gen.lib.dotgen.fastgr__c.fast_node; |
| 60 |
import static gen.lib.dotgen.fastgr__c.find_fast_edge; |
| 61 |
import static gen.lib.dotgen.fastgr__c.flat_edge; |
| 62 |
import static gen.lib.dotgen.fastgr__c.merge_oneway; |
| 63 |
import static gen.lib.dotgen.fastgr__c.other_edge; |
| 64 |
import static gen.lib.dotgen.fastgr__c.virtual_edge; |
| 65 |
import static gen.lib.dotgen.fastgr__c.virtual_node; |
| 66 |
import static gen.lib.dotgen.mincross__c.virtual_weight; |
| 67 |
import static gen.lib.dotgen.position__c.ports_eq; |
| 68 |
import static smetana.core.JUtils.EQ; |
| 69 |
import static smetana.core.JUtils.NEQ; |
| 70 |
import static smetana.core.JUtilsDebug.ENTERING; |
| 71 |
import static smetana.core.JUtilsDebug.LEAVING; |
| 72 |
import static smetana.core.Macro.ED_conc_opp_flag; |
| 73 |
import static smetana.core.Macro.ED_count; |
| 74 |
import static smetana.core.Macro.ED_edge_type; |
| 75 |
import static smetana.core.Macro.ED_label; |
| 76 |
import static smetana.core.Macro.ED_label_ontop; |
| 77 |
import static smetana.core.Macro.ED_to_virt; |
| 78 |
import static smetana.core.Macro.ED_weight; |
| 79 |
import static smetana.core.Macro.ED_xpenalty; |
| 80 |
import static smetana.core.Macro.GD_clust; |
| 81 |
import static smetana.core.Macro.GD_comp; |
| 82 |
import static smetana.core.Macro.GD_flip; |
| 83 |
import static smetana.core.Macro.GD_n_cluster; |
| 84 |
import static smetana.core.Macro.GD_n_nodes; |
| 85 |
import static smetana.core.Macro.GD_nlist; |
| 86 |
import static smetana.core.Macro.GD_nodesep; |
| 87 |
import static smetana.core.Macro.GD_rankleader; |
| 88 |
import static smetana.core.Macro.MAX; |
| 89 |
import static smetana.core.Macro.N; |
| 90 |
import static smetana.core.Macro.ND_clust; |
| 91 |
import static smetana.core.Macro.ND_ht; |
| 92 |
import static smetana.core.Macro.ND_label; |
| 93 |
import static smetana.core.Macro.ND_lw; |
| 94 |
import static smetana.core.Macro.ND_out; |
| 95 |
import static smetana.core.Macro.ND_rank; |
| 96 |
import static smetana.core.Macro.ND_ranktype; |
| 97 |
import static smetana.core.Macro.ND_rw; |
| 98 |
import static smetana.core.Macro.ND_weight_class; |
| 99 |
import static smetana.core.Macro.NOT; |
| 100 |
import static smetana.core.Macro.UNSUPPORTED; |
| 101 |
import h.ST_Agedge_s; |
| 102 |
import h.ST_Agnode_s; |
| 103 |
import h.ST_Agraph_s; |
| 104 |
import h.ST_pointf; |
| 105 |
import smetana.core.Z; |
| 106 |
|
| 107 |
public class class2__c { |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
|
| 268 |
|
| 269 |
|
| 270 |
|
| 271 |
|
| 272 |
|
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
|
| 288 |
|
| 289 |
|
| 290 |
|
| 291 |
|
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
|
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
public static Object pointof(Object... arg) { |
| 349 |
UNSUPPORTED("8e4tj258yvfq5uhsdpk37n5eq"); |
| 350 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 351 |
UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); |
| 352 |
UNSUPPORTED("12jimkrzqxavaie0cpapbx18c"); |
| 353 |
UNSUPPORTED("7ivmviysahgsc5nn9gtp7q2if"); |
| 354 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 355 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 356 |
|
| 357 |
throw new UnsupportedOperationException(); |
| 358 |
} |
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
public static ST_pointf pointfof(double x, double y) { |
| 366 |
|
| 367 |
return pointfof_w_(x, y).copy(); |
| 368 |
} |
| 369 |
private static ST_pointf pointfof_w_(double x, double y) { |
| 370 |
ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof"); |
| 371 |
try { |
| 372 |
final ST_pointf r = new ST_pointf(); |
| 373 |
r.setDouble("x", x); |
| 374 |
r.setDouble("y", y); |
| 375 |
return r; |
| 376 |
} finally { |
| 377 |
LEAVING("c1s4k85p1cdfn176o3uryeros","pointfof"); |
| 378 |
} |
| 379 |
} |
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
public static Object boxof(Object... arg) { |
| 387 |
UNSUPPORTED("3lzesfdd337h31jrlib1czocm"); |
| 388 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 389 |
UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); |
| 390 |
UNSUPPORTED("cylhjlutoc0sc0uy7g98m9fb8"); |
| 391 |
UNSUPPORTED("242of6revxzx8hpe7yerrchz6"); |
| 392 |
UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); |
| 393 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 394 |
|
| 395 |
throw new UnsupportedOperationException(); |
| 396 |
} |
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
public static Object add_point(Object... arg) { |
| 406 |
UNSUPPORTED("6iamka1fx8fk1rohzzse8phte"); |
| 407 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 408 |
UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); |
| 409 |
UNSUPPORTED("3n2sizjd0civbzm6iq7su1s2p"); |
| 410 |
UNSUPPORTED("65ygdo31w09i5i6bd2f7azcd3"); |
| 411 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 412 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 413 |
|
| 414 |
throw new UnsupportedOperationException(); |
| 415 |
} |
| 416 |
|
| 417 |
|
| 418 |
|
| 419 |
|
| 420 |
|
| 421 |
|
| 422 |
public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) { |
| 423 |
|
| 424 |
return add_pointf_w_(p.copy(), q.copy()).copy(); |
| 425 |
} |
| 426 |
private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) { |
| 427 |
ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf"); |
| 428 |
try { |
| 429 |
final ST_pointf r = new ST_pointf(); |
| 430 |
r.setDouble("x", p.x + q.x); |
| 431 |
r.setDouble("y", p.y + q.y); |
| 432 |
return r; |
| 433 |
} finally { |
| 434 |
LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf"); |
| 435 |
} |
| 436 |
} |
| 437 |
|
| 438 |
|
| 439 |
|
| 440 |
|
| 441 |
|
| 442 |
|
| 443 |
public static Object sub_point(Object... arg) { |
| 444 |
UNSUPPORTED("cd602849h0bce8lu9xegka0ia"); |
| 445 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 446 |
UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); |
| 447 |
UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); |
| 448 |
UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); |
| 449 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 450 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 451 |
|
| 452 |
throw new UnsupportedOperationException(); |
| 453 |
} |
| 454 |
|
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
|
| 459 |
|
| 460 |
public static Object sub_pointf(Object... arg) { |
| 461 |
UNSUPPORTED("dmufj44lddsnj0wjyxsg2fcso"); |
| 462 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 463 |
UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); |
| 464 |
UNSUPPORTED("4q4q9dveah93si8ajfv59gz27"); |
| 465 |
UNSUPPORTED("9f90ik0o2yqhanzntpy3d2ydy"); |
| 466 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 467 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 468 |
|
| 469 |
throw new UnsupportedOperationException(); |
| 470 |
} |
| 471 |
|
| 472 |
|
| 473 |
|
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
public static Object mid_point(Object... arg) { |
| 478 |
UNSUPPORTED("evy44tdsmu3erff9dp2x835u2"); |
| 479 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 480 |
UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); |
| 481 |
UNSUPPORTED("1a6p6fm57o0wt5ze2btsx06c7"); |
| 482 |
UNSUPPORTED("1kbj5tgdmfi6kf4jgg6skhr6e"); |
| 483 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 484 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 485 |
|
| 486 |
throw new UnsupportedOperationException(); |
| 487 |
} |
| 488 |
|
| 489 |
|
| 490 |
|
| 491 |
|
| 492 |
|
| 493 |
|
| 494 |
public static Object mid_pointf(Object... arg) { |
| 495 |
UNSUPPORTED("381o63o9kb04d7gzg65v0r3q"); |
| 496 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 497 |
UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); |
| 498 |
UNSUPPORTED("c5vboetlr3mf43wns7iik6m1w"); |
| 499 |
UNSUPPORTED("bcdf562ldr3bjn78hcay5xd63"); |
| 500 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 501 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 502 |
|
| 503 |
throw new UnsupportedOperationException(); |
| 504 |
} |
| 505 |
|
| 506 |
|
| 507 |
|
| 508 |
|
| 509 |
|
| 510 |
|
| 511 |
public static Object interpolate_pointf(Object... arg) { |
| 512 |
UNSUPPORTED("894yimn33kmtm454llwdaotu8"); |
| 513 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 514 |
UNSUPPORTED("ef2acl8wa2ooqcb5vz3098maz"); |
| 515 |
UNSUPPORTED("5tpwuyf5iidesy80v8o4nwkmk"); |
| 516 |
UNSUPPORTED("ewnrc5uloj3w5jbmsjcn3wja0"); |
| 517 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 518 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 519 |
|
| 520 |
throw new UnsupportedOperationException(); |
| 521 |
} |
| 522 |
|
| 523 |
|
| 524 |
|
| 525 |
|
| 526 |
|
| 527 |
|
| 528 |
public static Object exch_xy(Object... arg) { |
| 529 |
UNSUPPORTED("2vxya0v2fzlv5e0vjaa8d414"); |
| 530 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 531 |
UNSUPPORTED("c0j3k9xv06332q98k2pgpacto"); |
| 532 |
UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); |
| 533 |
UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); |
| 534 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 535 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 536 |
|
| 537 |
throw new UnsupportedOperationException(); |
| 538 |
} |
| 539 |
|
| 540 |
|
| 541 |
|
| 542 |
|
| 543 |
|
| 544 |
|
| 545 |
public static Object exch_xyf(Object... arg) { |
| 546 |
UNSUPPORTED("8qamrobrqi8jsvvfrxkimrsnw"); |
| 547 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 548 |
UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); |
| 549 |
UNSUPPORTED("60cojdwc2h7f0m51s9jdwvup7"); |
| 550 |
UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); |
| 551 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 552 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 553 |
|
| 554 |
throw new UnsupportedOperationException(); |
| 555 |
} |
| 556 |
|
| 557 |
|
| 558 |
|
| 559 |
|
| 560 |
|
| 561 |
|
| 562 |
public static Object box_bb(Object... arg) { |
| 563 |
UNSUPPORTED("36et5gmnjrby6o7bq9sgh1hx6"); |
| 564 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 565 |
UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); |
| 566 |
UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); |
| 567 |
UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); |
| 568 |
UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); |
| 569 |
UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); |
| 570 |
UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); |
| 571 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 572 |
|
| 573 |
throw new UnsupportedOperationException(); |
| 574 |
} |
| 575 |
|
| 576 |
|
| 577 |
|
| 578 |
|
| 579 |
|
| 580 |
|
| 581 |
public static Object boxf_bb(Object... arg) { |
| 582 |
UNSUPPORTED("dyrqu4ww9osr9c86gqgmifcp6"); |
| 583 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 584 |
UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); |
| 585 |
UNSUPPORTED("8mr2c9xitsqi8z1plbp7ox1hu"); |
| 586 |
UNSUPPORTED("2egu55ef4u1i03nwz01k7kcrl"); |
| 587 |
UNSUPPORTED("9n6ei3odbgefwfxvql9whcpe"); |
| 588 |
UNSUPPORTED("19ocysbuh4pxyft2bqhyhigr1"); |
| 589 |
UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); |
| 590 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 591 |
|
| 592 |
throw new UnsupportedOperationException(); |
| 593 |
} |
| 594 |
|
| 595 |
|
| 596 |
|
| 597 |
|
| 598 |
|
| 599 |
|
| 600 |
public static Object box_intersect(Object... arg) { |
| 601 |
UNSUPPORTED("34gv28cldst09bl71itjgviue"); |
| 602 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 603 |
UNSUPPORTED("52u27kayecy1i1e8bbo8f7s9r"); |
| 604 |
UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); |
| 605 |
UNSUPPORTED("3uv943c2f82yuif249pf5azob"); |
| 606 |
UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); |
| 607 |
UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); |
| 608 |
UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); |
| 609 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 610 |
|
| 611 |
throw new UnsupportedOperationException(); |
| 612 |
} |
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
|
| 618 |
|
| 619 |
public static Object boxf_intersect(Object... arg) { |
| 620 |
UNSUPPORTED("ape22b8z6jfg17gvo42hok9eb"); |
| 621 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 622 |
UNSUPPORTED("c57pq0f87j6dnbcvygu7v6k84"); |
| 623 |
UNSUPPORTED("9slu7bixuymxttjic76ha2nl2"); |
| 624 |
UNSUPPORTED("3uv943c2f82yuif249pf5azob"); |
| 625 |
UNSUPPORTED("74tf5h16bc9zabq3s3dyny543"); |
| 626 |
UNSUPPORTED("d99gcv3i7xes7y7rqf8ii20ux"); |
| 627 |
UNSUPPORTED("2vmm1j57brhn455f8f3iyw6mo"); |
| 628 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 629 |
|
| 630 |
throw new UnsupportedOperationException(); |
| 631 |
} |
| 632 |
|
| 633 |
|
| 634 |
|
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
public static Object box_overlap(Object... arg) { |
| 639 |
UNSUPPORTED("1e9k599x7ygct7r4cfdxlk9u9"); |
| 640 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 641 |
UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); |
| 642 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 643 |
|
| 644 |
throw new UnsupportedOperationException(); |
| 645 |
} |
| 646 |
|
| 647 |
|
| 648 |
|
| 649 |
|
| 650 |
|
| 651 |
|
| 652 |
public static Object boxf_overlap(Object... arg) { |
| 653 |
UNSUPPORTED("905nejsewihwhhc3bhnrz9nwo"); |
| 654 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 655 |
UNSUPPORTED("7a9wwpu7dhdphd08y1ecw54w5"); |
| 656 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 657 |
|
| 658 |
throw new UnsupportedOperationException(); |
| 659 |
} |
| 660 |
|
| 661 |
|
| 662 |
|
| 663 |
|
| 664 |
|
| 665 |
|
| 666 |
public static Object box_contains(Object... arg) { |
| 667 |
UNSUPPORTED("aputfc30fjkvy6jx4otljaczq"); |
| 668 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 669 |
UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); |
| 670 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 671 |
|
| 672 |
throw new UnsupportedOperationException(); |
| 673 |
} |
| 674 |
|
| 675 |
|
| 676 |
|
| 677 |
|
| 678 |
|
| 679 |
|
| 680 |
public static Object boxf_contains(Object... arg) { |
| 681 |
UNSUPPORTED("7ccnttkiwt834yfyw0evcm18v"); |
| 682 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 683 |
UNSUPPORTED("87ap80vrh2a4gpprbxr33lrg3"); |
| 684 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 685 |
|
| 686 |
throw new UnsupportedOperationException(); |
| 687 |
} |
| 688 |
|
| 689 |
|
| 690 |
|
| 691 |
|
| 692 |
|
| 693 |
|
| 694 |
public static Object perp(Object... arg) { |
| 695 |
UNSUPPORTED("567wpqlg9rv63ynyvxd9sgkww"); |
| 696 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 697 |
UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); |
| 698 |
UNSUPPORTED("2fyydy6t6yifjsczccsb9szeg"); |
| 699 |
UNSUPPORTED("evp2x66oa4s1tlnc0ytxq2qbq"); |
| 700 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 701 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 702 |
|
| 703 |
throw new UnsupportedOperationException(); |
| 704 |
} |
| 705 |
|
| 706 |
|
| 707 |
|
| 708 |
|
| 709 |
|
| 710 |
|
| 711 |
public static Object scale(Object... arg) { |
| 712 |
UNSUPPORTED("c1ngytew34bmkdb7vps5h3dh8"); |
| 713 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 714 |
UNSUPPORTED("cvexv13y9fq49v0j4d5t4cm9f"); |
| 715 |
UNSUPPORTED("dznf7nac14snww4usquyd6r3r"); |
| 716 |
UNSUPPORTED("33kk73m8vjcux5tnjl8co2pe6"); |
| 717 |
UNSUPPORTED("a2hk6w52njqjx48nq3nnn2e5i"); |
| 718 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 719 |
|
| 720 |
throw new UnsupportedOperationException(); |
| 721 |
} |
| 722 |
|
| 723 |
|
| 724 |
|
| 725 |
|
| 726 |
|
| 727 |
|
| 728 |
public static ST_Agnode_s label_vnode(ST_Agraph_s g, ST_Agedge_s orig) { |
| 729 |
ENTERING("2zn7c6ulmwwzaibdxo127jf04","label_vnode"); |
| 730 |
try { |
| 731 |
ST_Agnode_s v; |
| 732 |
final ST_pointf dimen = new ST_pointf(); |
| 733 |
dimen.___(ED_label(orig).dimen); |
| 734 |
v = virtual_node(g); |
| 735 |
ND_label(v, ED_label(orig)); |
| 736 |
ND_lw(v, GD_nodesep(agroot(v))); |
| 737 |
if (N(ED_label_ontop(orig))) { |
| 738 |
if (GD_flip(agroot(g))!=0) { |
| 739 |
ND_ht(v, dimen.x); |
| 740 |
ND_rw(v, dimen.y); |
| 741 |
} else { |
| 742 |
ND_ht(v, dimen.y); |
| 743 |
ND_rw(v, dimen.x); |
| 744 |
} |
| 745 |
} |
| 746 |
return v; |
| 747 |
} finally { |
| 748 |
LEAVING("2zn7c6ulmwwzaibdxo127jf04","label_vnode"); |
| 749 |
} |
| 750 |
} |
| 751 |
|
| 752 |
|
| 753 |
|
| 754 |
|
| 755 |
|
| 756 |
|
| 757 |
public static void incr_width(ST_Agraph_s g, ST_Agnode_s v) { |
| 758 |
ENTERING("49tji49jdm9uges7v8lf2j2rn","incr_width"); |
| 759 |
try { |
| 760 |
int width = GD_nodesep(g) / 2; |
| 761 |
ND_lw(v, ND_lw(v) + width); |
| 762 |
ND_rw(v, ND_rw(v) + width); |
| 763 |
} finally { |
| 764 |
LEAVING("49tji49jdm9uges7v8lf2j2rn","incr_width"); |
| 765 |
} |
| 766 |
} |
| 767 |
|
| 768 |
|
| 769 |
|
| 770 |
|
| 771 |
|
| 772 |
|
| 773 |
public static ST_Agnode_s plain_vnode(ST_Agraph_s g, ST_Agedge_s orig) { |
| 774 |
ENTERING("xujihq6vep3ez275shtrbilo","plain_vnode"); |
| 775 |
try { |
| 776 |
ST_Agnode_s v; |
| 777 |
orig = orig; |
| 778 |
v = virtual_node(g); |
| 779 |
incr_width(g, v); |
| 780 |
return v; |
| 781 |
} finally { |
| 782 |
LEAVING("xujihq6vep3ez275shtrbilo","plain_vnode"); |
| 783 |
} |
| 784 |
} |
| 785 |
|
| 786 |
|
| 787 |
|
| 788 |
|
| 789 |
|
| 790 |
|
| 791 |
public static ST_Agnode_s leader_of(ST_Agraph_s g, ST_Agnode_s v) { |
| 792 |
ENTERING("9fmfj1b2jik7skv6ms0657t8r","leader_of"); |
| 793 |
try { |
| 794 |
ST_Agraph_s clust; |
| 795 |
ST_Agnode_s rv; |
| 796 |
if (ND_ranktype(v) != 7) { |
| 797 |
|
| 798 |
rv = UF_find(v); |
| 799 |
} else { |
| 800 |
clust = ND_clust(v); |
| 801 |
rv = (ST_Agnode_s) GD_rankleader(clust).plus(ND_rank(v)).getPtr(); |
| 802 |
} |
| 803 |
return rv; |
| 804 |
} finally { |
| 805 |
LEAVING("9fmfj1b2jik7skv6ms0657t8r","leader_of"); |
| 806 |
} |
| 807 |
} |
| 808 |
|
| 809 |
|
| 810 |
|
| 811 |
|
| 812 |
|
| 813 |
|
| 814 |
public static void make_chain(ST_Agraph_s g, ST_Agnode_s from, ST_Agnode_s to, ST_Agedge_s orig) { |
| 815 |
ENTERING("6sbvlvurvkodunw2qt1ug70c2","make_chain"); |
| 816 |
try { |
| 817 |
int r, label_rank; |
| 818 |
ST_Agnode_s u, v=null; |
| 819 |
ST_Agedge_s e; |
| 820 |
u = from; |
| 821 |
if (ED_label(orig)!=null) |
| 822 |
label_rank = (ND_rank(from) + ND_rank(to)) / 2; |
| 823 |
else |
| 824 |
label_rank = -1; |
| 825 |
|
| 826 |
for (r = ND_rank(from) + 1; r <= ND_rank(to); r++) { |
| 827 |
if (r < ND_rank(to)) { |
| 828 |
if (r == label_rank) |
| 829 |
v = label_vnode(g, orig); |
| 830 |
else |
| 831 |
v = plain_vnode(g, orig); |
| 832 |
ND_rank(v, r); |
| 833 |
} else |
| 834 |
v = to; |
| 835 |
e = virtual_edge(u, v, orig); |
| 836 |
virtual_weight(e); |
| 837 |
u = v; |
| 838 |
} |
| 839 |
|
| 840 |
} finally { |
| 841 |
LEAVING("6sbvlvurvkodunw2qt1ug70c2","make_chain"); |
| 842 |
} |
| 843 |
} |
| 844 |
|
| 845 |
|
| 846 |
|
| 847 |
|
| 848 |
|
| 849 |
|
| 850 |
public static void interclrep(ST_Agraph_s g, ST_Agedge_s e) { |
| 851 |
ENTERING("659ld5tcseo3l0hopxb3pf0vv","interclrep"); |
| 852 |
try { |
| 853 |
ST_Agnode_s t, h; |
| 854 |
ST_Agedge_s ve; |
| 855 |
t = leader_of(g, agtail(e)); |
| 856 |
h = leader_of(g, aghead(e)); |
| 857 |
if (ND_rank(t) > ND_rank(h)) { |
| 858 |
ST_Agnode_s t0 = t; |
| 859 |
t = h; |
| 860 |
h = t0; |
| 861 |
} |
| 862 |
if (NEQ(ND_clust(t), ND_clust(h))) { |
| 863 |
if ((ve = find_fast_edge(t, h))!=null) { |
| 864 |
merge_chain(g, e, ve, NOT(false)); |
| 865 |
return; |
| 866 |
} |
| 867 |
if (ND_rank(t) == ND_rank(h)) |
| 868 |
return; |
| 869 |
make_chain(g, t, h, e); |
| 870 |
|
| 871 |
for (ve = ED_to_virt(e); ve!=null && (ND_rank(aghead(ve)) <= ND_rank(h)); |
| 872 |
ve = (ST_Agedge_s) ND_out(aghead(ve)).getFromList(0)) |
| 873 |
ED_edge_type(ve, 5); |
| 874 |
} |
| 875 |
|
| 876 |
} finally { |
| 877 |
LEAVING("659ld5tcseo3l0hopxb3pf0vv","interclrep"); |
| 878 |
} |
| 879 |
} |
| 880 |
|
| 881 |
|
| 882 |
|
| 883 |
|
| 884 |
|
| 885 |
|
| 886 |
public static boolean is_cluster_edge(ST_Agedge_s e) { |
| 887 |
ENTERING("c0cx00ki1i1kx0bp84e7xjg8d","is_cluster_edge"); |
| 888 |
try { |
| 889 |
return ((ND_ranktype(agtail(e)) == 7) |
| 890 |
|| (ND_ranktype(aghead(e)) == 7)); |
| 891 |
} finally { |
| 892 |
LEAVING("c0cx00ki1i1kx0bp84e7xjg8d","is_cluster_edge"); |
| 893 |
} |
| 894 |
} |
| 895 |
|
| 896 |
|
| 897 |
|
| 898 |
|
| 899 |
|
| 900 |
|
| 901 |
public static void merge_chain(ST_Agraph_s g, ST_Agedge_s e, ST_Agedge_s f, boolean flag) { |
| 902 |
ENTERING("c45973dtaighb3u0auuekcs1y","merge_chain"); |
| 903 |
try { |
| 904 |
ST_Agedge_s rep; |
| 905 |
int lastrank = MAX(ND_rank(agtail(e)), ND_rank(aghead(e))); |
| 906 |
|
| 907 |
ED_to_virt(e, f); |
| 908 |
rep = f; |
| 909 |
do { |
| 910 |
|
| 911 |
if (flag) |
| 912 |
ED_count(rep, ED_count(rep) + ED_count(e)); |
| 913 |
ED_xpenalty(rep, ED_xpenalty(rep) + ED_xpenalty(e)); |
| 914 |
ED_weight(rep, ED_weight(rep) + ED_weight(e)); |
| 915 |
if (ND_rank(aghead(rep)) == lastrank) |
| 916 |
break; |
| 917 |
incr_width(g, aghead(rep)); |
| 918 |
rep = (ST_Agedge_s) ND_out(aghead(rep)).getFromList(0); |
| 919 |
} while (rep!=null); |
| 920 |
} finally { |
| 921 |
LEAVING("c45973dtaighb3u0auuekcs1y","merge_chain"); |
| 922 |
} |
| 923 |
} |
| 924 |
|
| 925 |
|
| 926 |
|
| 927 |
|
| 928 |
|
| 929 |
|
| 930 |
public static boolean mergeable(ST_Agedge_s e, ST_Agedge_s f) { |
| 931 |
ENTERING("bg5r9wlego0d8pv0hr96zt45c","mergeable"); |
| 932 |
try { |
| 933 |
if (e!=null && f!=null && EQ(agtail(e), agtail(f)) && EQ(aghead(e), aghead(f)) && |
| 934 |
EQ(ED_label(e), ED_label(f)) && ports_eq(e, f)) |
| 935 |
return NOT(false); |
| 936 |
return false; |
| 937 |
} finally { |
| 938 |
LEAVING("bg5r9wlego0d8pv0hr96zt45c","mergeable"); |
| 939 |
} |
| 940 |
} |
| 941 |
|
| 942 |
|
| 943 |
|
| 944 |
|
| 945 |
|
| 946 |
|
| 947 |
public static void class2(ST_Agraph_s g) { |
| 948 |
ENTERING("d0bxlkysxucmww7t74u9krrgz","class2"); |
| 949 |
try { |
| 950 |
int c; |
| 951 |
ST_Agnode_s n, t, h; |
| 952 |
ST_Agedge_s e, prev, opp; |
| 953 |
GD_nlist(g, null); |
| 954 |
GD_n_nodes(g, 0); |
| 955 |
mark_clusters(g); |
| 956 |
for (c = 1; c <= GD_n_cluster(g); c++) |
| 957 |
build_skeleton(g, (ST_Agraph_s) GD_clust(g).get(c).getPtr()); |
| 958 |
for (n = agfstnode(g); n!=null; n = agnxtnode(g, n)) |
| 959 |
for (e = agfstout(g, n); e!=null; e = agnxtout(g, e)) { |
| 960 |
if (ND_weight_class(aghead(e)) <= 2) |
| 961 |
ND_weight_class(aghead(e), ND_weight_class(aghead(e))+1); |
| 962 |
if (ND_weight_class(agtail(e)) <= 2) |
| 963 |
ND_weight_class(agtail(e), ND_weight_class(agtail(e))+1); |
| 964 |
} |
| 965 |
for (n = agfstnode(g); n!=null; n = agnxtnode(g, n)) { |
| 966 |
if ((ND_clust(n) == null) && (EQ(n, UF_find(n)))) { |
| 967 |
fast_node(g, n); |
| 968 |
GD_n_nodes(g, GD_n_nodes(g)+1); |
| 969 |
} |
| 970 |
prev = null; |
| 971 |
for (e = agfstout(g, n); e!=null; e = agnxtout(g, e)) { |
| 972 |
|
| 973 |
if (ED_to_virt(e)!=null) { |
| 974 |
prev = e; |
| 975 |
continue; |
| 976 |
} |
| 977 |
|
| 978 |
if (is_cluster_edge(e)) { |
| 979 |
|
| 980 |
if (mergeable(prev, e)) { |
| 981 |
if (ED_to_virt(prev)!=null) { |
| 982 |
merge_chain(g, e, ED_to_virt(prev), false); |
| 983 |
other_edge(e); |
| 984 |
} else if (ND_rank(agtail(e)) == ND_rank(aghead(e))) { |
| 985 |
merge_oneway(e, prev); |
| 986 |
other_edge(e); |
| 987 |
} |
| 988 |
|
| 989 |
continue; |
| 990 |
} |
| 991 |
interclrep(g, e); |
| 992 |
prev = e; |
| 993 |
continue; |
| 994 |
} |
| 995 |
|
| 996 |
if (prev!=null && EQ(agtail(e), agtail(prev)) && EQ(aghead(e), aghead(prev))) { |
| 997 |
if (ND_rank(agtail(e)) == ND_rank(aghead(e))) { |
| 998 |
merge_oneway(e, prev); |
| 999 |
other_edge(e); |
| 1000 |
continue; |
| 1001 |
} |
| 1002 |
if ((ED_label(e) == null) && (ED_label(prev) == null) |
| 1003 |
&& ports_eq(e, prev)) { |
| 1004 |
if (Z.z().Concentrate) |
| 1005 |
ED_edge_type(e, 6); |
| 1006 |
else { |
| 1007 |
merge_chain(g, e, ED_to_virt(prev), NOT(false)); |
| 1008 |
other_edge(e); |
| 1009 |
} |
| 1010 |
continue; |
| 1011 |
} |
| 1012 |
|
| 1013 |
} |
| 1014 |
|
| 1015 |
if (EQ(agtail(e), aghead(e))) { |
| 1016 |
other_edge(e); |
| 1017 |
prev = e; |
| 1018 |
continue; |
| 1019 |
} |
| 1020 |
t = UF_find(agtail(e)); |
| 1021 |
h = UF_find(aghead(e)); |
| 1022 |
|
| 1023 |
if (NEQ(agtail(e), t) || NEQ(aghead(e), h)) { |
| 1024 |
|
| 1025 |
continue; |
| 1026 |
} |
| 1027 |
|
| 1028 |
if (ND_rank(agtail(e)) == ND_rank(aghead(e))) { |
| 1029 |
flat_edge(g, e); |
| 1030 |
prev = e; |
| 1031 |
continue; |
| 1032 |
} |
| 1033 |
|
| 1034 |
if (ND_rank(aghead(e)) > ND_rank(agtail(e))) { |
| 1035 |
make_chain(g, agtail(e), aghead(e), e); |
| 1036 |
prev = e; |
| 1037 |
continue; |
| 1038 |
} |
| 1039 |
|
| 1040 |
else { |
| 1041 |
|
| 1042 |
|
| 1043 |
if ((opp = (agedge(g,aghead(e),agtail(e),null,false)))!=null && NEQ(aghead(opp), aghead(e))) { |
| 1044 |
|
| 1045 |
if (ED_to_virt(opp) == null) |
| 1046 |
make_chain(g, agtail(opp), aghead(opp), opp); |
| 1047 |
if ((ED_label(e) == null) && (ED_label(opp) == null) |
| 1048 |
&& ports_eq(e, opp)) { |
| 1049 |
if (Z.z().Concentrate) { |
| 1050 |
ED_edge_type(e, 6); |
| 1051 |
ED_conc_opp_flag(opp, NOT(false)); |
| 1052 |
} else { |
| 1053 |
other_edge(e); |
| 1054 |
merge_chain(g, e, ED_to_virt(opp), NOT(false)); |
| 1055 |
} |
| 1056 |
continue; |
| 1057 |
} |
| 1058 |
} |
| 1059 |
make_chain(g, aghead(e), agtail(e), e); |
| 1060 |
prev = e; |
| 1061 |
} |
| 1062 |
} |
| 1063 |
} |
| 1064 |
|
| 1065 |
if (NEQ(g, dot_root(g))) { |
| 1066 |
GD_comp(g).reallocEmpty(1); |
| 1067 |
GD_comp(g).setInList(0, GD_nlist(g)); |
| 1068 |
} |
| 1069 |
} finally { |
| 1070 |
LEAVING("d0bxlkysxucmww7t74u9krrgz","class2"); |
| 1071 |
} |
| 1072 |
} |
| 1073 |
|
| 1074 |
|
| 1075 |
} |