经济暴露穿透分析
原能力
按权利及持有关系穿透经济暴露,保留不可穿透部分和依赖来源。(合同附件 R7 13.9)
首选项目
NetworkX(BSD-3-Clause)。 NetworkX
匹配范围
沿已录入投资关系执行路径查询。
源码
NetworkX · def shortest_path(
networkx/algorithms/shortest_paths/generic.py · 43–56 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def shortest_path(G, source=None, target=None, weight=None, method="dijkstra"):
"""Compute shortest paths in the graph.
Parameters
----------
G : NetworkX graph
source : node, optional
Starting node for path. If not specified, compute shortest
paths for each possible starting node.
target : node, optional
Ending node for path. If not specified, compute shortest
paths to all possible nodes.
NetworkX · def descendants(
networkx/algorithms/dag.py · 36–49 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def descendants(G, source):
"""Returns all nodes reachable from `source` in `G`.
Parameters
----------
G : NetworkX Graph
source : node in `G`
Returns
-------
set()
The descendants of `source` in `G`
Raises
实现与验收要点
权益双层事实、穿透比例、循环、估值时点和不完整信息。