Planar Graph Generation With Application To Water Distribution Networks