Return all nodes from the matrix
remove only test
Using Floyd-Warshall Algorithm, implemented shortest route algo.