Graph Optimization and Dual Quaternions for Spacecraft Autonomy During Close Proximity Operations