1. A computer-implemented method comprising: storing data comprising a hierarchy of nodes; analyzing the stored data to generate stored mappings comprising: a first mapping that maps selected-level nodes in the hierarchy to parent nodes of the selected-level nodes, and a second mapping that maps a plurality of nodes other than the selected-level nodes to a plurality of paths to the plurality of nodes; wherein the plurality of paths are within the hierarchy of nodes and exclude paths to at least some of the selected-level nodes in the hierarchy of nodes; generating the stored mappings based on the first mapping and the second mapping of the plurality of nodes; storing an indication that the stored mappings represent the hierarchy of nodes; wherein the method is performed by one or more computing devices.