Patent ID: 8407262

Claim:
A system for generating an entity diagram, comprising: a memory to store program code; and a processor to execute the program code to perform a process to generate the entity diagram, the process comprising: generating the entity diagram with one or more entities and one or more relationships; grouping the one or more entities by a first dimension into one or more groups, wherein the first dimension corresponds to a first attribute of the one or more entities; grouping the one or more entities by a second dimension into one or more groups, wherein the second dimension corresponds to a second attribute of the one or more entities; rearranging the entities based on the grouping according to the first dimension by determining a total length of relationship links in the entity diagram; rearranging the entities based on the grouping according to the second dimension by determining a minimum total length of relationship links in the entity diagram, comprising: selecting a first possible position for a first entity within a selected one of the second dimension groups; determining a first total length of relationship links associated with the first possible position; selecting a second possible position for the first entity within the selected one of the second dimension groups; determining a second total length of relationship links associated with the second possible position; and determining the minimum total length of relationship links based on at least the first total length of relationship links and the second total length of relationship links; adjusting one or more relationship links corresponding to the one or more relationships; and providing an updated entity diagram.