code wiki / _hdl_build / nx_connect_graph_lib.nx
nx_connect_graph_lib.nx
buildroot/runtime/_hdl_build/nx_connect_graph_lib.nx
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
imports: none
imported by: nx_connect_api_lib.nxnx_connect_graph.nx
structs
| none |
consts
| 10 | const GX_LANE_LANG: i64 = 0 |
| 11 | const GX_LANE_FRIEND: i64 = 1 |
| 12 | const GX_LANE_COMMUNITY: i64 = 2 |
| 13 | const GX_LANE_DATE: i64 = 3 |
| 14 | const GX_BAND_MINOR: i64 = 0 |
| 15 | const GX_BAND_ADULT: i64 = 1 |
| 16 | const GX_EXCLUDED: i64 = 0-1 |
| 17 | const GX_NODE_SLOTS: i64 = 8 // p[0..6] used; slot count for callers allocating a node |
functions
| 19 | func gx_inter_popc(a: i64, b: i64) -> i64 |
| 31 | func gx_clamp100(v: i64) -> i64 { if v>100 { return 100 } return v } |
| 32 | func 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 |
| 36 | func gx_mk(p: *i64, band: i64, teach: i64, learn: i64, hob: i64, faith: i64, optin: i64, place: i64) -> i64 |
| 42 | func gx_mp_lang(a: *i64, b: *i64) -> i64 |
| 48 | func gx_mp_faith(af: i64, ao: i64, bf: i64, bo: i64) -> i64 |
| 54 | func gx_graph_score(a: *i64, b: *i64, lane: i64) -> i64 |