mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
fallbackLouvain()'s local-moving loop rebuilt a communityTotal map via a full scan of every node, once per node, once per pass (O(n^2) per pass), instead of maintaining it incrementally like networkx's Stot/python-louvain's status.degrees (O(1) per accepted move). loadRuVector() never resolves real native acceleration against any published ruvector/@ruvector/wasm version, so this fallback is the only community-detection path that ever runs, reachable via the shipped `claude-flow analyze modules` command. New test file proves byte-identical correctness against a frozen copy of the pre-fix algorithm plus a complexity-growth regression guard; a standalone tsx probe shows per-N speedup growing 2.1x->37.5x as N grows 8x, the signature of a complexity-class fix. Full @claude-flow/cli suite and tsc --noEmit byte-identical to baseline outside the new test file. Evaluated: ACCEPT. Independently adversarially reviewed: CONFIRMED, no blocking caveats. Darwin skipped (binary correctness-preserving fix, no tunable parameter). Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01JL2GEEWf9ezZo1X1wQ2Ls6