Implementation of the algorithm proposed in our TMC 2014 paper, “A New Approach to the Directed Connectivity in Two-Dimensional Lattice Networks”:
L. Zhang, L. Cai, J. Pan and F. Tong, "A New Approach to the Directed Connectivity in Two-Dimensional Lattice Networks," in IEEE Transactions on Mobile Computing, vol. 13, no. 11, pp. 2458-2472, Nov. 2014. doi: 10.1109/TMC.2014.2314128