Correct answer: n − k
In a forest, which is a collection of trees, the number of edges is always one less than the number of vertices in each connected component. Therefore, for k components, the total number of edges is n (the total number of vertices) minus k (the number of components), resulting in n - k.