Mix and Reason: Reasoning over Semantic Topology with Data Mixing for Domain Generalization