An efficient algorithm for forming radial structures from weakly meshed networks