rename _edges to edges