Add edges() implementation.