Text this: Structure theory for a characterization of the metric dimension of graphs.