Synopsys interview question

How to get a spanning tree for undirected graph? How to get a minimum spanning tree?