Thermal Modeling Of Additive Manufacturing Using Graph Theory: Validation With Directed Energy Deposition