9. The method of claim 1 , wherein the generating comprises generating relative position constraints preserving relative positions of the graphic elements in each of the candidate relative layouts.
9. The method of claim 1 , wherein the generating comprises generating relative position constraints preserving relative positions of the graphic elements in each of the candidate relative layouts. 10. The method of claim 9 , further comprising determining a set of paths through each of the candidate relative layouts, and generating the relative position constraints from the sets of paths.