How to offset curve in a intersected situation

I want to offset the curve inward direction, since the grid shape is randomly generated by the computer. There is a situation like what i showed in the image that multiple curves are intersected together which failed to offset the curve and genera the surface using boundary surface component. Any one can help? Many thanks!!!