Fig. 3From: A novel algorithm for finding optimal driver nodes to target control complex networks and its applications for drug targets identificationDemonstration of MCMC sampling. For the directed network in Fig. 2a, after two iterations, we first obtain the set of matched links (red edges) which form a Markov chain M 1 in the “linking and dynamic graph”. Based on the Markov chain, we identify the target controllable sunspace of each node in the network; Then, we get the driver nodes {v3} by solving the problem (5) with integer linear programming (ILP), which result in the weight of the driver nodes W(M1) = 2.Then we generate a new Markov chain M 2 by replacing the maximum matching in the t = 0 updated bipartite graph (supplementary note 2 of Additional file 1) and obtaining the new maximum matching in the later updated bipartite graph after t = 0. Based on the new Markov chain, we can identify the driver nodes {v1} with the weight W(M2) = 1. Finally according to the Metropolis-Hastings algorithm, we will accept the markov chain M 2 with the probability p(M t ,Mt + 1) = min[1,exp.(c*W(M 2 )-c*W(M 1 )) for some c > 0, here we set c = 10Back to article page