Graph theoretic methods for dynamics of electrons and nuclei with post-Hartree-Fock accuracy