A physics-infused heterogeneous graph neural network has been developed to address challenges in designing complex nanomaterials with spatially varying compositions. This fully differentiable model ...