Purpose
Use Retrieve Paths to Ancestors to retrieve the ancestral paths of the specified structure from the specified open archive file.
A path of ancestors of a structure S is a list of ordered pairs ((A1,E1), (A2,E2),..., (Am,Em),(S,0)) where each ordered pair consists of an identifier of a structure (Ax) that is an ancestor of the specified structure (S) and the position of an execute structure-type element (Ex) that references the next structure in the path. Ancestor structure A1 is the top of the path (e.g., not referenced by any other structure) and S is the bottom of the path.
The path order and path depth determine the portion of each path that the graPHIGS API returns. Your application can specify the path order as TOP_FIRST or BOTTOM_FIRST. The path depth determines the maximum number of ordered pairs returned in any one path. Specifying a path depth of zero returns each path in its entirety. When truncation occurs, the path order determines whether the graPHIGS API returns the head or tail portion of the path. This truncation can result in two or more portions of paths having the same set of element references. The graPHIGS API returns only one such portion so that all the returned path portions are distinct.
Language Bindings
pret_paths_ances (ar_id, struct_id, order, depth, store, paths) |
PREPAN (afid, strid, pthord, pthdep, ipthsz, n, ol, apthsz, paths) |
Errors
Related Subroutines