1. give a first matrix and crate another second matrix containing all the shortest path from any given source of first matrix to all index there is also some blockage index.
2.given node having string and its children find rank of any given node parent have 1 rank. there are multiple node and we can add dynamically node.