Part-scale thermal simulation of laser powder bed fusion using graph theory: Effect of thermal history on porosity, microstructure evolution, and recoater crash