Changed variable e to edge