Variational Flow Graphical Model