Select > Convert Selection > To Edge Perimeter

Converts the current component selection (vertices, UVs, edges, or faces) to a border of edges along its perimeter.

Note: This command is also available from the polygon marking menu. ( + -click whenever a polygon component is selected.)