I am reading a paper which has some graph theory context as well. Specifically, there is a directed-tree $T$ with reversed-edges (i.e., an edge is from a child node to its parent node instead of parent node to the child node). There are nodes $a$ and $b$ and we want to find out if the node $b$ is along the path from the node $a$ to the root node of the tree which is labelled by $r$. The paper suggests the following.
- Compute the inverse $M=(I-A)^{-1}$ where $A$ is the adjacency-matrix.
- If $M(a,b)>0$, then $T$ has $b$ along the path from $a$ to $r$. Basically it says that for the $i^{th}$ row of $M$, all columns with a value greater than $0$ indicate the nodes that are visited on the directed path from node $i$ to the root $r$. This is something that I would like to get some intuition/comments on. Thank you.