Thermomechanical Modeling In Laser Powder Bed Fusion Additive Manufacturing Using Graph Theory: Application To Prediction Of Recoater Crash