getEdge functions and WarshallFloyd algorithm init