Graph-Based Equity Penetration and Beneficial Owner Identification: Modeling and Implementation Practices

    This article explains how to model equity penetration as a directed graph problem and identify ultimate beneficial owners. It covers the core calculation rules—path product and multi-path summation—along with data modeling considerations such as stable node IDs, time-valid edges, and source tracking. It then presents a depth-first traversal implementation with cycle detection, pruning, and depth limits, and discusses data quality issues including circular ownership, ownership gaps, source conflicts, and subscribed versus paid-in capital. The article also covers performance engineering, evidence-chain retention, compliance boundaries, and a pre-launch checklist for equity penetration systems.

    1. Background and Problem Definition

    Equity penetration means tracing upward along ownership relationship chains layer by layer until reaching natural persons, state-owned asset supervisory authorities, or other ultimate entities that no longer hold shares, thereby identifying actual controllers and beneficial owners. It is common in the following scenarios:

    1. Corporate customer onboarding and anti-money laundering due diligence, where the ultimate beneficial owner must be checked against sanctions lists or high-risk individuals.
    2. Related-party transaction review, where it is necessary to determine whether two transaction parties are controlled by the same entity.
    3. Equity disclosure before an IPO or bond issuance, where the ownership hierarchy and ultimate control relationships must be explained.
    4. Group identification in risk control systems, where multiple enterprises under the same actual controller are merged into one risk unit.

    From an engineering perspective, equity penetration is essentially a path computation problem on a directed graph. Enterprises and natural persons are nodes, and investment relationships are weighted directed edges, with ownership percentages as weights. The goal of penetration is: given a target enterprise, compute the total percentage held by each ultimate holder through all paths.

    2. Calculation Rules

    Equity penetration calculation relies on two basic rules.

    1. Path product: along one investment path, the indirect ownership percentage of the ultimate shareholder equals the product of the ownership percentages of each segment along the path.
    2. Multi-path summation: if the same ultimate shareholder holds the target enterprise through multiple paths, its total ownership percentage equals the sum of the results from each path.

    For example, Company A holds 60% of Company B, Company B holds 50% of Company C, and Company A also directly holds 20% of Company C. Then Company A’s indirect ownership in Company C is 60% × 50% = 30%, and Company A’s total ownership in Company C is 30% + 20% = 50%.

    Note that ownership percentage and control rights are not completely equivalent. Control rights also depend on voting rights arrangements, board seats, articles of association, and concert party agreements. The ownership percentage obtained through penetration can serve as an important basis for judging control relationships, but the final determination needs to be made comprehensively with this information.

    3. Data Modeling

    The penetration result depends on the design of the data model. At minimum, three types of elements should be distinguished.

    1. Nodes: enterprises, natural persons, and other organizations. Each node should have a stable unique identifier and should not rely only on names, because entities with the same name are common.
    2. Edges: investment relationships. Key attributes include ownership percentage, subscribed amount, paid-in amount, and effective time of change.
    3. Time dimension: equity changes over time, and queries must specify a point in time. If only the current state is stored, penetration results for historical points in time cannot be reproduced, which will cause problems in audits.

    The following is an illustrative data structure used to explain how fields are organized:

    1. Edge {
    2. holder_id: unique identifier of the investor
    3. target_id: unique identifier of the investee
    4. ratio: ownership percentage, range (0, 1]
    5. valid_from: effective date
    6. valid_to: expiration date; empty means currently valid
    7. source: data source identifier for traceability
    8. }

    During queries, building an inverted index by target_id allows all direct shareholders of an enterprise to be found quickly. This is the basic operation for upward penetration.

    4. Implementation of the Penetration Algorithm

    The penetration direction is to traverse upstream from the target enterprise and find the endpoint of each path. Both depth-first search and breadth-first search can be used. Depth-first search is simpler to implement and makes it easier to record the complete path for auditing. The following code is illustrative and only explains the core logic; it does not involve any specific platform API.

    1. from collections import defaultdict
    2. def build_graph(edges):
    3. # Store direct shareholders and ownership percentages with the investee as the key
    4. graph = defaultdict(list)
    5. for holder, target, ratio in edges:
    6. graph[target].append((holder, ratio))
    7. return graph
    8. def penetrate(graph, company, threshold=1e-4, max_depth=10):
    9. totals = defaultdict(float)
    10. def dfs(node, ratio, depth, path):
    11. if depth >= max_depth:
    12. return
    13. for holder, r in graph.get(node, []):
    14. if holder in path:
    15. continue # Cycle: skip back edge
    16. cum = ratio * r # Path product
    17. if cum < threshold:
    18. continue # Pruning: discard paths with too small contribution
    19. if graph.get(holder):
    20. dfs(holder, cum, depth + 1, path | {holder})
    21. else:
    22. totals[holder] += cum # No upstream records, treat as ultimate entity
    23. dfs(company, 1.0, 0, frozenset({company}))
    24. return dict(totals)
    25. edges = [
    26. ("Company A", "Company B", 0.6),
    27. ("Company B", "Company C", 0.5),
    28. ("Company A", "Company C", 0.2),
    29. ("Individual A", "Company A", 1.0),
    30. ]
    31. print(penetrate(graph := build_graph(edges), "Company C"))
    32. # The result for Individual A is approximately 0.5 (0.3 + 0.2)

    This code reflects several key design points.

    1. Path product is passed layer by layer through ratio * r.
    2. Multi-path summation is completed by accumulating in the totals dictionary.
    3. The path set records nodes already visited on the current path, which is used to detect cycles.
    4. threshold and max_depth control precision and depth respectively, avoiding infinite traversal.

    The example result is a floating-point number. In actual comparisons, tolerance should be used; for example, when determining whether 50% is reached, a small error should be allowed. If the business requires exact comparison, fixed-point decimals or integer basis points can be used to represent percentages, for example storing them in units of one ten-thousandth.

    5. Cycles and Data Quality

    1. Cross-holding and circular holding

    In real data, enterprises may form cycles, for example Company A holds Company B, Company B holds Company C, and Company C holds Company A again. The code above avoids infinite loops by skipping nodes that have already appeared in the path, but this handling only guarantees that the program terminates; it does not produce an accurate percentage. A strict approach is to model the ownership relationships as a system of linear equations and solve it, or mark circular results as requiring manual review.

    1. Missing data and ownership gaps

    If the ownership percentages of shareholders of an enterprise sum to less than 100%, this indicates undisclosed shareholders. The penetration result should be marked as “not fully penetrated” and the gap percentage should be listed, rather than defaulting the gap to zero.

    1. Multi-source conflicts

    Data may come from multiple channels such as registration information, enterprise self-reporting, and contract documents. When different sources conflict, authoritative sources should be preferred, and conflict records should be retained. The system needs to record the source and update time of each edge and support post-hoc traceability.

    1. Subscribed and paid-in capital

    Penetration is usually based on subscribed percentages or registered ownership percentages, but in some risk judgment scenarios, paid-in status is also important. The two bases should be output separately, and the basis used should be noted in the result.

    6. Performance and Engineering

    1. Indexing and caching

    Penetration is a graph traversal operation, and when the number of enterprises is large, the cost of a single query cannot be ignored. Common practices include building indexes by investee, caching penetration results for popular enterprises, and setting a reasonable expiration policy.

    1. Incremental updates

    After an equity change event occurs, only the affected enterprises and their downstream nodes need to be recalculated, rather than performing a full recalculation. This requires the system to find all affected targets through the reverse relationships of the graph.

    1. Trade-off between depth and pruning

    The smaller max_depth and threshold are, the faster the computation, but deep or small-percentage paths may be missed. Risk control scenarios usually value completeness more and can appropriately relax the threshold; query display scenarios can increase the threshold to improve response speed. The threshold should be managed as a configuration item, and the parameters used in each calculation should be recorded.

    1. Evidence-chain retention

    A penetration result is not just a number; all paths corresponding to each ultimate shareholder should also be retained. Auditors need to see every edge on the path and its source in order to judge whether the result is credible.

    7. Compliance and Data-Use Boundaries

    1. Penetration results are inputs for risk control and due diligence, not equivalent to a legal determination of control rights. The final conclusion should be reviewed by qualified personnel in combination with articles of association and legal documents.
    2. When natural person information is involved, the minimization principle should be followed: retain only the fields necessary to complete penetration, and desensitize them during display.
    3. Penetration results are internal risk information. Access should be role-based, and access logs should be recorded.
    4. The use of data sources should comply with the corresponding authorization scope and legal requirements and must not exceed the agreed purpose.

    8. Practical Checklist

    Before launching an equity penetration feature, it is recommended to confirm the following items one by one:

    1. Whether nodes have stable unique identifiers and whether entities with the same name can be correctly distinguished.
    2. Whether edges have effective time ranges and whether queries for historical points in time can be reproduced.
    3. Whether cycles are detected and marked, and whether circular results have a manual review process.
    4. Whether ownership gaps are explicitly output rather than hidden.
    5. Whether parameters such as threshold and depth are configurable and recorded together with the results.
    6. Whether each ultimate shareholder is accompanied by the complete path and data source.
    7. Whether natural person information is desensitized, and whether access has permission and log controls.

    The core of equity penetration is to transform complex ownership relationships into structured results that are computable, traceable, and reviewable. Only when the model design is clear, the algorithm boundaries are explicit, and data quality is measurable can the system output support risk control and compliance work.