Bayesian inference of spreading processes and analysis on different network topologies