get functions and tests + WarshallFloyd