Fix adjacency list `add-edges'` implementation