1. A method, comprising: generating, by a device, a graph of a set of elements included in a graphical user interface, an attribute of an element, of the set of elements, being represented by a vertex of the graph, the vertex being associated with a vertex location, and a layout relationship associated with the set of elements being represented by an edge of the graph; selecting, by the device, a path included in the graph of the graphical user interface, the path including a particular set of vertices and a particular set of edges, the particular set of vertices including the vertex, and the path being selected based on a set of selection criteria; determining, by the device, a set of resize factors associated with the path; determining, by the device, another vertex location for the vertex based on a set of resize factors associated with the path, the other vertex location corresponding to another attribute for the element of the set of elements; and providing, by the device and for display, the set of elements based on the other attribute for the element.