A class of network optimization methods for planar grid generation