A toy code for computing the reliability of graph by MC simulation