m edges, your task is to find a spanning tree of the graph such that for every vertex in the spanning tree its degree is not larger than. Recall that the degree of a vertex is the number of edges it is connected to.
Given an undirected connected graph with n n vertices and m m edges, your task is to find a spanning tree of the graph such that for every vertex in the spanning tree its degree is not larger than frac{n}{2} 2 n . Recall that the degree of a vertex is the number of edges it is connected to.
(图片来源网络,侵删)