Returns a nested ownership tree built from the CompanyOwnershipEdge staging table. Combines ownership from multiple sources (annual reports, SCB, board minutes) with their metadata. Suitable for tree-style UI components.
Internal company ID
Direction of traversal: "up" (owners/ancestors), "down" (subsidiaries/owned), or "both". Default "down".
Maximum traversal depth. Default 10.
When true, only current (non-historical) ownership edges are included. Default true.
Ownership tree rooted at the company