On the metric subgraphs of a graph