Was obsolete already in the initial version 13 years ago.
if (t && h) {
rv = agfindedge_by_key(g, t, h, AGTAG(e));
if (cflag && (rv == NILedge)) {
-#ifdef OLD_OBSOLETE
- rv = agfindedge_by_id(g, t, h, AGID(e));
- if (!rv)
- rv = newedge(g, t, h, AGID(e));
-#else
installedge(g, e);
rv = e;
-#endif
}
if (rv && (AGTYPE(rv) != AGTYPE(e)))
rv = AGOPP(rv);
agdelrec(obj, rec_name);
}
-#ifdef OLD
-void agclean(Agraph_t * g, char *graphdata, char *nodedata, char *edgedata)
-{
- Agnode_t *n;
- Agedge_t *e;
-
- if (nodedata || edgedata) {
- for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
- if (edgedata)
- for (e = agfstout(n); e; e = agnxtout(g, e)) {
- agdelrec(e, edgedata);
- }
- if (nodedata)
- agdelrec(n, nodedata);
- }
- }
- agdelrec(g, graphdata);
-}
-#endif
-
void aginit(Agraph_t * g, int kind, char *rec_name, int arg_rec_size, int mtf)
{
Agnode_t *n;