Click the shape node to select it, then go to the properties view in yEd's lower right corner and choose an appropriate "Line Type". Line type determines line style and line width, The "thinnest" line type available is one pixel thick at zoom level 1.