| 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.cgraph; |
| 47 |
import static gen.lib.cdt.dtextract__c.dtextract; |
| 48 |
import static gen.lib.cdt.dtrestore__c.dtrestore; |
| 49 |
import static gen.lib.cdt.dtsize__c.dtsize_; |
| 50 |
import static gen.lib.cgraph.attr__c.agraphattr_init; |
| 51 |
import static gen.lib.cgraph.edge__c.agsubrep; |
| 52 |
import static gen.lib.cgraph.id__c.agmapnametoid; |
| 53 |
import static gen.lib.cgraph.id__c.agregister; |
| 54 |
import static gen.lib.cgraph.node__c.agfstnode; |
| 55 |
import static gen.lib.cgraph.node__c.agnxtnode; |
| 56 |
import static gen.lib.cgraph.obj__c.agmethod_init; |
| 57 |
import static gen.lib.cgraph.obj__c.agroot; |
| 58 |
import static gen.lib.cgraph.subg__c.agparent; |
| 59 |
import static gen.lib.cgraph.utils__c.agdtopen; |
| 60 |
import static smetana.core.JUtils.EQ; |
| 61 |
import static smetana.core.JUtils.sizeof; |
| 62 |
import static smetana.core.JUtilsDebug.ENTERING; |
| 63 |
import static smetana.core.JUtilsDebug.LEAVING; |
| 64 |
import static smetana.core.Macro.AGID; |
| 65 |
import static smetana.core.Macro.AGRAPH; |
| 66 |
import static smetana.core.Macro.AGSEQ; |
| 67 |
import static smetana.core.Macro.AGTYPE; |
| 68 |
import static smetana.core.Macro.ASINT; |
| 69 |
import static smetana.core.Macro.N; |
| 70 |
import static smetana.core.Macro.NOT; |
| 71 |
import static smetana.core.Macro.UNSUPPORTED; |
| 72 |
import h.ST_Agclos_s; |
| 73 |
import h.ST_Agdesc_s; |
| 74 |
import h.ST_Agdisc_s; |
| 75 |
import h.ST_Agmemdisc_s; |
| 76 |
import h.ST_Agnode_s; |
| 77 |
import h.ST_Agraph_s; |
| 78 |
import h.ST_Agsubnode_s; |
| 79 |
import h.ST_dt_s; |
| 80 |
import h.ST_dtdisc_s; |
| 81 |
import h.ST_dtlink_s; |
| 82 |
import smetana.core.ACCESS; |
| 83 |
import smetana.core.CString; |
| 84 |
import smetana.core.STARSTAR; |
| 85 |
import smetana.core.Z; |
| 86 |
import smetana.core.__ptr__; |
| 87 |
|
| 88 |
public class graph__c { |
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 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 |
public static ST_Agclos_s agclos(ST_Agdisc_s proto) { |
| 230 |
ENTERING("bb2bu9iyqx0u6xx44l282vmch","agclos"); |
| 231 |
try { |
| 232 |
ST_Agmemdisc_s memdisc; |
| 233 |
__ptr__ memclosure; |
| 234 |
ST_Agclos_s rv; |
| 235 |
|
| 236 |
memdisc = (ST_Agmemdisc_s) ((proto != null && proto.mem != null) ? proto.mem : Z.z().AgMemDisc); |
| 237 |
memclosure = (__ptr__) memdisc.open.exe(proto); |
| 238 |
rv = (ST_Agclos_s) memdisc.alloc.exe(memclosure, sizeof(ST_Agclos_s.class)); |
| 239 |
rv.disc.setPtr("mem", memdisc); |
| 240 |
rv.state.setPtr("mem", memclosure); |
| 241 |
rv.disc.setPtr("id", ((proto != null && proto.id != null) ? proto.id : Z.z().AgIdDisc)); |
| 242 |
|
| 243 |
|
| 244 |
rv.callbacks_enabled = (N(0)); |
| 245 |
return rv; |
| 246 |
} finally { |
| 247 |
LEAVING("bb2bu9iyqx0u6xx44l282vmch","agclos"); |
| 248 |
} |
| 249 |
} |
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
public static ST_Agraph_s agopen(CString name, final ST_Agdesc_s desc, ST_Agdisc_s arg_disc) { |
| 257 |
|
| 258 |
return agopen_w_(name, (ST_Agdesc_s) desc.copy(), arg_disc); |
| 259 |
} |
| 260 |
private static ST_Agraph_s agopen_w_(CString name, final ST_Agdesc_s desc, ST_Agdisc_s arg_disc) { |
| 261 |
ENTERING("d5yqn56yii8cdoahswt4n6bug","agopen"); |
| 262 |
try { |
| 263 |
ST_Agraph_s g; |
| 264 |
ST_Agclos_s clos; |
| 265 |
int gid[] = new int[1]; |
| 266 |
clos = agclos(arg_disc); |
| 267 |
g = (ST_Agraph_s) clos.disc.mem.alloc.exe(clos.state.mem, sizeof(ST_Agraph_s.class)); |
| 268 |
AGTYPE(g, AGRAPH); |
| 269 |
g.setPtr("clos", clos); |
| 270 |
g.setStruct("desc", desc); |
| 271 |
((ST_Agdesc_s)g.desc).maingraph = ASINT((N(0))); |
| 272 |
g.setPtr("root", g); |
| 273 |
g.clos.state.setPtr("id", (__ptr__) g.clos.disc.id.open.exe(g, arg_disc)); |
| 274 |
if (agmapnametoid(g, AGRAPH, name, gid, (N(0)))!=0) |
| 275 |
AGID(g, gid[0]); |
| 276 |
|
| 277 |
g = agopen1(g); |
| 278 |
agregister(g, AGRAPH, g); |
| 279 |
return g; |
| 280 |
} finally { |
| 281 |
LEAVING("d5yqn56yii8cdoahswt4n6bug","agopen"); |
| 282 |
} |
| 283 |
} |
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
|
| 288 |
|
| 289 |
|
| 290 |
public static ST_Agraph_s agopen1(ST_Agraph_s g) { |
| 291 |
ENTERING("8jyhwfdfm0a877qfz8cjlb8rk","agopen1"); |
| 292 |
try { |
| 293 |
ST_Agraph_s par; |
| 294 |
g.setPtr("n_seq", agdtopen(g, Z.z().Ag_subnode_seq_disc, Z.z().Dttree)); |
| 295 |
g.setPtr("n_id", agdtopen(g, Z.z().Ag_subnode_id_disc, Z.z().Dttree)); |
| 296 |
g.setPtr("e_seq", agdtopen(g, EQ(g, agroot(g))? Z.z().Ag_mainedge_seq_disc : Z.z().Ag_subedge_seq_disc, Z.z().Dttree)); |
| 297 |
g.setPtr("e_id", agdtopen(g, EQ(g, agroot(g))? Z.z().Ag_mainedge_id_disc : Z.z().Ag_subedge_id_disc, Z.z().Dttree)); |
| 298 |
g.setPtr("g_dict", agdtopen(g, Z.z().Ag_subgraph_id_disc, Z.z().Dttree)); |
| 299 |
par = agparent(g); |
| 300 |
if (par!=null) { |
| 301 |
AGSEQ(g, agnextseq(par, AGRAPH)); |
| 302 |
par.g_dict.searchf.exe(par.g_dict,g,0000001); |
| 303 |
} |
| 304 |
if (N(par) || ((ST_Agdesc_s)par.desc).has_attrs!=0) |
| 305 |
agraphattr_init(g); |
| 306 |
agmethod_init(g, g); |
| 307 |
return g; |
| 308 |
} finally { |
| 309 |
LEAVING("8jyhwfdfm0a877qfz8cjlb8rk","agopen1"); |
| 310 |
} |
| 311 |
} |
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
public static Object agclose(Object... arg) { |
| 319 |
UNSUPPORTED("afwvyph6n53ckvxm8d8h7mfb8"); |
| 320 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 321 |
UNSUPPORTED("bf3nmka0aaoswb2zwm0qee15o"); |
| 322 |
UNSUPPORTED("7qo66ph77ke8gsbowf6kwqjff"); |
| 323 |
UNSUPPORTED("d7yov7q4cj5xaglc5czdcnix5"); |
| 324 |
UNSUPPORTED("1u7cs2kb7x42iwswgskdrpk5m"); |
| 325 |
UNSUPPORTED("6yjypc20njwrfp5bsnjhiiabf"); |
| 326 |
UNSUPPORTED("cmba0hmq318rx9h0jefkyen70"); |
| 327 |
UNSUPPORTED("dbiair9ce3vkfb8s9l08pfx6w"); |
| 328 |
UNSUPPORTED("2bdjy9rtybb0v767umxcnz6rs"); |
| 329 |
UNSUPPORTED("c9ckhc8veujmwcw0ar3u3zld4"); |
| 330 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 331 |
UNSUPPORTED("2hk83bjq106e9rdcpxqbv9nnl"); |
| 332 |
UNSUPPORTED("608ihpc2s8xb39yo654s19zxd"); |
| 333 |
UNSUPPORTED("3noc43t4fqi4gollim1ygyuqh"); |
| 334 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 335 |
UNSUPPORTED("6r3mocyf2tlkysyu64nxw0u9h"); |
| 336 |
UNSUPPORTED("3d2h3vjjw6x8w1joyvc3qlruy"); |
| 337 |
UNSUPPORTED("3xjgsp211uvaug1aa3mvpdlnc"); |
| 338 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 339 |
UNSUPPORTED("1ia10h9dh09qjfarfdjx452gf"); |
| 340 |
UNSUPPORTED("ddezjv0si4sjtexy5kqfwqg9n"); |
| 341 |
UNSUPPORTED("5i0sddp616zsw63jk38od62l4"); |
| 342 |
UNSUPPORTED("5d72jwytwy7gvtmqynj5ndpyr"); |
| 343 |
UNSUPPORTED("5i0sddp616zsw63jk38od62l4"); |
| 344 |
UNSUPPORTED("324yaisi4aejlbofpo08bx36u"); |
| 345 |
UNSUPPORTED("5i0sddp616zsw63jk38od62l4"); |
| 346 |
UNSUPPORTED("34xteu7bflgwy03788khpb2gb"); |
| 347 |
UNSUPPORTED("5i0sddp616zsw63jk38od62l4"); |
| 348 |
UNSUPPORTED("6bwledkxe6algose4ob82o61"); |
| 349 |
UNSUPPORTED("5i0sddp616zsw63jk38od62l4"); |
| 350 |
UNSUPPORTED("d7yg3wo8tmofx0anjr742k191"); |
| 351 |
UNSUPPORTED("l0tanhlxt2jokflxnd061z3y"); |
| 352 |
UNSUPPORTED("9jhznqh28rajdovcc58834278"); |
| 353 |
UNSUPPORTED("a5y6rvdlz9o09pphxz38sbtna"); |
| 354 |
UNSUPPORTED("crfg36z5yetflihtijtubwo8y"); |
| 355 |
UNSUPPORTED("et9lswrohfsxngrn2xcefry4q"); |
| 356 |
UNSUPPORTED("dzboxj0ijphtqrm463tpbvkhx"); |
| 357 |
UNSUPPORTED("e7v29f5dzfhzrj9v4shzbcywi"); |
| 358 |
UNSUPPORTED("c07up7zvrnu2vhzy6d7zcu94g"); |
| 359 |
UNSUPPORTED("5y8tww8901b1ro7bgu6r58vgr"); |
| 360 |
UNSUPPORTED("6ozvxgrg2q3sua4w4cnwun2hd"); |
| 361 |
UNSUPPORTED("9i0i3wyt8alu21zy4mtvxxhj7"); |
| 362 |
UNSUPPORTED("1y6k38rbnyl26lquznq5kass6"); |
| 363 |
UNSUPPORTED("8qcjv2uq7ztij51cy8b5r7yqr"); |
| 364 |
UNSUPPORTED("px95fp6paiia8ts33pk4tph1"); |
| 365 |
UNSUPPORTED("2kp9gdc0xn3li7ibgz4x4lnmz"); |
| 366 |
UNSUPPORTED("8lo1wjoiak85adsa9fwxo62zl"); |
| 367 |
UNSUPPORTED("8n6pjmho9f28hof6v2v1lruyo"); |
| 368 |
UNSUPPORTED("ets9jwr303m5yl6eqowve1loh"); |
| 369 |
UNSUPPORTED("d0v33cnucd6c13avcqkwy4wzc"); |
| 370 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 371 |
UNSUPPORTED("5oxhd3fvp0gfmrmz12vndnjt"); |
| 372 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 373 |
|
| 374 |
throw new UnsupportedOperationException(); |
| 375 |
} |
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
public static int agnextseq(ST_Agraph_s g, int objtype) { |
| 383 |
ENTERING("axmdmml95l55vlp1vqmh0v5sn","agnextseq"); |
| 384 |
try { |
| 385 |
int tmp = g.clos.seq[objtype]; |
| 386 |
tmp++; |
| 387 |
g.clos.seq[objtype]=tmp; |
| 388 |
return tmp; |
| 389 |
} finally { |
| 390 |
LEAVING("axmdmml95l55vlp1vqmh0v5sn","agnextseq"); |
| 391 |
} |
| 392 |
} |
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
public static int agnnodes(ST_Agraph_s g) { |
| 400 |
ENTERING("688euygrkbl10cveflgwalo2n","agnnodes"); |
| 401 |
try { |
| 402 |
return dtsize_((ST_dt_s)g.n_id); |
| 403 |
} finally { |
| 404 |
LEAVING("688euygrkbl10cveflgwalo2n","agnnodes"); |
| 405 |
} |
| 406 |
} |
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
public static int agnedges(ST_Agraph_s g) { |
| 414 |
ENTERING("8zjne7uv8rfpmbv5t96zhnr4u","agnedges"); |
| 415 |
try { |
| 416 |
ST_Agnode_s n; |
| 417 |
int rv = 0; |
| 418 |
for (n = agfstnode(g); n!=null; n = agnxtnode(g, n)) |
| 419 |
rv += agdegree(g, n, (false), (N(0))); |
| 420 |
return rv; |
| 421 |
} finally { |
| 422 |
LEAVING("8zjne7uv8rfpmbv5t96zhnr4u","agnedges"); |
| 423 |
} |
| 424 |
} |
| 425 |
|
| 426 |
|
| 427 |
|
| 428 |
|
| 429 |
|
| 430 |
|
| 431 |
public static Object agnsubg(Object... arg) { |
| 432 |
UNSUPPORTED("5auwvgl2zekzvzu6p5413tqd0"); |
| 433 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 434 |
UNSUPPORTED("18u3kziious357fry7i0r4kg2"); |
| 435 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 436 |
|
| 437 |
throw new UnsupportedOperationException(); |
| 438 |
} |
| 439 |
|
| 440 |
|
| 441 |
|
| 442 |
|
| 443 |
|
| 444 |
|
| 445 |
public static boolean agisdirected(ST_Agraph_s g) { |
| 446 |
ENTERING("blvn1w3v0icnucu5m5xvbrba1","agisdirected"); |
| 447 |
try { |
| 448 |
return ((ST_Agdesc_s)g.desc).directed!=0; |
| 449 |
} finally { |
| 450 |
LEAVING("blvn1w3v0icnucu5m5xvbrba1","agisdirected"); |
| 451 |
} |
| 452 |
} |
| 453 |
|
| 454 |
|
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
|
| 459 |
public static boolean agisundirected(ST_Agraph_s g) { |
| 460 |
ENTERING("8thgds4eioot64flko26m8ns0","agisundirected"); |
| 461 |
try { |
| 462 |
return (NOT(agisdirected(g))); |
| 463 |
} finally { |
| 464 |
LEAVING("8thgds4eioot64flko26m8ns0","agisundirected"); |
| 465 |
} |
| 466 |
} |
| 467 |
|
| 468 |
|
| 469 |
|
| 470 |
|
| 471 |
|
| 472 |
|
| 473 |
public static boolean agisstrict(ST_Agraph_s g) { |
| 474 |
ENTERING("9qgdebmdfrcfjm394bg59a7y5","agisstrict"); |
| 475 |
try { |
| 476 |
return ((ST_Agdesc_s)g.desc).strict!=0; |
| 477 |
} finally { |
| 478 |
LEAVING("9qgdebmdfrcfjm394bg59a7y5","agisstrict"); |
| 479 |
} |
| 480 |
} |
| 481 |
|
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
public static Object agissimple(Object... arg) { |
| 488 |
UNSUPPORTED("5khld3f380yzb9kztjfa00b7t"); |
| 489 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 490 |
UNSUPPORTED("9u553zzb7in07zdd55sdea2an"); |
| 491 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 492 |
|
| 493 |
throw new UnsupportedOperationException(); |
| 494 |
} |
| 495 |
|
| 496 |
|
| 497 |
|
| 498 |
|
| 499 |
|
| 500 |
|
| 501 |
public static int cnt(ST_dt_s d, STARSTAR<ST_dtlink_s> set) { |
| 502 |
ENTERING("abaldeo2ie6zi60cazxp7rv47","cnt"); |
| 503 |
try { |
| 504 |
int rv; |
| 505 |
dtrestore(d, set.getMe()); |
| 506 |
rv = dtsize_(d); |
| 507 |
set.setMe(dtextract(d)); |
| 508 |
return rv; |
| 509 |
} finally { |
| 510 |
LEAVING("abaldeo2ie6zi60cazxp7rv47","cnt"); |
| 511 |
} |
| 512 |
} |
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
|
| 518 |
|
| 519 |
public static Object agcountuniqedges(Object... arg) { |
| 520 |
UNSUPPORTED("47c9iab9p596xa2xrkcgmepw0"); |
| 521 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 522 |
UNSUPPORTED("36vshotvjkc5iodgg7nq6qa2r"); |
| 523 |
UNSUPPORTED("2llbfi4jrmre7cyhu90pgcm72"); |
| 524 |
UNSUPPORTED("en7ch189nkys76f42mlo1s5zz"); |
| 525 |
UNSUPPORTED("b0wzl2qtz6anq1dhlxtmvwvgn"); |
| 526 |
UNSUPPORTED("e0cr7vhmu27121z5m8qtchlwn"); |
| 527 |
UNSUPPORTED("4gu3qg6aqwexl6ysrfrqko4z8"); |
| 528 |
UNSUPPORTED("3r5t38hbcwvc5hpus6062r7ic"); |
| 529 |
UNSUPPORTED("6p5yaaxfj7183iw2v0uuruh56"); |
| 530 |
UNSUPPORTED("7jxxmlwkqih7nv6yrum6qhfe0"); |
| 531 |
UNSUPPORTED("73lyxs2pp1e0s95qdz9vgc5iy"); |
| 532 |
UNSUPPORTED("6eq5kf0bj692bokt0bixy1ixh"); |
| 533 |
UNSUPPORTED("dvgyxsnyeqqnyzq696k3vskib"); |
| 534 |
UNSUPPORTED("v7vqc9l7ge2bfdwnw11z7rzi"); |
| 535 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 536 |
|
| 537 |
throw new UnsupportedOperationException(); |
| 538 |
} |
| 539 |
|
| 540 |
|
| 541 |
|
| 542 |
|
| 543 |
|
| 544 |
|
| 545 |
public static int agdegree(ST_Agraph_s g, ST_Agnode_s n, boolean want_in, boolean want_out) { |
| 546 |
ENTERING("2bz40qf0qo7pd6er1ut25gthp","agdegree"); |
| 547 |
try { |
| 548 |
ST_Agsubnode_s sn; |
| 549 |
int rv = 0; |
| 550 |
sn = agsubrep(g, n); |
| 551 |
final ST_Agsubnode_s sn1 = sn; |
| 552 |
if (sn!=null) { |
| 553 |
if (want_out) rv += cnt((ST_dt_s)g.e_seq, |
| 554 |
STARSTAR.amp(new ACCESS<ST_dtlink_s>() { |
| 555 |
public ST_dtlink_s get() { |
| 556 |
return (ST_dtlink_s) sn1.out_seq; |
| 557 |
} |
| 558 |
public void set(ST_dtlink_s obj) { |
| 559 |
sn1.setPtr("out_seq", obj); |
| 560 |
}}) |
| 561 |
); |
| 562 |
if (want_in) rv += cnt((ST_dt_s)g.e_seq, |
| 563 |
STARSTAR.amp(new ACCESS<ST_dtlink_s>() { |
| 564 |
public ST_dtlink_s get() { |
| 565 |
return (ST_dtlink_s) sn1.in_seq; |
| 566 |
} |
| 567 |
public void set(ST_dtlink_s obj) { |
| 568 |
sn1.setPtr("in_seq", obj); |
| 569 |
}}) |
| 570 |
); |
| 571 |
} |
| 572 |
return rv; |
| 573 |
} finally { |
| 574 |
LEAVING("2bz40qf0qo7pd6er1ut25gthp","agdegree"); |
| 575 |
} |
| 576 |
} |
| 577 |
|
| 578 |
|
| 579 |
|
| 580 |
|
| 581 |
|
| 582 |
|
| 583 |
public static int agraphidcmpf(ST_dt_s d, ST_Agraph_s arg0, ST_Agraph_s arg1, ST_dtdisc_s disc) { |
| 584 |
ENTERING("dhbtfzzp8n5yygqmhmluo9bxl","agraphidcmpf"); |
| 585 |
try { |
| 586 |
int v; |
| 587 |
ST_Agraph_s sg0, sg1; |
| 588 |
sg0 = (ST_Agraph_s) arg0; |
| 589 |
sg1 = (ST_Agraph_s) arg1; |
| 590 |
v = (AGID(sg0) - AGID(sg1)); |
| 591 |
return ((v==0)?0:(v<0?-1:1)); |
| 592 |
} finally { |
| 593 |
LEAVING("dhbtfzzp8n5yygqmhmluo9bxl","agraphidcmpf"); |
| 594 |
} |
| 595 |
} |
| 596 |
|
| 597 |
|
| 598 |
|
| 599 |
|
| 600 |
|
| 601 |
|
| 602 |
public static Object agraphseqcmpf(Object... arg) { |
| 603 |
UNSUPPORTED("97lu4ei4gjam66ku5pz8dn7il"); |
| 604 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 605 |
UNSUPPORTED("ccl2joincnprtk47hwmpz1o7n"); |
| 606 |
UNSUPPORTED("73bfha5x7xhgp9p6wxa9jap6j"); |
| 607 |
UNSUPPORTED("e8rx1ahgpoym3u3v0jgarn58y"); |
| 608 |
UNSUPPORTED("bc6x70wml3jh4l4ana92njtid"); |
| 609 |
UNSUPPORTED("4afy6g5l0jng6m6l3abdyuk80"); |
| 610 |
UNSUPPORTED("2tgj1svqq4v5mqo7525nw7icj"); |
| 611 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 612 |
|
| 613 |
throw new UnsupportedOperationException(); |
| 614 |
} |
| 615 |
|
| 616 |
|
| 617 |
|
| 618 |
|
| 619 |
|
| 620 |
|
| 621 |
|
| 622 |
|
| 623 |
|
| 624 |
|
| 625 |
|
| 626 |
|
| 627 |
|
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
|
| 632 |
|
| 633 |
|
| 634 |
|
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
|
| 639 |
|
| 640 |
|
| 641 |
|
| 642 |
|
| 643 |
|
| 644 |
|
| 645 |
|
| 646 |
|
| 647 |
|
| 648 |
|
| 649 |
|
| 650 |
|
| 651 |
|
| 652 |
|
| 653 |
|
| 654 |
|
| 655 |
|
| 656 |
|
| 657 |
|
| 658 |
|
| 659 |
|
| 660 |
|
| 661 |
|
| 662 |
public static Object scndump(Object... arg) { |
| 663 |
UNSUPPORTED("7e937yycgb0eiorckxpq4qqwo"); |
| 664 |
UNSUPPORTED("erg9i1970wdri39osu8hx2a6e"); |
| 665 |
UNSUPPORTED("38goe38ctv7d6jktnwysyagy8"); |
| 666 |
UNSUPPORTED("7luati80gyuf0ex40qi3bjkkp"); |
| 667 |
UNSUPPORTED("c24nfmv9i7o5eoqaymbibp7m7"); |
| 668 |
|
| 669 |
throw new UnsupportedOperationException(); |
| 670 |
} |
| 671 |
|
| 672 |
|
| 673 |
} |