motif op• データ種: matrix → table
• 呼び出し: import fullseye as fs; fs.ledger.graph_cycle3(adj) (実装を直接呼ぶなら import graphinv; graphinv.graph_cycle3(adj)、台帳から引くなら opsgraph.get("graph_cycle3"))
有向 3 サイクルの数 tr(B³)/3(総当たりの第 2 実装と一致)。
> 以下の詳細説明は原文のままです —— 要約と見出しは訳出済み。
Each cycle is counted once (the trace visits it from each of its three starting nodes). Self-loops are removed first. Returns a dict with cycles3 and n.
A second, independent implementation (brute-force enumeration) agrees exactly on small graphs — pinned in the tests, because a single implementation of a counting formula cannot catch its own off-by-three.
Raises ValueError: as graph_degree_summary.
• サンプルデータ カタログ(DL URL / ライセンス) — 2-D は skimage.data(BSD/public)+ 合成、3-D は実データ源(Stanford/PDS 等)の DL URL。
• 演算子の来歴・参考文献 — この op 族の元になった研究/手法の出典。
• アルゴリズムの正典(著者・年)と用途は上記ファミリ使い方ガイドに記載。
• graphinv_three_phyla — py -3.11 examples/graphinv_three_phyla.py
table を入力に取れる)graph_edge_consensus · graph_core_persistence · tree_morphometry · tree_sholl · tree_run_length
motif)—
*Provenance: graphinv.py — GRAPH operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.