DAG-Math: Graph-Guided Mathematical Reasoning in LLMs