Generate full graph output and the solution (as connected nodes) for visualization.
Generate full graph output and the solution (as connected nodes) for visualization.