摘要 |
Methods and apparatus implementing systems and techniques for accessing text-based linearized graph data. In general, in one aspect, a method includes obtaining text-based linearized graph data representing a data structure having nodes, and generating node-traversal data for the text-based linearized graph data, where the node-traversal data identifies for each of a subset of nodes in the represented data structure one or more locations in the text-based linearized graph data corresponding to one or more other nodes in the represented data structure, and associating the node-traversal data with the text-based linearized graph data. For example, linear offsets can be added to a document including text-based linearized graph data, such as an XML document, to enable random access to the represented nodes without having to parse the entire document, and without interfering with the generally understood structure and content of the document.
|