construct opconn_graph → conn_graphimport fullseye as fs; fs.ledger.graph_degree_preserving_shuffle(W: 'Any', n_swaps: 'int | None' = None, seed: 'int' = 0) -> 'np.ndarray' (実装を直接呼ぶなら import conngraph; conngraph.graph_degree_preserving_shuffle(W: 'Any', n_swaps: 'int | None' = None, seed: 'int' = 0) -> 'np.ndarray'、台帳から引くなら opsconngraph.get("graph_degree_preserving_shuffle"))次数保存シャッフル(帰無モデル): 各ノードの入次数・出次数と重みの多重集合を保って辺を繋ぎ替える。
有向 double-edge swap(Maslov & Sneppen 2002): 辺 (a→b, w1) と (c→d, w2) を
(a→d, w1) と (c→b, w2) に替える。自己結合と重複辺を作る組は捨てる。
n_swaps の既定は 10 × 辺数。二値構造の次数を保つ(重みは辺に付いて
移動するので strength は変わりうる)。対角(自己結合)は動かさずそのまま残す。
辺が 2 本未満なら複製を返す。
py -3.11 examples/poc_larval_connectome_reservoir.pypy -3.11 examples/poc_malecns_activity_wave.pypy -3.11 examples/poc_microns_brain_wave.pyconn_graph を入力に取れる)graph_binarize · graph_degree_table · graph_clustering_coefficient · graph_betweenness · graph_laplacian_spectrum · graph_spectral_radius · graph_components · graph_modularity
construct)graph_from_synapses · graph_binarize
Provenance: conngraph.py — CONNGRAPH operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.