Polygon to line 

This nodes finds lines of a polygon geometry

Distance 

This node returns the minimum distance between two geometries