cit-atlas v1.8.0)This reference documents the bibliometric estimators, graph clustering algorithms, and GPU simulation/rendering equations implemented in crvscience-cit-atlas.
src/analytics.rs)For networks with $n \le 1{,}500$, run_parallel_brandes evaluates exact Brandes (2001) shortest-path accumulation from all $n$ sources in parallel via rayon.
For larger graphs ($n > 1{,}500$, sample budget $K = 192$), the solver constructs a stratified Horvitz–Thompson pivot sample:
src/community_detection.rs)To preserve directional research-front flow without collapsing stationary probability onto terminal reference roots, build_infomap_rw_transitions builds the random-walk transition graph strictly from out_adj and its exact transpose in_adj:
This guarantees an exact $1.0 : 0.25$ ($4 : 1$) forward-to-backward transition ratio along directed chains $A \to B \to C$ (eliminating undirected double-counting on forward arcs). Stationary visit frequencies $p_i$ are solved via damped PageRank power iteration (teleportation rate $\tau \in [0.01, 0.85]$, tolerance $|p^{(t+1)} - p^{(t)}|1 < 10^{-13}$), and modules $M$ minimize the two-level Rosvall–Bergstrom Map Equation:
$$L(M) = q{\curvearrowright} H(\mathcal{Q}) + \sum_{m=1}^{|M|} p_{\circlearrowright}^m H(\mathcal{P}^m),$$
with an incremental $O(\deg(u))$ accumulator solver for $n > 500$ seeded from Louvain super-clusters.
For paper $i$ published in year $t_{\text{pub}}$, annual citation counts $c_t$ at age $t = t_{\text{citer}} - t_{\text{pub}}$ strictly exclude unknown-year records ($t_{\text{citer}} \le 0$), pre-publication citations ($t_{\text{citer}} < t_{\text{pub}}$), and post-horizon citations ($t_{\text{citer}} > t_{\text{horizon}}$), ensuring $c_0$ reflects only publication-year citations. Given peak count $c_{t_m}$ at age $t_m$:
$$B = \max!\left(0,\; \sum_{t=0}^{t_m} \frac{\ell(t) - c_t}{\max(c_t, 1)}\right), \qquad \ell(t) = c_0 + \frac{c_{t_m} - c_0}{t_m} t,$$
and $t_a = t_{\text{pub}} + \arg\max_{0 \le t < t_m} d_{\perp}(t, c_t; \ell)$.
On the undirected citation neighborhood $N(i)$ of degree $k_i$ ($p_{ij} = 1/k_i$):
$$C_i = \sum_{j \in N(i)} \left(p_{ij} + \sum_{q \in N(i) \setminus {j},\; (q, j) \in E} \frac{1}{k_i k_q}\right)^2.$$
Indirect sums are accumulated in $O!\left(\sum_{q \in N(i)} \min(k_i, k_q)\right)$ without any artificial $1.25$ upper clamp or heuristic hub approximation (falling back to deterministic stratified neighbor sampling only when both $k_i > 512$ and work exceeds $250{,}000$ checks).
wgpu WGSL Physics & Vector Rendering (src/wgpu_graph.rs)cs_bin_nodes bins nodes into a $128 \times 128$ fine grid and $16 \times 16$ fixed-point charge/center-of-mass supercells (fine_per_super = 8). cs_forces_and_integrate computes exact pairwise ForceAtlas2 repulsion over all fine cells in the $3 \times 3$ supercell neighborhood $(|\Delta s_x| \le 1 \land |\Delta s_y| \le 1)$ and switches strictly to supercell monopole repulsion for $|\Delta s_x| > 1 \lor |\Delta s_y| > 1$, guaranteeing zero double-counting and zero skipped boundary cells.world_to_ndc and world_to_px scale both axes uniformly by min(viewport_w, viewport_h) * 0.44 * zoom, preventing widescreen distortion and matching CPU SpatialPickGrid hit-testing.vs_edge passes per-edge stroke_half_w derived from raw_eb (and special geodesic/zombie codes) to fs_edge, clips edge endpoints at target node perimeter tgt_r_px + 2.0 px, and orients the fragment arrowhead SDF along the exact quadratic Bézier terminal tangent $\vec{\tau} = \text{normalize}(1,\, -4\,\text{bow_amp} / L_{\text{seg}})$.