There is a graph with n nodes.The edges are generated with different probabilities.
P[i][j] is the probability of generating the edge i->j .
For every i, you want to know the probability that the first node can go to the i-th node through the generated edges .
n<=40
I don't know how to solve it ,can you help me?