You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Native graph engine: degree assortativity without numpy #3036
core-engineModifications to the central physics and parsing engineenhancementNew feature, sensor, or structural signaturemetricsHeuristics, risk exposures, and topological math updates
Single-pass Pearson over per-edge (out-degree of source, in-degree of target), matching degree_assortativity_coefficient(G, "out", "in"), including its NaN→0.0 handling in the sensor.
Also fixes the silent None when networkx is present but numpy is not.
Acceptance criteria
Equal to networkx on the parity harness
Replaces the nx call to nx.degree_assortativity_coefficient(G)
Fixes the silent None when networkx is present but numpy is not
Relevant baseline
operation
networkx
notes
assortativity
16.6 ms
numpy-backed
Networkx conventions to match
degree_assortativity_coefficient(G, x="out", y="in", weight=None): built from degree_mixing_matrix, then _numeric_ac
A native version must reproduce the Pearson correlation over (out-degree of source, in-degree of target) per edge
Floating-point order must be close enough to round-equal at the stored 4 dp
core-engineModifications to the central physics and parsing engineenhancementNew feature, sensor, or structural signaturemetricsHeuristics, risk exposures, and topological math updates
Activity
Native graph engine: degree assortativity without numpy (#3036)
test: re-bless zero-dependency golden master for #3036 (assortativity…
Native graph engine: degree assortativity without numpy (#3036) (#3047)