Forward And Inverse Modeling Of Granular Flows Using Differentiable Graph Neural Network Simulator