Dynamic graphical models of molecular kinetics