code wiki / (root) / nx_eco_graph.nx

nx_eco_graph.nx

buildroot/runtime/nx_eco_graph.nx

11682 B267 linesdepth 4pulls 4 transitivereach 40 importersview sourcekind librarytopic eco
docsdependenciesstructsconstsfunctions

about

nx_eco_graph.nx -- R0 graph ENGINE (brick-2) of the living ecosystem graph ([[project-nishi-living-ecosystem-graph-2026-07-15]]). A hash-interned basename node graph + import edges + the queries the operator asked for: ANCESTORS = roots-to-god (transitive imports, down to leaves like nx_syscalls → god), DESCENDANTS = children-to-newest (transitive importers), COUPLING (Ca fan-in / Ce fan-out), ORPHAN (Ca==0). Composes nx_import_scan for edges; the live whole-tree walk that POPULATES it = brick-3. Pure integer, sovereign, deterministic. license_tier: ORIGINAL

dependencies 2 imports · 35 importers

nx_syscalls.nx nx_sov_ledger.nx nx_eco_graph.nx nx_arch_board.nx nx_atlas_frontdoor.nx nx_atlas_gapscan.nx nx_atlas_gapscan_gate.nx nx_atlas_graphrec.nx nx_atlas_graphrec_lib.nx nx_atlas_recombine.nx nx_codewiki.nx nx_codewiki_ask.nx nx_codewiki_lib.nx

diagram shows first 10 each side; +0 more imports, +25 more importers in the complete lists below.

imports: nx_syscalls.nxnx_sov_ledger.nx

imported by: nx_arch_board.nxnx_atlas_frontdoor.nxnx_atlas_gapscan.nxnx_atlas_gapscan_gate.nxnx_atlas_graphrec.nxnx_atlas_graphrec_lib.nxnx_atlas_recombine.nxnx_codewiki.nxnx_codewiki_ask.nxnx_codewiki_lib.nxnx_dup_detect.nxnx_dupfunc.nxnx_eco_graph_arch.nxnx_eco_graph_atlas.nxnx_eco_graph_build.nxnx_eco_graph_card.nxnx_eco_graph_forest.nxnx_eco_graph_gate.nxnx_eco_graph_honesty.nxnx_eco_graph_mermaid.nxnx_eco_graph_ortho_gate.nxnx_eco_graph_pedigree.nxnx_eco_graph_png.nxnx_eco_graph_store_gate.nxnx_eco_graph_wiki.nxnx_eco_rooted_set.nxnx_ecosysdesign_gate.nxnx_gatelib.nxnx_gatelib_walkparity_gate.nxnx_gatequality.nxnx_gatescan.nxnx_gatescan_test.nxnx_gensota.nxnx_product_atlas_build.nxnx_raster2d_lib.nx

structs

12struct EcoGraph

consts

9const K_MAGIC_2166136261: i64 = 2166136261
10const K_MAGIC_16777619: i64 = 16777619

functions

21func eg_new(node_cap: i64, edge_cap: i64, arena_cap: i64, hash_size: i64) -> *EcoGraph
called by 14: maingg_newmainmainmainmain+8 calls 1: sys_mmap
34func eg_hash(s: *u8, len: i64, mod: i64) -> i64
called by 2: maineg_intern
40func eg_name_eq(g: *EcoGraph, idx: i64, s: *u8, len: i64) -> i64
called by 2: eg_interneg_find
48func eg_intern(g: *EcoGraph, s: *u8, len: i64) -> i64
72func eg_add_edge(g: *EcoGraph, src: i64, dst: i64) -> i64
78func eg_finalize(g: *EcoGraph) -> i64
called by 11: mainmaingr_proposemainmainmain+5 calls 1: sys_mmap
112func eg_ce(g: *EcoGraph, idx: i64) -> i64 { // fan-out = # imports
118func eg_ca(g: *EcoGraph, idx: i64) -> i64 { // fan-in = # importers
126func eg_ancestors(g: *EcoGraph, idx: i64, visited: *u8, out: *i64, outn: *i64, cap: i64) -> i64
148func eg_descendants(g: *EcoGraph, idx: i64, visited: *u8, out: *i64, outn: *i64, cap: i64) -> i64
174func eg_find(g: *EcoGraph, s: *u8, len: i64) -> i64
179func eg_save(g: *EcoGraph, prefix: *u8) -> i64
196func eg_load(prefix: *u8) -> *EcoGraph
227func eg_dfs_cycle(g: *EcoGraph, u: i64, color: *u8) -> i64
241func eg_has_cycle(g: *EcoGraph) -> i64
called by 1: main calls 2: sys_mmapeg_dfs_cycle
253func eg_coupling_stats(g: *EcoGraph, hub_thr: i64, out: *i64) -> i64
called by 1: main calls 1: eg_ca