structure op• 数据种类:graph → conn_graph
• 调用: import fullseye as fs; fs.ledger.knn_graph_to_conn_graph(graph, weight='inverse_distance', symmetric=True)(要直接调用实现,import reprconv; reprconv.knn_graph_to_conn_graph(graph, weight='inverse_distance', symmetric=True);从台账取用则 opsreprconv.get("knn_graph_to_conn_graph"))
• GPU:无(仅 CPU 参考实现)
k 近邻图 graph → 加权邻接矩阵 conn_graph (n, n)。graph 类型的出口。
> 以下的详细说明为原文 —— 摘要与标题已翻译。
knn_graph の返り (idx (n,k) int, dist (n,k) float) を、conn_graph 族(graph_components / graph_laplacian_spectrum / graph_layout_spectral …)が受ける n×n の W[i, j] = i → j の重みにする。weight:
• "inverse_distance" —— 1 / dist(近いほど強い。距離 0 の重複点は拒否する)
• "distance" —— dist そのもの(経路長として使う側向け)
• "binary" —— 1
symmetric=True で W = max(W, Wᵀ)(k 近傍は片想いがあるので、無向グラフとして扱うなら対称化する)。対角は 0(knn_graph は自分を除いている)。n は conngraph.MAX_NODES(4096)まで —— 密行列なので、それを超える点群は先に farthest_point_sampling などで間引く。
Args:
graph: (idx, dist) の 2-tuple(knn_graph の返り)。
weight: "inverse_distance" / "distance" / "binary"。
symmetric: True で対称化。
Returns:
(n, n) float64。
Raises:
ValueError: 2-tuple でない / 形が違う / 添字が範囲外 / 自己ループ / n が上限超え /
inverse_distance で距離 0 / weight が不正。
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者、年份)与用途见上面的族使用指南。
• poc_bga_ball_type_roundtrip — py -3.11 examples/poc_bga_ball_type_roundtrip.py
• type_connectivity_tour — py -3.11 examples/type_connectivity_tour.py
conn_graph 作为输入)—
structure)frame_axis · pointmap_to_points · match_component
*Provenance: reprconv.py — REPRCONV 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.