One-Shot Optimal Topology Generation through Theory-Driven Machine Learning