Text this: Reconstructing a graph from the boundary distance matrix