Equity Penetration: Graph Data Modeling, Algorithms, and Engineering Practice

    Equity penetration traces ownership relationships layer by layer to reveal the ultimate controllers and beneficial owners behind complex, multi-tier corporate structures. This article presents a practical, deployable technical approach spanning business rules, data modeling, core graph algorithms, and system architecture. It explains the distinction between the equity (economic interest) and control calibers, how direct and indirect shareholding are computed across multiple paths, and how circular ownership is resolved through iterative convergence or strongly connected component condensation. It also covers how to determine penetration endpoints and identify beneficial owners, data governance concerns such as entity resolution, point-in-time versioning, source confidence, and quality monitoring, and a layered architecture with incremental computation and explainable results. Readers will find SQL and pseudocode examples suitable for direct implementation.

    1. Introduction: What Problem Does Equity Penetration Solve?

    In an environment of increasingly complex group operations and capital activity, the ownership structure shown in legal documents is often “multi-tier and multi-entity.” A direct shareholder may be a limited partnership, an employee stock ownership plan, or an intermediate holding company registered in one of several jurisdictions. If you look only at the first layer of registered shareholders, you can neither identify the ultimate controller of the enterprise nor accurately assess related-party transactions, group customer concentration, risk-contagion paths, and hidden interests.

    Equity penetration addresses exactly this problem. It traces ownership relationships layer by layer upward to endpoints such as natural persons, state-owned asset regulators, or listed companies, while also expanding downward to all controlled entities. The result is a traceable, quantifiable, and explainable “equity–control” panorama. Typical applications include:

    1. Anti-money laundering and compliance: Identify beneficial owners and prevent the concealment of true controllers through multi-layer nesting.
    2. Financial-institution risk control: Support unified credit for group customers and the identification of related parties, avoiding multiple credit lines and concentrated risk under the same actual controller.
    3. Corporate due diligence and post-investment management: Determine the attribution of actual control, acting-in-concert relationships, and potential horizontal competition.
    4. Supply chain and vendor management: Uncover hidden relationships and detect collusive bidding and related-party transaction risks.

    In engineering practice, the difficulty does not lie in “drawing a tree diagram,” but in solving the following classes of problems:

    • Deep hierarchies: Nesting can reach a dozen or more layers, making manual layer-by-layer lookup unsustainable.
    • Complex structures: Cross-holding, circular holding, and joint control are common.
    • Many paths: The same beneficiary may hold shares through multiple paths, which must be merged correctly.
    • Messy data: Name abbreviations, former names, registration-number changes, and nominee holding can cause entity-recognition errors.
    • Dynamic changes: Ownership structures change over time, so analysis must be traceable to a specific point in time.

    This article presents a deployable technical solution across four layers: business rules, the data model, core algorithms, and system architecture.

    2. Core Rules of Penetration Calculation

    2.1 Distinguishing Economic Equity from Control

    Equity penetration supports at least two calculation calibers:

    • Equity caliber: Compute economic interest by chaining shareholding ratios, answering “who enjoys how much of the returns.”
    • Control caliber: Trace upward along control chains, answering “who is in charge.”

    The relationship between the two is not a simple linear one. In a typical pyramid structure, a controlling party holds 60% of A, and A in turn holds 51% of B. It therefore commands B’s operating decisions firmly with an equity stake of only about 30.6%. In due diligence or list screening, requirements such as “shareholders directly or indirectly holding more than 5%” usually refer to the equity caliber. After penetration by actual contribution ratio, many nominal minority shareholders may turn out to be the key entities that need to be flagged.

    In a limited partnership structure, a limited partner (LP) may contribute 99% of the capital yet enjoy only income rights, while the general partner (GP) contributes very little yet holds the right to execute partnership affairs. Here, an additional “control edge” must be introduced.

    2.2 Direct vs. Indirect Shareholding

    Let subject A hold a ratio p₁ of B, B hold a ratio p₂ of C, and A→B→C form an acyclic path. Then A’s indirect shareholding ratio in C is:

    indirect_ratio(A → C) = p₁ × p₂

    If there are multiple mutually non-overlapping paths P₁, P₂, …, Pₖ, and the distinct intermediate entities across these paths have no shareholding relationship among themselves, then:

    ratio(A → C) = Σᵢ (∏ⱼ∈Pᵢ rⱼ)

    For example, A directly holds 10% of C and indirectly holds it through B (holding 60% of C) and D (holding 30% of C). If A holds 50% of B and 40% of D, then A’s total equity in C is 10% + 50%×60% + 40%×30% = 52%.

    Note: Direct shareholding must not be added on top of 100%. Let t be the set of direct shareholders of the target, and let their shareholding sum to 1; then “100% − Σ direct shareholding ratios” is identically 0. If the sum of all indirect shareholdings does not equal 100%, it indicates the presence of a cycle, a truncated intermediate entity, or incomplete data. This invariant can serve as a basic basis for self-checking results.

    2.3 Special Rules for the Control Caliber

    Tracing upward along control chains follows the principle of “the first controller is the endpoint”: starting from the target entity and tracing up along the path with the largest shareholding ratio, once an entity holding (or voting rights over) more than 50% that can determine the majority of shareholder-meeting votes is encountered, it is identified as the controller and the upward trace stops.

    Two points need attention:

    • Articles of association, voting-rights delegation, or acting-in-concert agreements may make actual voting rights higher than the nominal shareholding ratio.
    • The majority-of-voting-rights threshold may also be lowered by a “relative majority” or “acting in concert” arrangement — for example, holding 30% while other shareholders are dispersed, or jointly controlling together with other shareholders.

    2.4 Determining Penetration Endpoints

    Equity penetration does not always trace all the way up to a natural person. The following nodes can serve as default endpoints:

    • A natural person;
    • A state-owned property regulator or an institution performing the responsibilities of the owner of state assets;
    • A listed company;
    • A widely held entity with highly dispersed shareholders and no clear controller.

    When judging the last case, you can observe whether any single shareholder holds more than a certain threshold (e.g., 5%), or whether the top several major shareholders hold more than a certain proportion (e.g., 50%) in aggregate.

    2.5 Beneficial Owner Identification Criteria

    A beneficial owner is a natural person who ultimately owns or actually controls a customer, or who transacts on its behalf. Common criteria include:

    • Directly or indirectly holding equity or voting rights of ≥ 25%;
    • Even below that ratio, exercising actual control over the entity through means such as personnel appointments or other arrangements;
    • If still undeterminable, considering its senior management.

    Thresholds may differ across jurisdictions and institutions (some jurisdictions set it at 10%). System design should make the threshold a configurable parameter rather than hard-coding it.

    3. Data Modeling: Representing Ownership with a Graph Structure

    3.1 The Basic Graph Model

    An ownership structure is essentially a directed weighted graph, but it cannot be applied naively in engineering. A rich-graph model with multiple node types + multiple edge types is recommended:

    Element Type Description
    Node Natural person Name, ID document type and number, nationality
    Node Legal entity Registration number / company registration code, place of registration, operating status
    Node Holding platform Limited partnership, employee stock ownership plan, etc.; can be tagged with GP/LP role
    Edge Shareholding Ratio, subscribed/paid-in amount, effective and expiry date
    Edge Voting rights Voting ratio, or a delegation / acting-in-concert relationship
    Edge Control Non-proportional control relationships such as GP control or contractual control
    Edge Appointment Director/supervisor/senior-management roles, used to assist in determining “actual control”

    Key design points:

    1. Edges are directed: The direction points from the holder to the held entity. When expanding paths, traverse in reverse while recording two sets of weights: “equity” and “control.”
    2. Use fixed-point numbers for ratios: Storing ratios as floating point is forbidden. For example, store 60% as 0.600000 to prevent floating-point error from accumulating across multiple rounds of chaining. Amount-type fields follow the same rule.
    3. Edges carry timestamps: Ownership relationships are time-sensitive, so the effective date and expiry date must be stored to support “reconstructing the structure as of a historical date.”
    4. Separate entities from relationships: Entity attributes (name, registered capital, etc.) can be stored in a relational database, while relationship data is written to a graph store to support multi-hop queries.

    3.2 Relationship Table Design (Illustrative)

    1. -- Entity table: stores natural persons, organizations, holding platforms, and other subjects
    2. CREATE TABLE entity (
    3. entity_id BIGINT PRIMARY KEY, -- Internal unified ID
    4. entity_type VARCHAR(16) NOT NULL, -- PERSON / ORG / PARTNERSHIP ...
    5. unified_code VARCHAR(64), -- Company registration code (blank for natural persons)
    6. name VARCHAR(256) NOT NULL, -- Canonical name
    7. status VARCHAR(16), -- ACTIVE / MERGED / REVOKED
    8. region VARCHAR(32)
    9. );
    10. -- Share edge table: stores direct shareholding and voting relationships
    11. CREATE TABLE share_edge (
    12. edge_id BIGINT PRIMARY KEY,
    13. holder_id BIGINT NOT NULL, -- Holder (source)
    14. target_id BIGINT NOT NULL, -- Held entity (target)
    15. ratio NUMERIC(9,6) NOT NULL, -- Shareholding ratio, 0~1
    16. vote_ratio NUMERIC(9,6), -- Voting ratio; defaults to ratio if absent
    17. right_type VARCHAR(16) NOT NULL, -- EQUITY / VOTE / CONTROL
    18. effective_date DATE NOT NULL,
    19. expire_date DATE, -- NULL means valid indefinitely
    20. source_id BIGINT, -- Data source, e.g. announcement, business registration
    21. confidence NUMERIC(4,3) -- Confidence, 0~1
    22. );
    23. -- Supports lookup by "held entity + point in time", serving reverse traversal
    24. CREATE INDEX idx_edge_target ON share_edge (target_id, effective_date);
    25. -- Supports filtering by holder and relationship type
    26. CREATE INDEX idx_edge_holder ON share_edge (holder_id, right_type);

    3.3 Storage Selection

    • Relational database + recursive queries: Suited to scenarios with shallow hierarchies and limited scale. Simple to implement, but performance degrades noticeably at greater depth.
    • Graph database or graph-computing service: Optimized for multi-hop queries and supporting flexible schemas and large numbers of edges; this is the conventional choice for ownership scenarios.
    • In-memory graph + local computation: Suited to high-frequency penetration over a fixed starting point (such as a resident risk-monitoring list). Common results can be precomputed and cached.
    • Columnar store / data warehouse: Suited to batch offline full-graph penetration and metric aggregation, but not to low-latency point lookups.

    Real systems are usually a combination: entities and relationships are maintained together in a transactional database, penetration computation relies on the graph store, and offline batch metrics are generated in the data warehouse.

    4. Core Algorithms: From Direct Shareholding to Penetration Results

    4.1 Reverse Traversal and Path Enumeration on a Directed Graph

    Penetration can be abstracted as: given a starting point (the target entity or a group node), perform a breadth-first or depth-first traversal in the reverse direction of the edges. For each path that arrives, compute ratio = Π(edge ratio) and accumulate to obtain the indirect shareholding of each candidate entity.

    1. # Illustrative pseudocode: does not distinguish equity from control; only "enumerate by path + accumulate"
    2. FUNCTION penetrate(start_entity, as_of_date, cfg):
    3. results <- map() # entity_id -> {equity_sum, control_hit, paths}
    4. queue <- [(start_entity, 1.0, 0, [])]
    5. WHILE queue NOT EMPTY:
    6. (node, ratio, depth, path) <- queue.pop()
    7. IF depth >= cfg.max_depth:
    8. CONTINUE
    9. edges <- load_edges(target=node, as_of=as_of_date,
    10. ratio_type=cfg.phi_ratio) # Equity caliber filters by shareholding/voting ratio
    11. IF edges IS EMPTY OR is_terminal(node):
    12. results[node].equity_sum += ratio
    13. results[node].paths.add(path)
    14. CONTINUE
    15. FOR EACH e IN edges:
    16. # Cycle pruning: do not revisit the same node along the current path; can be refined later
    17. IF e.holder_id IN path.nodes: CONTINUE
    18. queue.push((e.holder_id, ratio * e.ratio, depth + 1,
    19. path + e))
    20. RETURN results

    The cfg in the example centrally manages the penetration parameters:

    • max_depth: The maximum number of layers, balancing performance and data quality.
    • phi_ratio: The equity-caliber threshold used to filter by shareholding/voting ratio.
    • control_threshold: The control-caliber threshold (default 0.5).

    Key implementation points:

    1. Deduplicate by path, not by node: If you record only whether a node has been visited, the equity that the same intermediate node brings in from another path will be missed.
    2. Prune in time: A path whose ratio product falls below the threshold can still continue accumulating downward (several small-ratio paths may still meet the threshold when summed), but it should not keep branching. You can prune based on an upper-bound estimate using the remaining layers.
    3. Check endpoints first: When an endpoint node (natural person, state-owned institution, listed company, etc.) is encountered, stop expanding while recording the path, to support later tracing and explanation.

    4.2 SQL Implementation Reference

    For a graph with shallow hierarchies and modest scale, penetration can be done directly with a recursive query. The following is illustrative; database dialects differ slightly in their support for arrays and recursion:

    1. WITH RECURSIVE paths AS (
    2. -- Level 1: direct shareholders
    3. SELECT
    4. e.holder_id AS holder_id,
    5. e.target_id AS node_id,
    6. e.ratio AS ratio,
    7. 1 AS depth
    8. FROM share_edge e
    9. WHERE e.target_id = :target
    10. AND :as_of BETWEEN e.effective_date
    11. AND COALESCE(e.expire_date, DATE '9999-12-31')
    12. AND e.ratio >= :phi_ratio
    13. UNION ALL
    14. -- Subsequent levels: continue tracing upward along the holders
    15. SELECT
    16. p.holder_id,
    17. e.target_id,
    18. p.ratio * e.ratio,
    19. p.depth + 1
    20. FROM paths p
    21. JOIN share_edge e
    22. ON e.target_id = p.node_id
    23. AND :as_of BETWEEN e.effective_date
    24. AND COALESCE(e.expire_date, DATE '9999-12-31')
    25. AND e.ratio >= :phi_ratio
    26. WHERE p.depth < :max_depth
    27. )
    28. SELECT
    29. holder_id,
    30. SUM(ratio) AS indirect_ratio,
    31. MAX(depth) AS max_depth
    32. FROM paths
    33. GROUP BY holder_id
    34. ORDER BY indirect_ratio DESC;

    If the database does not support recursive queries, the same traversal can be done in the application layer with a queue. When the number of nodes is very large, completing the multi-hop query with a graph store is usually more appropriate.

    4.3 Handling Circular Shareholding

    Circular shareholding is one of the most troublesome problems in equity penetration. A typical form is A, B, and C holding one another. If summed infinitely by the formula directly, one shareholder’s equity is diluted and stacked an unlimited number of times. Three common approaches exist:

    • Simple truncation: Limit the maximum depth (e.g., 10 layers). Simple to implement, but the result depends on the depth chosen and is poorly explainable.
    • Path pruning: Do not let the same path pass through the same node twice. This guarantees the algorithm terminates, but it misses equity that still has real meaning after repeated dilution around the cycle.
    • Iterative convergence / strongly connected component condensation: More rigorous mathematically and deployable in engineering; recommended as the primary approach.

    In an acyclic structure, equity propagation can be expressed as a matrix operation. Let A be the adjacency ratio matrix, where A[i][j] is the ratio of j held by i, and let q be the external equity vector (in the acyclic case, only the starting position of q is 1). Expanding level by level q, A·q, A²·q, … and summing across all levels is equivalent to:

    S = (I − A)⁻¹ · q

    Iterative convergence under circular shareholding

    When cycles exist, the direct meaning of the above formula is: an equity a injected from outside the cycle is repeatedly diluted as it circulates within the cycle, and once stacked it forms a convergent “steady state.” The ratio sequence is:

    a, a·r, a·r², …

    where r is the product around the cycle (0 < r < 1). Its limit is:

    a / (1 − r)

    Worked example: A holds 80% of B, and B holds 20% of A.

    • Treating A as the external owner and injecting equity a = 1, the steady state within the cycle is 1 / (1 − 0.16) ≈ 1.1905, which is B’s final equity ratio.
    • Conversely, the steady-state ratio of A held by B is 20% / (1 − 0.16) ≈ 0.2381.

    Both calibers converge, but the values differ, so the result must be bound to a specific calculation caliber and not mixed. This also shows that penetration rules are themselves part of the product logic and need to be versioned and made explicit to users.

    In practice, the “shift” method can be used for iteration without an explicit inverse:

    1. Set the round-0 result vector r⁽⁰⁾ = q.
    2. In round k + 1, compute r⁽ᵏ⁺¹⁾ = q + A·r⁽ᵏ⁾.
    3. Terminate and output the result when ‖r⁽ᵏ⁺¹⁾ − r⁽ᵏ⁾‖ is below the specified precision threshold.

    This iteration converges geometrically, and the vast majority of real-world graphs converge within a few dozen rounds. To aid explanation, you can also retain the paths corresponding to the “partial sum of the first N rounds,” forming a layered “direct + indirect” view.

    A more rigorous approach is to first compute the strongly connected components of the graph and condense each component containing a cycle into a super-node, then perform dynamic programming on the resulting directed acyclic graph. This avoids the overhead of inverting a large graph as a whole.

    4.4 Control Penetration

    The algorithm for the control caliber differs considerably. Common approaches are:

    1. Starting from the target entity, select the shareholder with the highest shareholding or voting ratio as the “controlling shareholder,” and trace upward along this chain.
    2. If a certain layer has no shareholder exceeding the control threshold, consider control to belong to the shareholders’ meeting as a collective, or return to the controller of the previous layer.
    3. When a holding platform is encountered, continue tracing upward along the GP’s control relationship; the LP retains only equity and is not regarded as a controller.
    4. If contractual control exists (e.g., actual control achieved through contractual arrangements), maintain “control edges” separately and analyze them jointly with equity edges.

    4.5 Multi-Path Merging and Result Aggregation

    The same entity may reach the same ancestor through multiple paths, so results must be merged by entity:

    • At the numeric level: Aggregate by SUM using the entity ID, not by name.
    • At the logical level: Record each path’s weight, depth, and source to support explainability.
    • At the decision level: Mark results near the threshold (e.g., 24.5%–25.5%) with a “buffer zone” flag to prompt review.

    5. Data Governance: The Foundation of Penetration Accuracy

    Algorithms can only guarantee that “the computation is correct given the data”; they cannot compensate for problems in the data itself. In real projects, most causes of inaccurate penetration results come from the data layer.

    5.1 Entity Alignment

    In ownership data, the same entity may appear in several forms: full name, abbreviation, former name, pre- and post-rename names, or even a changed registration number due to shifts in registration standards. It is recommended to build a multi-layered entity-resolution mechanism:

    1. Strong identifiers first: The company registration code or registration number is the preferred alignment basis.
    2. Name standardization: Normalize full- and half-width characters, remove parenthetical notes, convert between traditional and simplified characters, and strip organizational-form suffixes such as “(Limited Partnership).”
    3. Fuzzy matching: For records without strong identifiers, use similarity computation, combined with attributes such as place of registration and legal representative to assist the judgment.
    4. Human-review loop: For low-confidence matching and merging results, provide channels for human confirmation and appeals.

    5.2 Point-in-Time and Version Management

    Ownership structures can change at any time, so the same question may yield different answers at different points in time. It is recommended to maintain two kinds of time information in the system:

    • Relationship time: The effective and expiry time of each edge, supporting point-in-time reconstruction.
    • Version time: The batch and version number of each graph-data snapshot, retaining historical computation results for auditing and traceback.

    5.3 Sources and Confidence

    The trustworthiness of different data sources varies:

    • Business registration, regulatory disclosure, and listed-company announcements are usually of relatively high trustworthiness.
    • Information from the internet, corporate annual reports, or even user uploads is of lower trustworthiness.

    It is recommended to store a source identifier and confidence for each edge, and to display penetration results weighted by confidence — for example, tagging them “high confidence / requires manual verification.”

    5.4 Data Quality Monitoring

    • Coverage: How many targets have complete shareholder information traceable to an endpoint.
    • Timeliness: The elapsed time since the most recent data update.
    • Consistency: The rate of attribute conflicts for the same entity across different sources.
    • Anomaly detection: A single edge with a ratio over 100%, ratios that do not sum to 1, or self-loops in an edge.

    6. System Architecture and Implementation Points

    6.1 Layered Architecture

    1. Data ingestion layer: Connect to multiple sources such as business registration, public announcements, and internal data, with unified cleaning and standardization.
    2. Graph storage layer: Persist entities and relationships, build indexes, and partition by time.
    3. Computation layer: Support both “full batch processing” and “incremental real-time” modes. Common nodes and high-frequency query results are precomputed and materialized, and incremental updates are triggered when the graph changes.
    4. Service layer: Provide penetration queries, path explanation, batch computation, list comparison, and other interfaces to upper-layer applications.
    5. Application layer: Serve business scenarios such as compliance review, risk alerts, and due diligence analysis.

    6.2 Incremental Computation

    Full-graph penetration is costly, so incremental updates should be based on the “change impact scope”:

    • When an edge changes, only recompute the two endpoint nodes and their reachable paths.
    • Using a reverse index and topological sort, order the affected nodes by dependency, then update cached results in that order.
    • For graphs that are “small and infrequently updated,” simple full recomputation is also acceptable; the key is to measure the cost with metrics rather than choosing based on experience.

    6.3 Result Explainability

    If penetration results provide only a percentage, business staff will find them hard to trust. The system should be able to output simultaneously:

    • Every key path (including each segment’s ratio);
    • The source and update time of the data at each stage;
    • The comparison of the result against the threshold (met / not met / borderline);
    • A comparison of results under different calibers.

    Visualization (tree diagrams / Sankey diagrams) is an optional enhancement, but retaining path details is mandatory.

    6.4 Performance and Stability

    • Cache high-frequency query results and set sensible invalidation strategies.
    • Limit the maximum depth and the number of returned records per penetration to prevent abnormal data from causing an avalanche.
    • Schedule full-computation jobs during off-peak hours and elastically scale compute resources.
    • Record each request’s latency and path size to form a basis for capacity planning.

    7. Typical Application Scenarios and Tips

    1. Unified credit for group customers: Use the penetrated actual controller as the aggregation basis to identify related credit under the same group, avoiding multiple credit lines and concentrated risk.
    2. Supply-chain hidden-relationship screening: Perform bidirectional penetration and comparison between suppliers and purchasers to uncover potential conflicts of interest.
    3. Investment due diligence: Quantify the actual controller’s equity ratio and leverage levels, and identify “minority-stake control” and multi-layer nesting.
    4. List-based compliance screening: Match entities against sanctions lists, defaulter lists, and similar lists using entity-level similarity matching and relationship comparison.

    8. Conclusion

    At first glance, equity penetration looks like “turning shareholders into a diagram,” but it is actually a combination of data engineering, graph algorithms, and business rules:

    • On the data side: Solving entity alignment, point-in-time versioning, and multi-source trustworthiness;
    • On the algorithm side: Correctly handling the two calibers of equity and control, cycle convergence, and multi-path merging;
    • On the engineering side: Using layered storage, incremental computation, and explainable results to deliver the capability reliably to the business.

    Only when all three layers are prepared can penetration results truly support compliance review, risk alerts, and investment decisions. As data structures grow more complex and regulatory requirements keep rising, platformizing and standardizing equity-penetration capability is becoming an indispensable part of an enterprise’s data governance system.