#include <iostream>
#include <vector>

using namespace std;

int c, t, n, k, e[100009];
vector<int> g[100009];

signed main() {
	freopen("traverse.in", "rt", stdin);
	freopen("traverse.out", "wt", stdout);
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);
	cin >> c >> t;
	while (t--) {
		cin >> n >> k;
		for (int i = 1, u, v; i < n; i++) {
			cin >> u >> v;
			g[u].push_back(v);
			g[v].push_back(u);
		}
		for (int i = 1; i <= k; i++) {
			cin >> e[i];
		}
	}
}
