Test that edgeID() returns correct values.

I suspect that the existing edgeID() function may fail in the
event that there are multiple edges with the same (head, tail);
that is, it assumes we are not dealing with a multigraph.