Diffusing the Optimal Topology: A Generative Optimization Approach