It is well known that if graph G is a tree, then the following identity holds: LDL=-2L, where L is the Laplacian matrix of tree G, and D is its distance matrix.
Is the opposite true?
That is, if L is a Laplacian matrix of some graph G (probably, disconnected) with n vertices and n-1 edges, and LDL=-2L for some positive symmetric integer matrix D with zero diagonal, then G is a tree, and D is its distance matrix.