Group graph: fix issue with overlapping edges in reciprocal edges involving a group.

Closes #698