code wiki / _hdl_build / nx_connect_graph_lib.nx

nx_connect_graph_lib.nx

buildroot/runtime/_hdl_build/nx_connect_graph_lib.nx

3394 B69 linesdepth 0pulls 0 transitivereach 4 importersview sourcekind librarytopic connect
docsdependenciesstructsconstsfunctions

about

nx_connect_graph_lib.nx -- THE UNIFIED INTEREST GRAPH, extracted as a shared library so the verifying gate (nx_connect_graph) and the front door (nx_connect_api, verb `graph`) bind ONE implementation. This is CONNECT's whole thesis in one function: language, hobby, faith and place live on a SINGLE heterogeneous-information-network model, scored per intent lane, so two people with no shared language but a shared hobby and belief still find each other in the friendship lane -- the apps that silo these miss them. Faith is CONSENT-gated (GDPR Art.9), and the minor<->romance wall is preserved by construction. Symbols carry a gx_ prefix (no bare collisions with the other engine libs). No main, no shared state. license_tier: ORIGINAL

dependencies 0 imports · 2 importers

nx_connect_graph_lib.nx nx_connect_api_lib.nx nx_connect_graph.nx

imports: none

imported by: nx_connect_api_lib.nxnx_connect_graph.nx

structs

none

consts

10const GX_LANE_LANG: i64 = 0
11const GX_LANE_FRIEND: i64 = 1
12const GX_LANE_COMMUNITY: i64 = 2
13const GX_LANE_DATE: i64 = 3
14const GX_BAND_MINOR: i64 = 0
15const GX_BAND_ADULT: i64 = 1
16const GX_EXCLUDED: i64 = 0-1
17const GX_NODE_SLOTS: i64 = 8 // p[0..6] used; slot count for callers allocating a node

functions

19func gx_inter_popc(a: i64, b: i64) -> i64
31func gx_clamp100(v: i64) -> i64 { if v>100 { return 100 } return v }
32func gx_hm(a: i64, b: i64) -> i64 { if a==0 { return 0 } if b==0 { return 0 } return (2*a*b)/(a+b) }
called by 1: gx_mp_lang
36func gx_mk(p: *i64, band: i64, teach: i64, learn: i64, hob: i64, faith: i64, optin: i64, place: i64) -> i64
called by 2: ca_v_graphmkp
42func gx_mp_lang(a: *i64, b: *i64) -> i64
48func gx_mp_faith(af: i64, ao: i64, bf: i64, bo: i64) -> i64
called by 2: maingx_graph_score
54func gx_graph_score(a: *i64, b: *i64, lane: i64) -> i64