Commit 43f26efc authored by Stephen C. North's avatar Stephen C. North 🙀

Fixed compare of anonymous edge ID. I don't see how AGTYPE(e) could be right.

parent 9d98ca57
......@@ -413,7 +413,7 @@ int agedgeidcmpf(Dict_t * d, void *arg_e0, void *arg_e1, Dtdisc_t * disc)
NOTUSED(disc);
v = AGID(e0->node) - AGID(e1->node);
if (v == 0) { /* same node */
if ((AGTYPE(e0) == 0) || (AGTYPE(e1) == 0))
if ((AGID(e0) == 0) || (AGID(e1) == 0))
v = 0;
else
v = AGID(e0) - AGID(e1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment