The class looks good to me! However, its name `…\ShortestPath\Result` implies it's a general purpose "Result" class, which in fact, it's not.

We have several options here, the easiest would probably be to just rename it to `FloydWarshallResult`. But given how the whole algorithm differs from the other shortest path algorithms (i.e. being an all-pairs shortest path algorithm instead of a single source shortest path algorithm), I think the whole algorithm warrants a different namespace.

IMHO we should consider creating a new sub-namespace like this `Algorithm\ShortestPath\AllPairs\FloydWarshall` and eventually move the other algorithms to a new sub-namespace like this `Algorithm\ShortestPath\SingleSource\Dijkstra`.

Any thoughts on this?