before going deep to programming, you probably need to understand the concept of markov chain monte carlo in social network. the algorithm called metropolis hastings. This links maybe can help you
As Shao said, see Github. Or do some effort and try to understand the Markov Chain and Monte-Carlo method, then if you have a question concerning programming, there is specific forums for that e.g. Stack Overflow, OpenClassrooms...