Lines Matching defs:edge
52 static void edgefree(Dt_t* edges, Void_t* edge, Dtdisc_t* disc)
57 if(edge)
59 (*gr->disc->eventf)(gr, GR_EDGE|GR_CLOSING, edge, gr->disc );
61 for(dt = ((Gredge_t*)edge)->data; dt; dt = next)
66 free(edge);
120 Gredge_t edge, *ed, *e, *pe;
128 if(!(edge.tail = tail) || !(edge.head = head) )
131 /* see if the edge exists */
132 edge.label = label;
133 ed = dtsearch(gr->edges, &edge);
159 if(type == 0 || ed) /* only searching or edge already exists */
168 ed->tail = edge.tail;
169 ed->head = edge.head;
170 ed->inext = edge.head->iedge; edge.head->iedge = ed;
171 ed->onext = edge.tail->oedge; edge.tail->oedge = ed;