Dear Gaurish, could you precise? Your question leads to disambiguation. Is your graph acyclic? I hope yes, since I understand your question as follows:
CONVERT = keep all vertices and edges, and choose a root. There are more possibilities, from which you want that (those) where the height of the tree is minimal.