Computing the distance matrix from an adjacency matrix

1k Views Asked by At

How do I do this?

I know how to compute each matrix from a given graph but don't know how to get from one to the other and what the link between the two matrices are.

PS: for graphs that are undirected, connected and simple