void GetDistances() { distances.Clear(); distances = Dijkstra.AllDistancesFromNode(testGraph, DistanceNodeIDInt); int index = 0; foreach (pathNode node in testGraph.GetNodeList()) { //Debug.Log(node.dist); foreach (pathNode neighbor in node.neighbors) { Debug.Log("Node " + index + " connected to:" + neighbor.ID); } index++; } }