Computational inference of biopathway dynamics and structures