graph_degree_preserving_shuffle — CONNGRAPH construct op

• Data kinds: conn_graph → conn_graph

• Call: import fullseye as fs; fs.ledger.graph_degree_preserving_shuffle(W: 'Any', n_swaps: 'int | None' = None, seed: 'int' = 0) -> 'np.ndarray' (implementation को सीधे call करना हो तो import conngraph; conngraph.graph_degree_preserving_shuffle(W: 'Any', n_swaps: 'int | None' = None, seed: 'int' = 0) -> 'np.ndarray', registry से लेना हो तो opsconngraph.get("graph_degree_preserving_shuffle"))

उपयोग

degree-preserving shuffle (null model): हर node के in-degree, out-degree और weight के multiset को बनाए रखते हुए edge फिर से जोड़ता है।

directed double-edge swap (Maslov & Sneppen 2002): edges (a→b, w1) और (c→d, w2) को (a→d, w1) और (c→b, w2) से बदला जाता है। जो जोड़े self-loop या duplicate edge बनाएँ, उन्हें छोड़ दिया जाता है। n_swaps का default 10 × edges की संख्या है। यह binary structure के degree को बनाए रखता है (weights अपने edge के साथ चलते हैं, इसलिए strength बदल सकती है)। diagonal (self-loops) को हिलाया नहीं जाता, वैसा ही रहता है। 2 से कम edges हों तो copy लौटाई जाती है।

उपयोग की विस्तृत guide

• conngraph family guide

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• poc_larval_connectome_reservoir — py -3.11 examples/poc_larval_connectome_reservoir.py

• poc_malecns_activity_wave — py -3.11 examples/poc_malecns_activity_wave.py

• poc_microns_brain_wave — py -3.11 examples/poc_microns_brain_wave.py

वे अगले ops जिनसे type जुड़ता है (conn_graph को input के रूप में लेते हैं)

graph_binarize · graph_degree_table · graph_clustering_coefficient · graph_betweenness · graph_laplacian_spectrum · graph_spectral_radius · graph_components · graph_modularity

इसी category के (construct)

graph_from_synapses · graph_binarize


*Provenance: conngraph.py — CONNGRAPH operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.