Lines Matching defs:gr
366 Graph_t *gr;
374 if(!(gr = gropen(NIL(Grdisc_t*), GR_DIRECTED)) )
384 if(!(hd = grnode(gr, TYPECAST(Void_t*,y), 1)) )
391 if(!(tl = grnode(gr, TYPECAST(Void_t*,z), 1)) ||
392 !(e = gredge(gr, tl, hd, (Void_t*)0, 1)) )
397 if((k = grbranching(gr)) < 0)
402 for(nd = (Grnode_t*)dtfirst(gr->nodes); nd; nd = (Grnode_t*)dtnext(gr->nodes,nd))
419 done: if(gr)
420 grclose(gr);
485 Graph_t *gr = NIL(Graph_t*);
489 if(!(gr = gropen(NIL(Grdisc_t*), GR_DIRECTED)) )
494 if(!(hd = grnode(gr, TYPECAST(Void_t*,x), 1)) )
499 if(!(tl = grnode(gr, TYPECAST(Void_t*,y), 1)) ||
500 !(e = gredge(gr, tl, hd, (Void_t*)0, 1)) )
505 if((r = grbranching(gr)) < 0)
509 for(nd = (Grnode_t*)dtfirst(gr->nodes); nd; nd = (Grnode_t*)dtnext(gr->nodes,nd))
525 ob_err: if(gr)
526 grclose(gr);