Relativistic heavy-ion collisions produce a hot and dense nuclear matter, through which one can study the phase diagram of QCD.
Open and hidden heavy flavors are promising probes to search for the properties of the hot and dense nuclear matter under extreme conditions.
We present how the production and interactions of open and hidden heavy flavors in heavy-ion collisions are realized in the Parton-Hadron-String Dynamics, which is a non-equilibrium microscopic transport approach for the description of the dynamics of strongly interacting hadronic and partonic matter.