A ???preceding-axis graph??? (???pp2p-graph???) is the p-subtree root spanning forest on directed graph D. An ???ancestor path??? (???a-path???) is the set of the nodes of P* connected starting at the context node and ending at a top node where c is a context node and Pa* is the outpath of the set of a-subtree root vertices for context node c.