set up graph 2 and randomized initial state