1. A computer-implemented method for generating a layout of a design, the method comprising: invoking the computer to receive a schematic representation of the design, the schematic representation comprising a plurality of devices and associated terminals coupled to one another by a plurality of nets; generating a connection graph associated with the schematic representation of the design via the computer, said generating the connection graph comprising: calculating interconnection codes between pairs of devices; converting the devices and nets connecting the terminals to respective nodes and edges; and associating the interconnection codes to the edges of the connection graph; comparing the connection graph to a plurality of connection graphs stored in a database to identify a match via the computer; and selecting a layout associated with the matching connection graph in generating the layout of the design via the computer.