Skip to contents
library(cograph)
data(student_interactions)

Centrality measures quantify the position of a node in a network. The simplest, degree, counts the ties of a node. Other measures are built from the distances between nodes, the shortest paths that pass through a node, walks of all lengths, or the community structure of the network. Each measure describes a different aspect of position, and the choice between them depends on the process the network is assumed to carry.

This catalogue documents the 274 measures available through centrality(), organised by family. Each entry gives a short description, the formula as implemented, a guide to interpreting the scores, and an example. The examples use student_interactions, a data set of observed interactions between students included in the package. Tuning parameters are arguments of centrality() and are listed in the argument catalogue.

centrality(student_interactions)
#>    node degree_all strength_all closeness_all betweenness  eigenvector
#> 1    Ac         33          129    0.01754386   26.342857 1.000000e+00
#> 2    Ad         20           36    0.01754386   42.541520 1.096110e-01
#> 3    Fi         24           51    0.01666667   35.721634 1.789565e-01
#> 4    Ik         14           24    0.01666667   25.844874 1.551369e-02
#> 5    Vx         26           43    0.01960784   90.717124 7.238902e-02
#> 6    Rt         20           37    0.01785714   63.135739 1.159931e-01
#> 7    Km         11           16    0.01639344   18.175108 2.804725e-02
#> 8    Gj         19           31    0.01818182  114.599049 3.265786e-02
#> 9    Bd         12           18    0.01612903   21.769264 9.607736e-03
#> 10   Ce         10           13    0.01612903   16.648629 4.473504e-03
#> 11   Oq         14           20    0.01754386   34.151726 2.293068e-02
#> 12   Ya         13           19    0.01612903   18.216122 1.758656e-02
#> 13   Mo         12           17    0.01587302   38.264502 1.003629e-01
#> 14   Hj         12           19    0.01754386   85.816522 2.013125e-02
#> 15   Tv         10           13    0.01666667   25.916306 1.320877e-02
#> 16   Eg         10           12    0.01639344   22.335171 5.783916e-03
#> 17   Pr         11           18    0.01666667   23.974060 7.602231e-02
#> 18   Qs         15           19    0.01785714   76.910851 1.511764e-02
#> 19   Xz         14           18    0.01639344   22.280159 8.533484e-03
#> 20   Np          8            8    0.01666667   12.044048 1.549052e-02
#> 21   Dg         13           13    0.01886792   29.240901 6.260099e-03
#> 22   Hk         16           25    0.01818182   72.176441 1.201845e-01
#> 23   Wy         11           16    0.01639344   34.014358 1.054705e-03
#> 24   Jl         15           18    0.01818182   67.359085 5.009801e-02
#> 25   Fh         21           55    0.01818182   78.588877 2.817489e-01
#> 26   Zb          7            8    0.01538462    9.583333 5.429715e-05
#> 27   Eh          7           13    0.01428571   34.325000 1.163185e-03
#> 28   Be         14           16    0.01851852  105.250898 2.203252e-03
#> 29   Df          8           10    0.01562500   11.026190 4.800876e-06
#> 30   Cf         12           15    0.01724138  119.109163 1.243207e-02
#> 31   Su          6            9    0.01369863   33.154401 1.028472e-04
#> 32   Ln          7            8    0.01408451    5.749708 1.376854e-02
#> 33   Gi          3            4    0.01351351    0.000000 0.000000e+00
#> 34   Uw          4            7    0.01250000    0.000000 0.000000e+00
#>       pagerank
#> 1  0.285861728
#> 2  0.052985644
#> 3  0.077591140
#> 4  0.024836857
#> 5  0.057364714
#> 6  0.042552472
#> 7  0.016655998
#> 8  0.025444498
#> 9  0.014321668
#> 10 0.010679742
#> 11 0.016087378
#> 12 0.016588876
#> 13 0.031180263
#> 14 0.019051413
#> 15 0.012644206
#> 16 0.010425091
#> 17 0.022794289
#> 18 0.019784870
#> 19 0.013229134
#> 20 0.008466679
#> 21 0.010345027
#> 22 0.040383192
#> 23 0.009067435
#> 24 0.020529375
#> 25 0.070538086
#> 26 0.005635780
#> 27 0.010080122
#> 28 0.009378924
#> 29 0.004957518
#> 30 0.017877547
#> 31 0.005136500
#> 32 0.007628879
#> 33 0.005483193
#> 34 0.004411765

Pass type = "all" for all ordinary-cost measures, include = "costly" to add costly ones, measures = c(...) to pick a subset, digits = to round, and sort_by = to order the result.

How to read this catalogue

Every measure below is documented with up to five fields:

  • Concept — what the measure captures, in words.
  • Definition — the formula as cograph computes it. Where its normalisation differs from a textbook statement, the formula shown is the one cograph uses.
  • Meaning — how to read a high (or low) value.
  • Arguments — the centrality() arguments that change the measure, when it has any.
  • Example — a runnable call on student_interactions. Five of them warn on this graph, because the measure is undefined or does not converge there: Katz at the default katz_alpha, Hubbell, random-walk and Markov centrality, and IEC. The warning names the cause and, for Katz, the largest katz_alpha that converges.

Notation

Throughout, G=(V,E)G = (V, E) is a graph with n=|V|n = |V| nodes and adjacency matrix A=(aij)A = (a_{ij}); wijw_{ij} are edge weights, N(v)N(v) is the neighbour set of vv, kv=|N(v)|k_v = |N(v)| its degree, and s(v)=∑uwvus(v) = \sum_u w_{vu} its strength. We write d(u,v)d(u, v) for the shortest-path distance, Δ\Delta for the graph diameter, and σst\sigma_{st} (resp. σst(v)\sigma_{st}(v)) for the number of shortest ss–tt paths (resp. those passing through vv). L=D−AL = D - A is the graph Laplacian and 𝟏\mathbf{1} the all-ones vector.

Catalogue index

Degree, strength and local connectivity

X-degree · Clustering Degree Algorithm · Weighted formal concept analysis (WFCA) · Node importance evaluation matrix (NIEM) · Improved k-shell decomposition (IKSD) · K-shell based gravity centrality (KSGC) · Classified neighbors centrality · Hybrid degree centrality · Effective gravity model (EGM) · Entropy-based social influence · Weight degree centrality (Wdc) · Extended weight degree centrality (EWdc) · Mapping entropy (ME) · Improved entropy-based centrality · Weight neighborhood centrality · Density centrality · Weighted k-shell degree neighborhood (WKSDN) · Mu-power community index · Global importance of nodes (GIN) · Icentr · Global and local information (GLI) · KDEC method · Common out-neighbor (CON) score · Entropy and mutual information-based centrality (EMI) · Improved neighbors’ k-core (INK) · Extended Neighborhood Coreness · Malatya Centrality · Volume Centrality · Degree Centrality · Indegree Centrality · Outdegree Centrality · Strength Centrality · Instrength Centrality · Outstrength Centrality · Expected Centrality · Leverage Centrality · Lobby Centrality · H-Index Strength Centrality · Local H-Index Centrality · Semi-Local Centrality · ClusterRank Centrality · Collective Influence Centrality · MNC Centrality · DMNC Centrality · LAC Centrality · Gravity Centrality · Neighborhood Connectivity · Entropy Variation, Degree · Flow Coefficient · Local Entropy · Weighted h-index · Redundancy

Distance and closeness

Improved Global Structure Model · Global Structure Model · Hybrid Global Structure Model · Exogenous Centrality · Improved Closeness Centrality · Spreading probability (SP) · Node importance contribution correlation matrix (NICCM) · Correlation centrality · Laplacian gravity centrality (LGC) · Weighted gravity model (WGravity) · Average shortest path centrality (AC) · Extended Gravity Centrality · Closeness Centrality · Incloseness Centrality · Outcloseness Centrality · Harmonic Centrality · Inharmonic Centrality · Outharmonic Centrality · Residual Closeness Centrality · Dangalchev Closeness Centrality · Generalized Closeness Centrality · Harary Centrality · Average Distance Centrality · Barycenter Centrality · Wiener Centrality · Lin Centrality · Decay Centrality · Radiality Centrality · Gil-Schmidt Centrality · Integration Centrality · Eccentricity Centrality · Ineccentricity Centrality · Outeccentricity Centrality · Closeness Vitality · Entropy Centrality · Centroid Centrality · Distance Entropy · Local Dimension · Local Information Dimensionality · Access Information · Hide Information · Local Dimension, Fixed Radius · Fuzzy Local Dimension · Local Volume Dimension · Heatmap Centrality · Geodesic k-path · k-path Census · Distance-weighted Fragmentation · Geodesic Power Closeness

Shortest-path brokerage and flow

Randomized shortest paths (RSP) betweenness · Relative-entropy integrated evaluation · DK-based gravity model · Mixed gravitational centrality · Extended mixed gravitational centrality · Localized bridging centrality · Extended local bridging centrality · Proximal betweenness · RCFB (resized current-flow betweenness) · Mapping entropy betweenness (MEB) · Betweenness Centrality · Stress Centrality · Load Centrality · Length-scaled Betweenness · Distance-decayed Betweenness · Ego Betweenness · Bottleneck Centrality · Bridging Centrality · Local bridging (legacy degree product) · Percolation Centrality · Flow Betweenness Centrality · Current-Flow Betweenness Centrality · Current-Flow Closeness Centrality · Entropy Variation, Betweenness

Spectral, walk and influence

Trust-PageRank · Iterative resource allocation (IRA) · Improved iterative resource allocation (IIRA) · Multi-characteristics gravity model · SpectralRank · ControlRank · Node and Neighbor Layer Information · Expected Force · Modified Expected Force · Bridging capital · LineRank · Random walk decay · Graph regularization centrality · Adaptive LeaderRank · Weighted LeaderRank · TOPSIS centrality · All-around score · Multi-evidence centrality (MeC) · Analytic Hierarchy Process (AHP) centrality · Semi-local iterative algorithm (semi-IA) · Synthesize centrality (SC) · Inward accessibility · PhysarumSpreader · ArticleRank · Entropy-based gravity model · Node Resistance Curvature · Dynamics-Sensitive Centrality · Finite-Horizon Diffusion Centrality · Dynamical Importance · Eigenvector Centrality · PageRank Centrality · Authority Centrality · Hub Centrality · SALSA Centrality · LeaderRank Centrality · Alpha Centrality · Bonacich Power Centrality · Katz Centrality · Hubbell Centrality · Subgraph Centrality · Laplacian Centrality · Communicability Centrality · Communicability Betweenness Centrality · Random Walk Centrality · Markov Centrality · TOPSIS with relative entropy (TOPSIS-RE) · Hybrid centrality · Long-range interaction centrality (LRIC, maximal path) · All cycle betweenness · Transportation centrality · Path-transfer centrality · Counting betweenness · Dynamical spanning tree (DST) centrality · NWRank · Biased random walk centrality · X-nonbacktracking centrality · Total Effects Centrality (TEC) · Mediative Effects Centrality (MEC) · Immediate Effects Centrality (IEC) · Second-Order Centrality · Information Centrality · Nonbacktracking Centrality · Diffusion Degree · Infection Centrality · Edge Percolated Component · VoteRank Centrality · Expected Influence 1-Step · Expected Influence 2-Step · Spanning Tree Centrality · Shapley Value, Game 1 · Shapley Value, Game 2 · Shapley Value, Game 3 · Rumor Centrality · DegreeDiscountIC · SingleDiscount · NCVoteRank · WVoteRank · EnRenew · VoteRank++ · Node Contraction · Improved Node Contraction · Two-Way Random Walk Betweenness

Neighbourhood structure and cohesion

Degree and importance of lines (DIL) · Lhc index · Hybrid characteristic centrality (HCC) · Extended hybrid characteristic centrality (EHCC) · KED method · Local neighbor contribution (LNC) · Neighborhood (neighbor distance) centrality · Coleman-Theil hierarchy · RMD-weighted degree (WD) · Extended RMD-weighted degree (EWD) · Modified local centrality (MLC) · ProfitLeader · Hierarchical k-shell (HKS) · Diversity-strength centrality (DSC) · Diversity-strength ranking (DSR) · Extended diversity-strength ranking (EDSR) · Local structural centrality (LSC) · Global and local structure (GLS) · K-shell iteration factor (KS-IF) · NL centrality · K-shell hybrid method (ksh) · Extended k-shell hybrid method (ESKH) · Improved k-shell hybrid method (IKH) · Extended improved k-shell hybrid method (EIKH) · Mixed core, degree and entropy (MCDE) · Mixed core, degree and weighted entropy (MCDWE) · Mixed core, semi-local degree and entropy (MCSDE) · Mixed core, semi-local degree and weighted entropy (MCSDWE) · Degree and clustering coefficient (DCC) · Edge clustering coefficient centrality (NC) · Influence capability (IC) · Extended H-index centrality (EHC) · Entropy-Based Ranking Measure (ERM) · Shell clustering coefficient · Extended Cluster Coefficient Ranking Measure (ECRM) · M-centrality · Weighted k-shell degree neighborhood (Wksd) · Maximal Clique Centrality · Node Truss Number · Mixed Degree Decomposition · Bridging Coefficient · Godfather Index · Supported Relationships · Transitivity Centrality · Constraint Centrality · Effective Size Centrality · Topological Coefficient Centrality · Diversity Centrality · Cross-Clique Centrality · Coreness Centrality · Onion Centrality · K-Reach Centrality · s-shell Index · Weighted k-shell · Renewed Coreness · s-core Index · Local Efficiency

Directed prestige and hierarchy

BG-index (beta power) · Prestige Domain Centrality · Prestige Domain Proximity Centrality · Local Reaching Centrality · Pairwise Disconnectivity Centrality · Trophic Level Centrality

Community and group-based

Map equation centrality · Participation Coefficient · Within-Module Z Centrality · Gateway Centrality · Brokerage Coordinator Centrality · Brokerage Itinerant Centrality · Brokerage Representative Centrality · Brokerage Gatekeeper Centrality · Brokerage Liaison Centrality · Modularity Vitality · Community Hub-Bridge · Community-Based Centrality · Comm Centrality · Community-Based Mediator

Degree, strength and local connectivity

X-degree

Nonbacktracking four-edge walks centered at each node.

Xdeg(i)=[∑j∈N(i)(dj−1)]2−∑j∈N(i)(dj−1)2 Xdeg(i)=\left[\sum_{j\in N(i)}(d_j-1)\right]^2-\sum_{j\in N(i)}(d_j-1)^2

Meaning. A high value indicates a node at the centre of many non-backtracking four-step walks, a sign that its neighbours connect it to the wider network. Isolates, leaves and every node of a star score zero.

Arguments. normalized

centrality_x_degree(student_interactions)

Clustering Degree Algorithm

Degree and strength adjusted by Barrat weighted clustering, plus weighted contributions from immediate neighbors.

PCi=CDi+∑jwijwmaxCDj,CDi=αdi+(1−α)si1+e−Ciw PC_i=CD_i+\sum_j\frac{w_{ij}}{w_{\max}}CD_j,\quad CD_i=\frac{\alpha d_i+(1-\alpha)s_i}{1+e^{-C_i^w}}

Meaning. A high value indicates a node that is well connected and clustered, with neighbours that are too. cda_alpha (default 0.5) balances degree against strength. Because weights enter directly, their units matter.

Arguments. cda_alpha, weighted, simplify

centrality_cda(student_interactions)

Weighted formal concept analysis (WFCA)

Find every group of nodes together with the full set of targets they all point to, and credit each target with the size of the group divided by the number of targets.

Wi=∑(T,P):i∈P|T||P| W_i=\sum_{(T,P):\,i\in P}\frac{|T|}{|P|}

Meaning. A high value indicates a node that many groups of nodes have in common as a target, most of all when it is one of few such common targets. The number of such groups can grow very fast with the size of the network; past enumeration_limit of them the measure returns NA with a warning.

Arguments. enumeration_limit, normalized

centrality_wfca(student_interactions)

Node importance evaluation matrix (NIEM)

Multiply how close a node is to everyone else by how well-connected and close its neighbours are.

Ci=Ii∑j∈N(i)DjIj⟨k⟩2,Ik=1n∑i≠k1dki C_i=I_i\sum_{j\in N(i)}\frac{D_jI_j}{\langle k\rangle^{2}},\qquad I_k=\frac{1}{n}\sum_{i\neq k}\frac{1}{d_{ki}}

Meaning. A high value indicates a node that reaches the rest of the network in few steps and whose neighbours have many ties and do the same. Pairs with no path between them add nothing. Isolated nodes score zero.

Arguments. normalized

centrality_niem(student_interactions)

Improved k-shell decomposition (IKSD)

Peel the network one layer at a time, each time removing only the nodes with the fewest remaining ties, and record the round in which each node goes.

IKSD(i)=iteration in which i is removed IKSD(i)=\text{iteration in which } i \text{ is removed}

Meaning. A high value indicates a node removed late, deep inside the network. Because only the lowest-degree nodes leave in each round, nodes that share a k-shell usually get different values. Isolated nodes form the first round.

Arguments. normalized

centrality_iksd(student_interactions)

K-shell based gravity centrality (KSGC)

A gravity model with the degree as mass, in which the pull of a node on another grows with the difference of their k-shell indices. Only nodes within half the average path length count.

KSGC(i)=∑j:dij≤⟨d⟩/2exp⁡(ksi−ksjksmax−ksmin)kikjdij2 KSGC(i)=\sum_{j:\,d_{ij}\le\langle d\rangle/2}\exp\!\Bigl(\frac{ks_i-ks_j}{ks_{max}-ks_{min}}\Bigr)\frac{k_i k_j}{d_{ij}^{2}}

Meaning. A high value indicates a well-connected node in a deeper shell than the well-connected nodes near it. The radius is not rounded, so on a network whose average path length is below 2 every score is 0; the measure suits large sparse networks.

Arguments. normalized

centrality_ksgc(student_interactions)

Classified neighbors centrality

Count a node’s neighbours in four classes by where they stand in the k-shell decomposition, a higher shell, the same shell removed at the same step or later, the same shell removed earlier, or a lower shell, and weight the four counts.

kCN(i)=αeu+βeeu+γeel+μel k_{CN}(i)=\alpha\,e_u+\beta\,e_{eu}+\gamma\,e_{el}+\mu\,e_l

Meaning. A high value indicates a node with many neighbours that lie as deep in the network as it does, or deeper. With equal weights it is the degree. The default weights are (0.4, 0.35, 0.25, 0.1).

Arguments. cn_weights, normalized

centrality_classified_neighbors(student_interactions)

Hybrid degree centrality

Blend the degree with the modified local centrality, in a proportion set by the spreading probability of the process the ranking is meant for.

HC(v)=(β−p)αkv+pMLC(v) HC(v)=(\beta-p)\,\alpha\,k_v+p\,MLC(v)

Meaning. A high value indicates a node with many ties when the spreading probability hc_p is low, and a node with wide two-step surroundings when it is high. hc_p has no default and must be given; without it the measure returns NA with a warning.

Arguments. hc_p, hc_alpha, hc_beta, normalized

centrality_hybrid_degree(student_interactions, hc_p = 0.05)

Effective gravity model (EGM)

A gravity model in which the mass of a node is its degree times the entropy of the degrees around it, and each node has its own radius, set by its eccentricity and by the degree of the nodes farthest from it.

EGM(i)=∑j≠i:dij≤RiViVjdij2,Vi=Iiki,Ri=ecci1+k‾far/ki EGM(i)=\sum_{j\ne i:\,d_{ij}\le R_i}\frac{V_iV_j}{d_{ij}^{2}},\qquad V_i=I_ik_i,\qquad R_i=\frac{ecc_i}{1+\sqrt{\bar{k}_{far}/k_i}}

Meaning. A high value indicates a well-connected node with well-connected nodes inside its radius. A node whose radius is below 1 scores 0. It needs a connected network; otherwise every node returns NA with a warning.

Arguments. normalized

centrality_egm(student_interactions)

Entropy-based social influence

Count two nodes as friends when each has interacted with the other. The direct influence of a node mixes the logarithm of its number of friends with the entropy of how its outgoing interactions are spread over them; its indirect influence is passed on to the friends of its friends.

Ii=ωDIi+(1−ω)IIi,DIi=αlog⁡10ni+(1−α)Hi I_i=\omega\,DI_i+(1-\omega)\,II_i,\qquad DI_i=\alpha\log_{10}n_i+(1-\alpha)\,H_i

Meaning. A high value indicates a node with many mutual ties, evenly used, whose friends are themselves influential. It uses direction and weights; on a directed network without mutual ties every score is 0. The measure is that of Peng et al. (2017). It is not a Centrality Zoo label: the Zoo’s improved entropy-based centrality is the measure of Ni et al. (2020), improved_entropy.

Arguments. ei_alpha, ei_omega, weighted, normalized

centrality_entropy_influence(student_interactions)

Weight degree centrality (Wdc)

Count the two-step walks out of a node that do not come straight back, and multiply by its degree raised to the absolute degree assortativity of the network.

Wdc(i)=(∑j∈N(i)kj−ki)kiα,α=|r| Wdc(i)=\Bigl(\sum_{j\in N(i)}k_j-k_i\Bigr)k_i^{\alpha},\qquad \alpha=|r|

Meaning. A high value indicates a node whose neighbours have many other ties. With wdc_alpha = 0 it is the common-neighbour score con; on a regular network the assortativity is undefined and the exponent is 0.

Arguments. wdc_alpha, normalized

centrality_wdc(student_interactions)

Extended weight degree centrality (EWdc)

Apply the weight degree construction once more, to the weight degree centrality of the neighbours.

EWdc(i)=(∑j∈N(i)Wdc(j)−Wdc(i))Wdc(i)α EWdc(i)=\Bigl(\sum_{j\in N(i)}Wdc(j)-Wdc(i)\Bigr)Wdc(i)^{\alpha}

Meaning. A high value indicates a node whose neighbours score high on weight degree centrality. The score can be negative, for instance at the leaves of a star.

Arguments. wdc_alpha, normalized

centrality_ewdc(student_interactions)

Mapping entropy (ME)

Take the degree centrality of a node, the degree divided by one less than the number of nodes, and multiply it by minus the sum of the logarithms of its neighbours’ degree centralities.

MEi=−DCi∑j∈N(i)log⁡DCj,DCi=kiN−1 ME_i=-DC_i\sum_{j\in N(i)}\log DC_j,\qquad DC_i=\frac{k_i}{N-1}

Meaning. A high value indicates a well-connected node whose neighbours have few ties relative to the network. The source does not define its degree centrality; the usual normalised degree is used, and the raw degree of the Centrality Zoo reverses the ranking. local_entropy is a different equation of the same source.

Arguments. normalized

centrality_mapping_entropy(student_interactions)

Improved entropy-based centrality

Mix the entropy of how a node’s tie weights are spread over its neighbours with the entropy of their degrees raised to a power, and add an indirect part passed on to the nodes two steps away.

Ii=12DIi+12IIi,DIi=12H(pi⋅)+12H(Ti⋅),Tij=kjβ∑l∈N(i)klβ I_i=\tfrac12 DI_i+\tfrac12 II_i,\qquad DI_i=\tfrac12 H(p_{i\cdot})+\tfrac12 H(T_{i\cdot}),\qquad T_{ij}=\frac{k_j^{\beta}}{\sum_{l\in N(i)}k_l^{\beta}}

Meaning. A high value indicates a node with evenly used ties to neighbours of varied degree, whose own neighbours are influential. It uses weights and is NA with a warning on a directed network. This is the measure of Ni et al. (2020); Peng et al.’s measure is entropy_influence.

Arguments. ie_beta, weighted, normalized

centrality_improved_entropy(student_interactions)

Weight neighborhood centrality

Add to the degree (or coreness) of a node those of its neighbours, each weighted by the product of the two degrees relative to the average edge.

Ci=ϕi+∑j∈N(i)wij⟨w⟩ϕj,wij=(kikj)α C_i=\phi_i+\sum_{j\in N(i)}\frac{w_{ij}}{\langle w\rangle}\phi_j,\qquad w_{ij}=(k_ik_j)^{\alpha}

Meaning. A high value indicates a node of high degree (or coreness) tied to other such nodes by important edges. The average edge importance is taken over the whole network.

Arguments. wnc_benchmark, wnc_alpha, normalized

centrality_weight_neighborhood(student_interactions)

Density centrality

Spread a node’s degree over discs whose radii are its distances to the nodes around it, and add up the densities.

DNC(i)=∑j:1≤dij≤rkiπdij2 DNC(i)=\sum_{j:\,1\le d_{ij}\le r}\frac{k_i}{\pi d_{ij}^{2}}

Meaning. A high value indicates a node with many ties that has many other nodes close by. density_radius (default 3) is the largest distance counted; Inf counts every node that can be reached.

Arguments. density_radius, normalized

centrality_density_centrality(student_interactions)

Weighted k-shell degree neighborhood (WKSDN)

Weigh each tie by the k-shell indices and the degrees of its two ends, and add up the weights of a node’s ties.

WKSDN(i)=∑j∈N(i)[(ksi+ksj)+λ(ki+kj)],λ=∑lksl∑lkl WKSDN(i)=\sum_{j\in N(i)}\bigl[(ks_i+ks_j)+\lambda(k_i+k_j)\bigr],\qquad \lambda=\frac{\sum_l ks_l}{\sum_l k_l}

Meaning. A high value indicates a node with many ties, in a dense core, to neighbours that are well connected and in the core as well.

Arguments. normalized

centrality_wksdn(student_interactions)

Mu-power community index

Find the largest number k such that enough nodes near the node, at least mu times k of them within mu steps, have k ties or more.

μ-PCI(i)=max⁡{k:|{j:1≤dij≤μ,kj≥k}|≥μk} \mu\text{-}PCI(i)=\max\{k:\;|\{j:\,1\le d_{ij}\le\mu,\;k_j\ge k\}|\ge\mu k\}

Meaning. A high value indicates a node surrounded by many well-connected nodes, a sign of a dense community around it. With pci_mu = 1 (the default) only direct neighbours count and the index equals lobby.

Arguments. pci_mu, normalized

centrality_mu_pci(student_interactions)

Global importance of nodes (GIN)

Sum the degrees of all other nodes, each divided by its distance from the node, and scale the result by a factor that grows with the node’s own degree.

GIN(i)=eαki/n∑j≠ikjdij GIN(i)=e^{\alpha k_i/n}\sum_{j\neq i}\frac{k_j}{d_{ij}}

Meaning. A high value indicates a well-connected node that is close to the well-connected nodes of the whole network, not only to its neighbours. gin_alpha (default 1) sets how much the node’s own degree counts. Nodes that cannot be reached add nothing, and isolated nodes score zero.

Arguments. gin_alpha, normalized

centrality_gin(student_interactions)

Icentr

Count every tie in the node’s part of the network, halving the count of a tie for each further step it lies from the node.

Icentr(i)=∑e2−(lev(e)−1) Icentr(i)=\sum_{e}2^{-(lev(e)-1)}

Meaning. A high value indicates a node with many ties close by: its own ties count fully, ties among its neighbours and one step further count half, and so on. It combines degree with nearness to the dense parts of the network.

Arguments. normalized

centrality_icentr(student_interactions)

Global and local information (GLI)

Give every node a mass that combines its degree, its k-shell and how late it is peeled off the network, and add up the masses within a few steps, nearer nodes counting more.

Ii=exp⁡[Iksi+DCi∑l(Iksl+DCl)]∑j:1≤dij≤rIksj+DCjdij,Iks=ks+nit I_i=\exp\Bigl[\frac{Iks_i+DC_i}{\sum_l(Iks_l+DC_l)}\Bigr]\sum_{j:\,1\le d_{ij}\le r}\frac{Iks_j+DC_j}{d_{ij}},\qquad Iks=ks+nit

Meaning. A high value indicates a node surrounded, within gli_radius steps (default 3), by well-connected nodes that sit deep in the core of the network. The node’s own mass enters as a mild multiplier. Isolated nodes score zero.

Arguments. gli_radius, normalized

centrality_gli(student_interactions)

KDEC method

Give each node a weight, its core number times its degree, and add up the pull it exchanges with the nodes one and two steps away, where reaching a well-connected node counts as a longer step.

KDEC(i)=W(i)n[∑j∈N(i)W(j)eij2+∑j∈N(i)∑k∈N(j),k≠i,k∉N(i)W(k)(eij+ejk)2],W(v)=ks(v)d(v),eij=1−log⁡101dj KDEC(i)=\frac{W(i)}{n}\Bigl[\sum_{j\in N(i)}\frac{W(j)}{e_{ij}^{2}}+\sum_{j\in N(i)}\sum_{k\in N(j),\,k\neq i,\,k\notin N(i)}\frac{W(k)}{(e_{ij}+e_{jk})^{2}}\Bigr],\qquad W(v)=k_s(v)\,d(v),\quad e_{ij}=1-\log_{10}\frac{1}{d_j}

Meaning. A high value indicates a well-connected node in a dense core whose surroundings, up to two steps away, are also well connected and in the core. A node two steps away counts once for every neighbour that leads to it. The score is divided by the number of nodes of the whole network.

Arguments. normalized

centrality_kdec(student_interactions)

Common out-neighbor (CON) score

Count the targets a node has in common with every other node: the nodes it sends ties to that some other node also sends ties to.

CON(u)=∑v≠u∑kmin⁡(Auk,Avk) CON(u)=\sum_{v\neq u}\sum_{k}\min(A_{uk},A_{vk})

Meaning. A high value indicates a node with many competitors, nodes that direct their ties at the same targets. On an undirected network it is the sum of the neighbours’ degrees, each less one. With weights read as numbers of interactions, the smaller of the two counts.

Arguments. weighted, normalized

centrality_con(student_interactions)

Entropy and mutual information-based centrality (EMI)

Combine how evenly the degrees of a node’s neighbours are spread with how many neighbours it shares with each of them.

Ki=Si+MIi,Si=−∑j∈NidjEXDilog⁡10djEXDi,MIi=∑j∈Nicijdi+djlog⁡10di+dj−cijdi+dj K_i=S_i+MI_i,\qquad S_i=-\sum_{j\in N_i}\frac{d_j}{EXD_i}\log_{10}\frac{d_j}{EXD_i},\qquad MI_i=\sum_{j\in N_i}\frac{c_{ij}}{d_i+d_j}\log_{10}\frac{d_i+d_j-c_{ij}}{d_i+d_j}

Meaning. A high value indicates a node with many neighbours of similar degree that share few contacts with it. The entropy term grows with the number and evenness of neighbours; the mutual information term is zero or negative and lowers the score of nodes inside triangles. Isolated nodes and nodes with one neighbour score zero.

Arguments. normalized

centrality_emi(student_interactions)

Improved neighbors’ k-core (INK)

Add up the core numbers of a node’s neighbours, each raised to a power that sets how much a neighbour in a high core counts.

S(i)=∑j∈J(i)ks(j)α S(i)=\sum_{j\in J(i)}k_s(j)^{\alpha}

Meaning. A high value indicates a node whose neighbours sit in dense cores of the network, which separates nodes that share one core number. ink_alpha is 1 by default, the sum of the neighbours’ core numbers; at 0 the score is the degree, and larger values weight high-core neighbours more. The node’s own core number is not counted and isolates score zero.

Arguments. ink_alpha, normalized

centrality_ink(student_interactions)

Extended Neighborhood Coreness

The sum of neighbors’ neighborhood-coreness scores, using core numbers from the original simple undirected graph.

Cnc+(i)=∑j∈N(i)∑l∈N(j)ks(l)=(A2ks)i C_{nc+}(i)=\sum_{j\in N(i)}\sum_{l\in N(j)}k_s(l)=(A^2 k_s)_i

Meaning. Rewards access to core-rich neighborhoods. Every length-two walk contributes, including returns to the focal node and multiple walks reaching the same endpoint. Isolates score zero; on a regular graph of degree d it equals d cubed. Other inputs are projected to the simple undirected skeleton.

centrality_extended_coreness(student_interactions)

Malatya Centrality

The sum of a node’s degree divided by each neighbour’s degree, calculated on the original simple undirected graph.

M(i)=∑j∈N(i)didj M(i)=\sum_{j\in N(i)}\frac{d_i}{d_j}

Meaning. Favours nodes with many low-degree neighbours. Isolates score zero. On nonisolated vertices the score is exactly the reciprocal of the bridging coefficient; on a regular graph it equals degree.

centrality_malatya(student_interactions)

Volume Centrality

The total original-graph degree inside a closed hop neighbourhood, including its centre.

Vr(i)=∑j:d(i,j)≤r,d(i,j)<∞kj V_r(i) = \sum_{j:\,d(i,j)\leq r,\ d(i,j)<\infty} k_j

Meaning. Measures connectivity within and leaving the neighbourhood. Radius 0 gives degree, default 2 uses two hops, and infinite radius gives twice the component’s edge count. Uses the simple undirected skeleton.

Arguments. volume_radius

centrality_volume(student_interactions)

Degree Centrality

Degree centrality counts the number of direct ties incident on a node. In directed graphs, it can be separated into incoming and outgoing ties.

CD(v)=∑u∈Vavu=kv C_D(v) = \sum_{u \in V} a_{vu} = k_v

Meaning. A high degree value indicates many direct observed connections. It is a local measure of connectivity.

Arguments. mode, loops

centrality_degree(student_interactions)

Indegree Centrality

Indegree counts ties pointing into a node under a directed interpretation.

kvin=∑u∈Vauv k_v^{\mathrm{in}} = \sum_{u \in V} a_{uv}

Meaning. A high indegree value indicates many incoming observed ties. Its substantive meaning depends on what edge direction represents.

centrality_indegree(student_interactions)

Outdegree Centrality

Outdegree counts ties leaving a node under a directed interpretation.

kvout=∑u∈Vavu k_v^{\mathrm{out}} = \sum_{u \in V} a_{vu}

Meaning. A high outdegree value indicates many outgoing observed ties. In transition networks, this can mean many possible next states.

centrality_outdegree(student_interactions)

Strength Centrality

Strength centrality is weighted degree: it sums edge weights instead of counting edges.

s(v)=∑u∈Vwvu s(v) = \sum_{u \in V} w_{vu}

Meaning. A high strength value indicates high total incident edge weight. This should be interpreted according to how weights were defined.

Arguments. mode

centrality_strength(student_interactions)

Instrength Centrality

Instrength sums incoming edge weights.

sin(v)=∑u∈Vwuv s^{\mathrm{in}}(v) = \sum_{u \in V} w_{uv}

Meaning. A high instrength value indicates high total incoming weight. It is a weighted incoming-connectivity measure.

centrality_instrength(student_interactions)

Outstrength Centrality

Outstrength sums outgoing edge weights.

sout(v)=∑u∈Vwvu s^{\mathrm{out}}(v) = \sum_{u \in V} w_{vu}

Meaning. A high outstrength value indicates high total outgoing weight. Diversity describes how that weight is spread across ties.

centrality_outstrength(student_interactions)

Expected Centrality

Expected centrality sums the degrees of a node’s neighbours.

Cexp(v)=∑u∈N(v)ku C_{\mathrm{exp}}(v) = \sum_{u \in N(v)} k_u

Meaning. A high value indicates adjacency to well-connected nodes.

Arguments. mode

centrality_expected(student_interactions)

Leverage Centrality

Leverage centrality compares a node’s degree with the degrees of its neighbours.

ℓ(v)=1kv∑u∈N(v)kv−kukv+ku \ell(v) = \frac{1}{k_v} \sum_{u \in N(v)} \frac{k_v - k_u}{k_v + k_u}

Meaning. A positive high value indicates that the node is more connected than its neighbours under this degree comparison.

Arguments. mode

centrality_leverage(student_interactions)

Lobby Centrality

Lobby centrality is the h-index of neighbour degrees.

h(v)=max⁡{h:|{u∈{v}∪N(v):ku≥h}|≥h} h(v) = \max\bigl\{ h : |\{ u \in \{v\} \cup N(v) : k_u \ge h \}| \ge h \bigr\}

Meaning. A high value indicates many neighbours that themselves have reasonably high degree.

Arguments. mode

centrality_lobby(student_interactions)

H-Index Strength Centrality

H-index strength is a weighted h-index-style neighbourhood measure.

hs(v)=max⁡{h:|{u∈{v}∪N(v):s(u)≥h}|≥h} h_s(v) = \max\bigl\{ h : |\{ u \in \{v\} \cup N(v) : s(u) \ge h \}| \ge h \bigr\}

Meaning. A high value indicates strong ties to neighbours meeting a weighted connectivity threshold.

Arguments. mode

centrality(student_interactions, measures = "hindex_strength")

Local H-Index Centrality

Local h-index centrality iteratively applies h-index logic to local neighbourhoods.

h(t+1)(v)=ℋ({h(t)(u):u∈N(v)}),h(0)(v)=kv h^{(t+1)}(v) = \mathcal{H}\bigl(\{ h^{(t)}(u) : u \in N(v) \}\bigr), \quad h^{(0)}(v) = k_v

Meaning. A high value indicates a locally robust neighbourhood position under the h-index updating rule.

centrality(student_interactions, measures = "local_hindex")

Semi-Local Centrality

Semi-local centrality extends degree-like counting beyond immediate neighbours.

CSL(v)=∑u∈N(v)∑w∈N(u)|{x:d(w,x)≤2}| C_{SL}(v) = \sum_{u \in N(v)} \sum_{w \in N(u)} \bigl| \{\, x : d(w, x) \le 2 \,\} \bigr|

Meaning. A high value indicates proximity to a locally well-connected neighbourhood.

Arguments. mode

centrality_semilocal(student_interactions)

ClusterRank Centrality

ClusterRank combines neighbour degree information with local clustering.

CCR(v)=c(v)∑u∈N(v)(ku+1),c(v)=local clustering coefficient C_{CR}(v) = c(v) \sum_{u \in N(v)} \bigl( k_u + 1 \bigr), \quad c(v) = \text{local clustering coefficient}

Meaning. A high value indicates local connectedness adjusted for clustering-related redundancy.

Arguments. mode

centrality_clusterrank(student_interactions)

Collective Influence Centrality

Collective influence combines a node’s excess degree with excess degree on a local boundary.

CIℓ(v)=(kv−1)∑u∈∂B(v,ℓ)(ku−1),ℓ=2 \mathrm{CI}_\ell(v) = (k_v - 1) \sum_{u \,\in\, \partial B(v, \ell)} (k_u - 1), \quad \ell = 2

Meaning. A high value indicates potential importance under the collective influence model.

centrality(student_interactions, measures = "collective_influence")

MNC Centrality

Maximum neighbourhood component centrality is the size of the largest connected component in a node’s neighbourhood.

MNC(v)=maxC∈𝒞(G[N(v)])|C| \mathrm{MNC}(v) = \max_{C \,\in\, \mathcal{C}(G[N(v)])} |C|

Meaning. A high value indicates that many neighbours belong to one connected local component.

Arguments. mode

centrality_mnc(student_interactions)

DMNC Centrality

DMNC is a density-adjusted version of maximum neighbourhood component centrality.

DMNC(v)=EcNcε,ε=1.7 \mathrm{DMNC}(v) = \frac{E_c}{N_c^{\,\varepsilon}}, \quad \varepsilon = 1.7

Meaning. A high value indicates a large and dense local neighbour component under the chosen density exponent. Here EcE_c and NcN_c are the edges and nodes of the largest component of G[N(v)]G[N(v)].

Arguments. mode, dmnc_epsilon

centrality_dmnc(student_interactions)

LAC Centrality

LAC, or local average connectivity, measures connectivity in a node’s neighbourhood.

LAC(v)=1kv∑u∈N(v)deg⁡G[N(v)](u) \mathrm{LAC}(v) = \frac{1}{k_v} \sum_{u \in N(v)} \deg_{G[N(v)]}(u)

Meaning. A high value indicates that the node’s neighbours form a relatively connected local structure.

Arguments. mode

centrality_lac(student_interactions)

Gravity Centrality

Gravity centrality treats each node’s mass as attracting the mass of others over graph distance, and can be truncated at a radius.

G(v)=∑u≠v,d(u,v)≤Rmvmud(u,v)2,m=k-shell or degree G(v) = \sum_{u \ne v,\; d(u,v) \le R} \frac{m_v\, m_u}{d(u, v)^2}, \quad m = \text{k-shell or degree}

Meaning. A high value indicates proximity to massive nodes. By default mass is the k-shell and only nodes within three steps contribute; gravity_mass = "degree", gravity_radius = NULL gives the degree-based gravity model over all reachable nodes, and gravity_radius = "auto" sets the radius from the network.

Arguments. mode, gravity_mass, gravity_radius

centrality_gravity(student_interactions)

Neighborhood Connectivity

Neighborhood connectivity is the mean degree of a node’s neighbours (average neighbour degree).

CNC(v)=1kv∑u∈N(v)ku C_{NC}(v) = \frac{1}{k_v} \sum_{u \in N(v)} k_u

Meaning. A high value indicates attachment to hubs. Isolates score 0. Direction is respected under mode.

Arguments. mode

Entropy Variation, Degree

Entropy variation is the drop in the Shannon entropy of the degree distribution when the node and its links are removed.

EnVk(i)=Ik(G)−Ik(G−i),Ik(G)=−∑jkj∑lklln⁡kj∑lkl EnV_k(i) = I_k(G) - I_k(G - i), \quad I_k(G) = -\sum_j \frac{k_j}{\sum_l k_l} \ln \frac{k_j}{\sum_l k_l}

Meaning. A high value indicates a node whose removal makes the remaining degree distribution more concentrated. Signed; negative values occur.

Arguments. mode

centrality(student_interactions, measures = "entropy_variation_degree")

Flow Coefficient

The flow coefficient is the share of a node’s neighbour pairs that are connected only through the node.

fc(v)=|{(j,k):j→v→k,j↛k}|kv(kv−1) fc(v) = \frac{|\{(j, k) : j \to v \to k,\ j \not\to k\}|}{k_v (k_v - 1)}

Meaning. A high value indicates a node that mediates local flow. On an undirected graph it equals one minus the clustering coefficient.

centrality_flow_coefficient(student_interactions)

Local Entropy

Local entropy sums −klog⁡k-k \log k over a node’s neighbours.

LE(v)=−∑u∈N(v)kuln⁡ku LE(v) = -\sum_{u \in N(v)} k_u \ln k_u

Meaning. Always non-positive; a lower (more negative) value indicates a larger, denser neighbourhood. Isolates score 0.

Arguments. mode

centrality_local_entropy(student_interactions)

Weighted h-index

The weighted h-index takes the h-index over topological link weights, each neighbour’s weight repeated by its degree.

hvw=H({kvku repeated ku times:u∈N(v)}) h^w_v = H\big(\{k_v k_u \text{ repeated } k_u \text{ times} : u \in N(v)\}\big)

Meaning. A high value indicates a node with many well-connected neighbours. Input edge weights are ignored.

Arguments. mode

centrality_weighted_h_index(student_interactions)

Redundancy

Redundancy is the mean degree of a node’s neighbours inside its ego network.

r(v)=2tvkv=kv−effective size(v) r(v) = \frac{2 t_v}{k_v} = k_v - \text{effective size}(v)

Meaning. A high value indicates neighbours that are connected to each other, so fewer structural holes.

centrality_redundancy(student_interactions)

Distance and closeness

Improved Global Structure Model

Focal degree influence combined with degrees of reachable partners and a distance exponent set by global mean degree.

IGSMi=eki/N∑j≠ikjdija,a=⌈log⁡2k¯⌉ IGSM_i=e^{k_i/N}\sum_{j\ne i}\frac{k_j}{d_{ij}^{a}},\quad a=\lceil\log_2\overline{k}\rceil

Meaning. A high value indicates a high-degree node lying close to other high-degree nodes. The distance penalty is set from the network’s mean degree, so it is steeper in denser networks. Only reachable nodes contribute.

Arguments. normalized

Global Structure Model

Focal coreness combined with distance-discounted coreness of all reachable partners.

GSMi=eks(i)/N∑j≠iks(j)dij GSM_i=e^{k_s(i)/N}\sum_{j\ne i}\frac{k_s(j)}{d_{ij}}

Meaning. A high value indicates a node in the network’s core that lies close to many other core nodes. Every reachable node contributes, discounted by distance. Isolates score zero.

Arguments. normalized

centrality_global_structure(student_interactions)

Hybrid Global Structure Model

Exponential degree-coreness influences with a distance penalty set by their global mean.

si=eks(i)ki/N,a=⌈log⁡2s¯⌉,HGSMi=si∑j≠isjdija s_i=e^{k_s(i)k_i/N},\quad a=\lceil\log_2\overline{s}\rceil,\quad H\!GSM_i=s_i\sum_{j\ne i}\frac{s_j}{d_{ij}^{a}}

Meaning. A high value indicates a node that combines high degree and coreness and lies close to other such nodes. The distance penalty is set from the network’s average of these combined masses. Only reachable nodes contribute.

Arguments. normalized

Exogenous Centrality

Contribution of a node to the base centrality of all other nodes, measured by deleting it.

Ei=∑j≠i[CG(j)−CG−i(j)] E_i=\sum_{j\ne i}\left[C_G(j)-C_{G-i}(j)\right]

Meaning. A high value indicates a node that contributes much to the centrality of others: removing it lowers their centrality most. The base measure is set with exogenous_base (reverse closeness by default, or degree or betweenness). With betweenness, removing a node can raise other scores, so values can be negative.

Arguments. exogenous_base, mode, normalized

centrality_exogenous(student_interactions)

Improved Closeness Centrality

Closeness adjusted for the number of shortest paths connecting each pair of nodes.

ICCi=n−1∑j≠idij/σijα,0≤α≤1 ICC_i=\frac{n-1}{\sum_{j\ne i}d_{ij}/\sigma_{ij}^{\alpha}},\quad 0\le\alpha\le1

Meaning. A high value indicates a node that is close to others and joined to them by many shortest paths. icc_alpha (default 0.2) sets how much multiple shortest paths shorten the effective distance; at 0 the measure is ordinary closeness. Disconnected graphs score zero at every node.

Arguments. icc_alpha, normalized

centrality_improved_closeness(student_interactions)

Spreading probability (SP)

Count the shortest paths from a node to every node within a few steps, and divide each count by the mean degree of the network once per step.

SP(i)=∑j:1≤dij≤rσij⟨k⟩−dij SP(i)=\sum_{j:\,1\le d_{ij}\le r}\sigma_{ij}\langle k\rangle^{-d_{ij}}

Meaning. A high value indicates a node from which an infection, crossing each tie with probability one over the mean degree, reaches many nodes by many shortest routes. With sp_radius = 1 it is the degree divided by the mean degree.

Arguments. sp_radius, normalized

centrality_spreading_probability(student_interactions)

Node importance contribution correlation matrix (NICCM)

Let each node hand its efficiency to the nodes one and two steps away, shared in proportion to the efficiency each of them loses when the node is deleted. A node’s score is its own efficiency times what it receives.

Hj=Ij∑i:1≤dij≤nlδijIidij,Ii=1n∑p≠i1dip H_j=I_j\sum_{i:\,1\le d_{ij}\le n_l}\frac{\delta_{ij}I_i}{d_{ij}},\qquad I_i=\frac{1}{n}\sum_{p\ne i}\frac{1}{d_{ip}}

Meaning. A high value indicates an efficient node on which efficient nodes nearby depend. Costly: every node is deleted in turn and all distances are recomputed, so it is computed only when named.

Arguments. niccm_layers, normalized

centrality_niccm(student_interactions)

Correlation centrality

Add up the efficiency of the other nodes, each multiplied by the number of shortest paths to it and divided by a power of the distance.

CoC(i)=1n∑j≠iEC(j)σijdijα,EC(j)=1n∑k≠j1djk CoC(i)=\frac{1}{n}\sum_{j\ne i}EC(j)\frac{\sigma_{ij}}{d_{ij}^{\alpha}},\qquad EC(j)=\frac{1}{n}\sum_{k\ne j}\frac{1}{d_{jk}}

Meaning. A high value indicates a node close, by several shortest routes, to nodes that are themselves close to everyone. With the default coc_alpha = 3 the direct neighbours carry most of the score.

Arguments. coc_alpha, normalized

centrality_correlation_centrality(student_interactions)

Laplacian gravity centrality (LGC)

A gravity model: for every node within half the average path length, multiply the two nodes’ Laplacian centralities and divide by the squared distance.

LGC(i)=∑j≠i:dij≤⟨d⟩/2LC(i)LC(j)dij2,LC(i)=ki2+ki+2∑j∈N(i)kj LGC(i)=\sum_{j\ne i:\,d_{ij}\le\langle d\rangle/2}\frac{LC(i)\,LC(j)}{d_{ij}^{2}},\qquad LC(i)=k_i^2+k_i+2\sum_{j\in N(i)}k_j

Meaning. A high value indicates a node whose removal costs the network much Laplacian energy, near other such nodes. On a network whose average path length is below 2 every score is 0.

Arguments. normalized

centrality_lgc(student_interactions)

Weighted gravity model (WGravity)

Multiply the degree gravity model of a node, over the nodes within half the average path length, by the node’s entry of the unit-length leading eigenvector.

CWG(i)=∑j≠i:dij≤⟨d⟩/2eikikjdij2 C_{WG}(i)=\sum_{j\ne i:\,d_{ij}\le\langle d\rangle/2}\frac{e_i\,k_i\,k_j}{d_{ij}^{2}}

Meaning. A high value indicates a well-connected node near other well-connected nodes, in the part of the network the leading eigenvector picks out. On a network whose average path length is below 2 every score is 0.

Arguments. normalized

centrality_wgravity(student_interactions)

Average shortest path centrality (AC)

Remove the ties of a node, keep the node, and measure how much the average distance of the network grows, counting a pair that is cut off at the diameter of the original network.

AC(k)=|ASP(Gk′)−ASP(G)|ASP(G),ASP(G)=1N(N−1)∑i≠jdij AC(k)=\frac{|ASP(G'_k)-ASP(G)|}{ASP(G)},\qquad ASP(G)=\frac{1}{N(N-1)}\sum_{i\ne j}d_{ij}

Meaning. A high value indicates a node whose loss lengthens many routes or cuts many pairs apart. Without cut vertices it ranks nodes in exactly the opposite order to closeness vitality.

Arguments. normalized

centrality_asp_centrality(student_interactions)

Extended Gravity Centrality

The sum of immediate neighbors’ raw gravity scores, with k-shell masses and hop distances.

G+(i)=∑j∈N(i)∑l:0<d(j,l)≤rks(j)ks(l)d(j,l)2 G^+(i)=\sum_{j\in N(i)}\sum_{l:0<d(j,l)\le r}\frac{k_s(j)k_s(l)}{d(j,l)^2}

Meaning. A high value indicates a node whose neighbours have high gravity centrality. Because the radius (gravity_radius, default 3) is measured from each neighbour, contributions can come from one step beyond it.

Arguments. gravity_radius

centrality_extended_gravity(student_interactions)

Closeness Centrality

Closeness centrality summarises how short a node’s paths are to other reachable nodes.

CC(v)=1∑u≠vd(v,u) C_C(v) = \frac{1}{\sum_{u \ne v} d(v, u)}

Meaning. A high value indicates short graph distances to other nodes. In disconnected graphs, harmonic centrality may be easier to interpret.

Arguments. mode

centrality_closeness(student_interactions)

Incloseness Centrality

Incloseness computes closeness over incoming directed paths.

CCin(v)=1∑u≠vd(u,v) C_C^{\mathrm{in}}(v) = \frac{1}{\sum_{u \ne v} d(u, v)}

Meaning. A high value indicates that other nodes can reach the focal node through short directed paths.

centrality_incloseness(student_interactions)

Outcloseness Centrality

Outcloseness computes closeness over outgoing directed paths.

CCout(v)=1∑u≠vd(v,u) C_C^{\mathrm{out}}(v) = \frac{1}{\sum_{u \ne v} d(v, u)}

Meaning. A high value indicates that the focal node can reach other nodes through short directed paths.

centrality_outcloseness(student_interactions)

Harmonic Centrality

Harmonic centrality sums reciprocal shortest-path distances. Unreachable nodes contribute zero.

CH(v)=∑u≠v1d(v,u) C_H(v) = \sum_{u \ne v} \frac{1}{d(v, u)}

Meaning. A high value indicates broad reach through short paths while handling disconnected components more gracefully than classical closeness.

Arguments. mode

centrality_harmonic(student_interactions)

Inharmonic Centrality

Inharmonic centrality computes harmonic centrality over incoming directed paths.

CHin(v)=∑u≠v1d(u,v) C_H^{\mathrm{in}}(v) = \sum_{u \ne v} \frac{1}{d(u, v)}

Meaning. A high value indicates that the node is reachable from many others through short directed paths.

centrality_inharmonic(student_interactions)

Outharmonic Centrality

Outharmonic centrality computes harmonic centrality over outgoing directed paths.

CHout(v)=∑u≠v1d(v,u) C_H^{\mathrm{out}}(v) = \sum_{u \ne v} \frac{1}{d(v, u)}

Meaning. A high value indicates that many nodes can be reached from the focal node through short directed paths.

centrality_outharmonic(student_interactions)

Residual Closeness Centrality

Residual closeness sums 1/2d1 / 2^d over shortest-path distances (the focal node contributes 11).

CR(v)=∑u∈V2−d(v,u) C_R(v) = \sum_{u \in V} 2^{-d(v, u)}

Meaning. A high value indicates many close reachable nodes with rapid distance decay.

Arguments. mode

centrality_residual_closeness(student_interactions)

Dangalchev Closeness Centrality

Dangalchev closeness is the residual-closeness distance-decay measure.

CD(v)=∑u∈V2−d(v,u) C_D(v) = \sum_{u \in V} 2^{-d(v, u)}

Meaning. A high value indicates short-distance reach with distant nodes down-weighted.

Arguments. mode

centrality_dangalchev(student_interactions)

Generalized Closeness Centrality

Generalized closeness sums $\\alpha^d$, where dd is the shortest-path distance.

CG(v)=∑u∈Vαd(v,u),α=0.5 C_G(v) = \sum_{u \in V} \alpha^{\,d(v, u)}, \quad \alpha = 0.5

Meaning. A high value indicates reach under the chosen distance-decay parameter.

Arguments. mode, decay_parameter

centrality_generalized_closeness(student_interactions)

Harary Centrality

Harary centrality sums inverse squared shortest-path distances.

CHar(v)=∑u≠v1d(v,u)2 C_{\mathrm{Har}}(v) = \sum_{u \ne v} \frac{1}{d(v, u)^2}

Meaning. A high value indicates many nearby reachable nodes, with distant nodes strongly down-weighted.

Arguments. mode

centrality_harary(student_interactions)

Average Distance Centrality

Average distance centrality summarises mean shortest-path distance from a node (the focal node’s d=0d = 0 term is included; the centiserve convention divides by n+1n + 1).

d‾(v)=∑u∈Vd(v,u)n+1 \bar{d}(v) = \frac{\sum_{u \in V} d(v, u)}{n + 1}

Meaning. Lower values indicate shorter average graph distance. The direction of interpretation should be checked because it is a distance quantity.

Arguments. mode

centrality_average_distance(student_interactions)

Barycenter Centrality

Barycenter centrality is the inverse of the sum of shortest-path distances.

CBary(v)=1∑u≠vd(v,u) C_{\mathrm{Bary}}(v) = \frac{1}{\sum_{u \ne v} d(v, u)}

Meaning. A high value indicates a small total distance to other reachable nodes.

Arguments. mode

centrality_barycenter(student_interactions)

Wiener Centrality

Wiener centrality records total shortest-path distance from a node (unreachable pairs contribute zero).

W(v)=∑u≠vd(v,u) W(v) = \sum_{u \ne v} d(v, u)

Meaning. Lower values indicate shorter total distance. It is better read as distance burden than influence.

Arguments. mode

centrality_wiener(student_interactions)

Lin Centrality

Lin centrality combines reachable nodes and total distance to those nodes.

CLin(v)=|R(v)|2∑u∈R(v)d(v,u),R(v)={u≠v:d(v,u)<∞} C_{\mathrm{Lin}}(v) = \frac{|R(v)|^2}{\sum_{u \in R(v)} d(v, u)}, \quad R(v) = \{ u \ne v : d(v,u) < \infty \}

Meaning. A high value indicates many reachable nodes through relatively short paths.

Arguments. mode

centrality_lin(student_interactions)

Decay Centrality

Decay centrality sums reach discounted by distance (the focal node contributes 11).

Cδ(v)=∑u∈Vδd(v,u),δ=0.5 C_{\delta}(v) = \sum_{u \in V} \delta^{\,d(v, u)}, \quad \delta = 0.5

Meaning. A high value indicates access to many nodes, especially nearby nodes. The value depends on the decay parameter.

Arguments. mode, decay_parameter

centrality_decay(student_interactions)

Radiality Centrality

Radiality compares node distances to the graph diameter.

Rad(v)=∑u≠v(Δ+1−d(v,u))n−1 \mathrm{Rad}(v) = \frac{\sum_{u \ne v} \bigl( \Delta + 1 - d(v, u) \bigr)}{n - 1}

Meaning. A high value indicates short distances to others relative to overall graph diameter.

Arguments. mode

centrality_radiality(student_interactions)

Gil-Schmidt Centrality

Gil-Schmidt centrality sums reciprocal distances and normalises by graph size.

CGS(v)=1n−1∑u≠v1d(v,u) C_{GS}(v) = \frac{1}{n - 1} \sum_{u \ne v} \frac{1}{d(v, u)}

Meaning. A high value indicates broad reciprocal-distance access to the network.

Arguments. mode

centrality_gilschmidt(student_interactions)

Integration Centrality

Integration centrality is a distance-based measure of how integrated a node is within the graph.

Int(v)=∑u≠v(1−d(v,u)−1dmax),d(v,u)=dmax+1 if unreachable \mathrm{Int}(v) = \sum_{u \ne v} \left( 1 - \frac{d(v, u) - 1}{d_{\max}} \right), \quad d(v,u) = d_{\max} + 1 \text{ if unreachable}

Meaning. A high value indicates broad distance-based access to the network.

Arguments. mode

centrality_integration(student_interactions)

Eccentricity Centrality

Eccentricity is the maximum shortest-path distance from a node to any reachable node.

ε(v)=maxu∈Vd(v,u) \varepsilon(v) = \max_{u \in V} d(v, u)

Meaning. Lower eccentricity generally indicates smaller worst-case distance. A high value means at least one reachable node is far away.

Arguments. mode

centrality_eccentricity(student_interactions)

Ineccentricity Centrality

Ineccentricity computes eccentricity over incoming directed paths.

εin(v)=maxu∈Vd(u,v) \varepsilon^{\mathrm{in}}(v) = \max_{u \in V} d(u, v)

Meaning. It summarises the largest directed distance from other nodes into the focal node.

centrality_ineccentricity(student_interactions)

Outeccentricity Centrality

Outeccentricity computes eccentricity over outgoing directed paths.

εout(v)=maxu∈Vd(v,u) \varepsilon^{\mathrm{out}}(v) = \max_{u \in V} d(v, u)

Meaning. It summarises the largest directed distance from the focal node to reachable others.

centrality_outeccentricity(student_interactions)

Closeness Vitality

Closeness vitality measures how total network distance changes when a node is removed, using the Wiener index $W(G) = \\sum_{s, t} d(s, t)$.

CV(v)=W(G)−W(G\v) \mathrm{CV}(v) = W(G) - W(G \setminus v)

Meaning. A high value indicates that removing the node substantially changes shortest-path structure.

Arguments. mode

centrality_closeness_vitality(student_interactions)

Entropy Centrality

Entropy centrality measures the change in graph entropy associated with a node, from the distribution of finite shortest-path distances after the node is removed.

H(v)=−∑wYwlog⁡2Yw,Yw=|{x:d(w,x)<∞}|∑w′|{x:d(w′,x)<∞}| H(v) = -\sum_{w} Y_w \log_2 Y_w, \quad Y_w = \frac{|\{ x : d(w, x) < \infty \}|}{\sum_{w'} |\{ x : d(w', x) < \infty \}|}

Meaning. A high value indicates strong contribution under the graph entropy definition being used.

Arguments. mode

centrality_entropy(student_interactions)

Centroid Centrality

Centroid centrality compares distance dominance between pairs of nodes.

f(v,u)=γ(v,u)−γ(u,v),γ(v,u)=|{w:d(v,w)<d(u,w)}|,Ccen(v)=minu≠vf(v,u) f(v, u) = \gamma(v, u) - \gamma(u, v), \quad \gamma(v, u) = |\{ w : d(v, w) < d(u, w) \}|, \quad C_{\mathrm{cen}}(v) = \min_{u \ne v} f(v, u)

Meaning. A high value indicates a favourable position in pairwise distance comparisons.

Arguments. mode

centrality_centroid(student_interactions)

Distance Entropy

Distance entropy is the normalised Shannon entropy of a node’s hop-distance profile, so it summarises the spread of distances where closeness summarises their mean.

h(v)=−1log⁡(Mv−mv+1)∑k=mvMvpklog⁡pk,pk=nk(v)Rv h(v) = -\frac{1}{\log(M_v - m_v + 1)} \sum_{k = m_v}^{M_v} p_k \log p_k, \quad p_k = \frac{n_k(v)}{R_v}

Meaning. A high value (up to 1) indicates reach spread evenly across many network layers; 0 means every reachable node sits at the same distance. Hop counts only; weights are ignored.

Arguments. mode

centrality_distance_entropy(student_interactions)

Local Dimension

Local dimension is the growth exponent of the ball around a node: how fast the number of nodes within rr hops grows with rr.

Dv=dln⁡Bv(r)dln⁡r,Bv(r)=1+|{u:d(v,u)≤r}|,r=1,…,dmax(v) D_v = \frac{d \ln B_v(r)}{d \ln r}, \quad B_v(r) = 1 + |\{u : d(v, u) \le r\}|, \; r = 1, \ldots, d_{\max}(v)

Meaning. A low value indicates a node that reaches most of the network within a few hops, so lower is more influential. With a single radius the discretised derivative rnv(r)/Bv(r)r\, n_v(r) / B_v(r) is reported.

Arguments. mode

centrality_local_dimension(student_interactions)

Local Information Dimensionality

Local information dimensionality replaces the ball count of local dimension by its Shannon information and grows the box only to half the node’s eccentricity.

DvI=−dIv(l)dln⁡l,Iv(l)=−pv(l)ln⁡pv(l),pv(l)=Bv(l)n,l=1,…,⌈dmax(v)/2⌉ D^I_v = -\frac{d I_v(l)}{d \ln l}, \quad I_v(l) = -p_v(l) \ln p_v(l), \; p_v(l) = \frac{B_v(l)}{n}, \; l = 1, \ldots, \lceil d_{\max}(v) / 2 \rceil

Meaning. A high value indicates a more influential node. With a single box size the discretised derivative l(1+ln⁡pv(l))nv(l)/nl (1 + \ln p_v(l))\, n_v(l) / n is reported.

Arguments. mode

Access Information

Access information is the mean number of bits a map-less walker needs to reach every other node along shortest paths.

Ai=1N∑jS(i→j),S(i→j)=−log⁡2∑p(i,j)1ki∏l∈p,l≠i,j1kl−1 A_i = \frac{1}{N} \sum_j S(i \to j), \quad S(i \to j) = -\log_2 \sum_{p(i, j)} \frac{1}{k_i} \prod_{l \in p,\, l \ne i, j} \frac{1}{k_l - 1}

Meaning. A low value indicates a node that reaches the network with few decisions. Hubs score high, because a walker leaving a hub has many links to choose from.

centrality_access_information(student_interactions)

Hide Information

Hide information is the mean number of bits the rest of the network needs to locate a node.

Hi=1N∑jS(j→i) H_i = \frac{1}{N} \sum_j S(j \to i)

Meaning. A high value indicates a hidden, peripheral node; hubs have low hide information.

centrality_hide_information(student_interactions)

Local Dimension, Fixed Radius

The Silva-Costa local dimension is the discretised growth exponent of the ball around a node at one chosen radius.

Dv(r)=rnv(r)Bv(r) D_v(r) = \frac{r\, n_v(r)}{B_v(r)}

Meaning. A structural descriptor: higher values mean the neighbourhood is still growing fast at that radius. Nodes with eccentricity below the radius score 0.

Arguments. mode, ld_radius

centrality_local_dimension_fixed(student_interactions)

Fuzzy Local Dimension

Fuzzy local dimension replaces the ball count by a Gaussian-weighted average and takes its log-log slope.

Nv(r)=∑dvu≤re−dvu2/r2|{u:dvu≤r}|,FLD(v)=dlog⁡Nv(r)dlog⁡r N_v(r) = \frac{\sum_{d_{vu} \le r} e^{-d_{vu}^2 / r^2}}{|\{u : d_{vu} \le r\}|}, \quad FLD(v) = \frac{d \log N_v(r)}{d \log r}

Meaning. A high value indicates a more influential node (the opposite orientation to the rest of the dimension family).

Arguments. mode

centrality_fuzzy_local_dimension(student_interactions)

Local Volume Dimension

Local volume dimension is the log-log slope of the total degree inside the ball around a node.

Vv(l)=∑dvu≤lku,LVD(v)=dln⁡Vv(l)dln⁡l V_v(l) = \sum_{d_{vu} \le l} k_u, \quad LVD(v) = \frac{d \ln V_v(l)}{d \ln l}

Meaning. A low value indicates a more important node. The source article is closed access; the definition follows the authors’ later preprint.

Arguments. mode

centrality_local_volume_dimension(student_interactions)

Heatmap Centrality

Heatmap centrality is a node’s farness minus the mean farness of its neighbours.

CHM(v)=f(v)−1kv∑u∈N(v)f(u) C_{HM}(v) = f(v) - \frac{1}{k_v} \sum_{u \in N(v)} f(u)

Meaning. A low (more negative) value indicates a more central node. Isolates are undefined.

Arguments. mode

centrality_heatmap(student_interactions)

Geodesic k-path

Geodesic k-path centrality counts the shortest paths of length at most kk that start at a node, with multiplicity.

Ck(v)=∑0<d(v,u)≤kσ(v,u) C_k(v) = \sum_{0 < d(v, u) \le k} \sigma(v, u)

Meaning. A high value indicates many short geodesics leaving the node. Counting nodes instead of paths gives m-reach, which is what centiserve::geokpath computes.

Arguments. mode, kpath_k

centrality_geodesic_kpath(student_interactions)

k-path Census

The k-path census counts the simple paths of length at most kk that a node lies on, endpoints included.

CkP(v)=|{P:|P|≤k,v∈P}| C_{kP}(v) = |\{\, P : |P| \le k,\; v \in P \,\}|

Meaning. A high value indicates a node embedded in many short walks. Length 1 alone reproduces degree. Enumeration is exhaustive, so cost grows with the branching factor to the power kk.

Arguments. mode, kpath_len

centrality_kpath(student_interactions)

Distance-weighted Fragmentation

Distance-weighted fragmentation asks how much worse the network communicates once a node is deleted.

Fd(v)=1−∑i≠j≠v1/dijG−v(n−1)(n−2) F_d(v) = 1 - \frac{\sum_{i \ne j \ne v} 1 / d_{ij}^{\,G - v}}{(n-1)(n-2)}

Meaning. A high value indicates a node whose removal fragments the network or stretches its distances. A node inside a clique scores near 0.

Arguments. mode

centrality_fragmentation(student_interactions)

Geodesic Power Closeness

Geodesic power closeness raises every distance to a negative power, so one exponent moves the measure between a local and a global reading.

cδ(i)=1n−1∑j≠idij−δ c_\delta(i) = \frac{1}{n-1} \sum_{j \ne i} d_{ij}^{-\delta}

Meaning. A high value indicates a node close to many others. The exponent spans the family: δ=1\delta = 1 is harmonic centrality over n−1n-1, δ=2\delta = 2 is the inverse-square sum, a large δ\delta approaches degree, and δ=0\delta = 0 counts the reachable set. Unreachable nodes contribute nothing but stay in the denominator.

Arguments. mode, closeness_delta

centrality_delta_closeness(student_interactions)

Shortest-path brokerage and flow

Randomized shortest paths (RSP) betweenness

Count the visits a node gets from walks that lie between shortest paths and pure random walks, with one parameter setting the balance.

beti=∑s=1n∑t=1n(zsizst−ztiztt)zit,𝐙=(𝐈−𝐖)−1,𝐖=(𝐃−1𝐀)∘exp⁡(−β𝐂) bet_i=\sum_{s=1}^{n}\sum_{t=1}^{n}\Bigl(\frac{z_{si}}{z_{st}}-\frac{z_{ti}}{z_{tt}}\Bigr)z_{it},\qquad \mathbf{Z}=(\mathbf{I}-\mathbf{W})^{-1},\quad \mathbf{W}=(\mathbf{D}^{-1}\mathbf{A})\circ\exp(-\beta\mathbf{C})

Meaning. A high value indicates a node that walks between other pairs of nodes pass through often. rsp_beta moves the measure between a random walk (small values; the default 0.01 lies near this end) and shortest-path betweenness (large values). rsp_cost sets whether a weight is read as an affinity or as a distance.

Arguments. rsp_beta, rsp_cost, normalized

centrality_rsp_betweenness(student_interactions)

Relative-entropy integrated evaluation

Turn several indexes into distributions and take the distribution closest to all of them.

uji=Cj(i)/∑kCj(k)or(1−Cj(i)/∑kCj(k))/∑l(1−Cj(l)/∑kCj(k)),wi=∏j=1muji1/m/∑i∏j=1muji1/m u_{ji}=C_j(i)/\textstyle\sum_k C_j(k)\ \text{or}\ (1-C_j(i)/\sum_k C_j(k))/\sum_l(1-C_j(l)/\sum_k C_j(k)),\quad w_i=\prod_{j=1}^{m}u_{ji}^{1/m}\Big/\sum_{i}\prod_{j=1}^{m}u_{ji}^{1/m}

Meaning. A high value indicates a node that ranks highly on several centrality indexes at once. The score is the normalised geometric mean of the indexes chosen with re_indexes, and it sums to one over the nodes. A node that scores zero on any one index scores zero overall.

Arguments. re_indexes, re_negative, normalized

centrality_relative_entropy(student_interactions)

DK-based gravity model

Degree, k-shell and the stage at which peeling reached the node act together as gravitational mass.

ks*(i)=ks(i)+p(i)/(maxkq(k)+1),DK(i)=k(i)+ks*(i),DKGMi=∑j≠i,d(i,j)≤RDK(i)DK(j)/d(i,j)2 k_s^*(i)=k_s(i)+p(i)/(\max_k q(k)+1),\quad DK(i)=k(i)+k_s^*(i),\quad DKGM_i=\sum_{j\ne i,\,d(i,j)\le R}DK(i)DK(j)/d(i,j)^2

Meaning. A high value indicates a node of large mass lying close to other nodes of large mass, where mass combines degree, k-shell and how late in the peeling the node was removed. Only nodes within dkgm_radius steps (default 2) contribute. The score depends on the whole graph, so adding a component can change it.

Arguments. dkgm_radius, normalized

centrality_dkgm(student_interactions)

Mixed gravitational centrality

Core-number mass at the source interacts with degree mass at nearby nodes.

MGCi=ks(i)∑j:0<d(i,j)≤rk(j)/d(i,j)2 MGC_i=k_s(i)\sum_{j:0<d(i,j)\le r}k(j)/d(i,j)^2

Meaning. A high value indicates a node deep in the network’s core that lies close to many high-degree nodes: the node’s own mass is its coreness and its partners’ mass is their degree. Only nodes within gravity_radius steps (default 3) contribute; a radius of 1 restricts the sum to neighbours.

Arguments. gravity_radius, normalized

centrality_mixed_gravity(student_interactions)

Extended mixed gravitational centrality

Sum immediate neighbors’ raw mixed gravitational scores.

EMGCi=∑j∈N(i)ks(j)∑l:0<d(j,l)≤rk(l)/d(j,l)2 EMGC_i=\sum_{j\in N(i)}k_s(j)\sum_{l:0<d(j,l)\le r}k(l)/d(j,l)^2

Meaning. A high value indicates a node whose neighbours have high mixed gravitational centrality. Because the radius is measured from each neighbour, contributions can come from up to gravity_radius + 1 steps away (default 3).

Arguments. gravity_radius, normalized

centrality_extended_mixed_gravity(student_interactions)

Localized bridging centrality

Brokerage in the one-hop ego network, adjusted for neighbor degrees.

LBC(v)=BG[N≤1(v)](v)1/dv∑u∈N(v)1/du LBC(v)=B_{G[N_{\leq1}(v)]}(v)\,\frac{1/d_v}{\sum_{u\in N(v)}1/d_u}

Meaning. A high value indicates a node that brokers among its immediate neighbours and has few ties itself while its neighbours have many. The score is betweenness within the node’s one-step neighbourhood, multiplied by the bridging coefficient. Isolates and leaves score zero.

Arguments. normalized

centrality_localized_bridging(student_interactions)

Extended local bridging centrality

Brokerage in the two-hop ego network, adjusted for neighbor degrees.

LBC2(v)=BG[N≤2(v)](v)1/dv∑u∈N(v)1/du LBC_2(v)=B_{G[N_{\leq2}(v)]}(v)\,\frac{1/d_v}{\sum_{u\in N(v)}1/d_u}

Meaning. A high value indicates a node that brokers within its two-step neighbourhood and has few ties itself while its neighbours have many. The score is betweenness within the subgraph of nodes up to two steps away, multiplied by the bridging coefficient.

Arguments. normalized

Proximal betweenness

Brokerage at the first or last intermediate vertex of shortest paths.

Cps(v)=∑s,t:(v,t)∈Eσst(v)/σst C_{ps}(v)=\sum_{s,t:(v,t)\in E}\sigma_{st}(v)/\sigma_{st}

Meaning. A high value indicates a node that often lies on shortest paths directly next to one of the endpoints. By default a node is counted as the last intermediary before the destination; proximal_variant selects the first after the origin, or both.

Arguments. proximal_variant, normalized

centrality_proximal_betweenness(student_interactions)

RCFB (resized current-flow betweenness)

Inject a unit of current at each node in turn, drain it through links of small conductance from every node to a virtual target, and credit the current of each edge to its end of higher potential.

bi=1n∑s∑j:ui(s)>uj(s)qij(ui(s)−uj(s)),u(s)=(εI+L)−1es b_i=\frac{1}{n}\sum_s\sum_{j:\,u^{(s)}_i>u^{(s)}_j}q_{ij}\bigl(u^{(s)}_i-u^{(s)}_j\bigr),\qquad u^{(s)}=(\varepsilon I+L)^{-1}e_s

Meaning. A high value indicates a node through which current from many sources flows. Weights are conductances. The default takes the limit of a vanishing conductance to the target; the network may be disconnected. NA with a warning on a directed network.

Arguments. rcfb_epsilon, weighted, normalized

centrality_rcfb(to_undirected(student_interactions))

Mapping entropy betweenness (MEB)

Weigh minus the sum of the logarithms of the neighbours’ normalised betweenness by the node’s own normalised betweenness.

MEBi=−BCi∑j∈N(i),BCj>0log⁡BCj MEB_i=-BC_i\sum_{j\in N(i),\,BC_j>0}\log BC_j

Meaning. A high value indicates a node of high betweenness next to nodes of moderate betweenness. Neighbours of betweenness 0 are left out of the sum.

Arguments. normalized

Betweenness Centrality

Betweenness centrality measures how often a node lies on shortest paths between other pairs of nodes.

CB(v)=∑s≠v≠tσst(v)σst C_B(v) = \sum_{s \ne v \ne t} \frac{\sigma_{st}(v)}{\sigma_{st}}

Meaning. A high value is consistent with a bridge or brokerage position under the shortest-path model.

centrality_betweenness(student_interactions)

Stress Centrality

Stress centrality counts shortest paths passing through a node without fractional normalization across tied paths.

CS(v)=∑s≠v≠tσst(v) C_S(v) = \sum_{s \ne v \ne t} \sigma_{st}(v)

Meaning. A high value indicates that many shortest paths include the node.

centrality_stress(student_interactions)

Load Centrality

Load centrality distributes shortest-path load across alternative shortest routes: at each branch point a unit packet is split evenly among next hops on shortest paths.

CL(v)=∑s≠v≠tloadst(v) C_L(v) = \sum_{s \ne v \ne t} \mathrm{load}_{st}(v)

Meaning. A high value indicates that a node carries a large share of geodesic routing load.

centrality_load(student_interactions)

Length-scaled Betweenness

Length-scaled betweenness counts the same brokered pairs as betweenness but weights each pair by the reciprocal of its distance.

CLS(v)=∑s≠v≠t1d(s,t)⋅σst(v)σst C_{LS}(v) = \sum_{s \ne v \ne t} \frac{1}{d(s,t)} \cdot \frac{\sigma_{st}(v)}{\sigma_{st}}

Meaning. A high value indicates brokerage between pairs that were already close, which ordinary betweenness treats the same as brokerage across the graph.

Distance-decayed Betweenness

Distance-decayed betweenness discounts each brokered pair by a power of its distance, so the exponent tunes how local the measure is.

Cδ(v)=∑s≠v≠t(d(s,t)−1)−δ⋅σst(v)σst C_\delta(v) = \sum_{s \ne v \ne t} (d(s,t) - 1)^{-\delta} \cdot \frac{\sigma_{st}(v)}{\sigma_{st}}

Meaning. A high value indicates brokerage concentrated among nearby pairs. At δ=0\delta = 0 the measure is ordinary betweenness. Adjacent pairs have no intermediary, so the singularity at d=1d = 1 is avoided.

Arguments. betweenness_delta

centrality_delta_betweenness(student_interactions)

Ego Betweenness

Ego betweenness is betweenness computed inside a node’s own ego network.

CEB(v)=∑i<j∈N(v),Aij=01(A2)ij C_{EB}(v) = \sum_{i < j \in N(v),\; A_{ij} = 0} \frac{1}{(A^2)_{ij}}

Meaning. A high value indicates a node that brokers among its own neighbours, which is what an egocentric survey can measure. A node with fewer than two neighbours scores 0.

centrality_ego_betweenness(student_interactions)

Bottleneck Centrality

Bottleneck centrality counts cases where a node is critical in shortest-path tree structures.

BN(v)=∑s∈Vps(v),ps(v)=1 if v carries>n4 of the shortest-path tree Ts \mathrm{BN}(v) = \sum_{s \in V} p_s(v), \quad p_s(v) = 1 \text{ if } v \text{ carries} > \tfrac{n}{4} \text{ of the shortest-path tree } T_s

Meaning. A high value indicates frequent bottleneck position in local shortest-path trees.

Arguments. mode

centrality_bottleneck(student_interactions)

Bridging Centrality

Bridging centrality combines betweenness with a bridging coefficient.

Br(v)=CB(v)⋅β(v),β(v)=1/kv∑u∈N(v)1/ku \mathrm{Br}(v) = C_B(v) \cdot \beta(v), \quad \beta(v) = \frac{1/k_v}{\sum_{u \in N(v)} 1/k_u}

Meaning. A high value indicates a possible bridge position between locally distinct areas.

centrality_bridging(student_interactions)

Local bridging (legacy degree product)

Inverse focal degree multiplied by the bridging coefficient.

LBr(v)=1kv⋅β(v),β(v)=1/kv∑u∈N(v)1/ku \mathrm{LBr}(v) = \frac{1}{k_v} \cdot \beta(v), \quad \beta(v) = \frac{1/k_v}{\sum_{u \in N(v)} 1/k_u}

Meaning. Retains the original cograph degree-only score. The formula uses degrees only.

centrality_local_bridging(student_interactions)

Percolation Centrality

Percolation centrality weights shortest-path brokerage by node states in a percolation process.

PC(v)=1n−2∑s≠v≠tσst(v)σst⋅xs∑i≠vxi \mathrm{PC}(v) = \frac{1}{n - 2} \sum_{s \ne v \ne t} \frac{\sigma_{st}(v)}{\sigma_{st}} \cdot \frac{x_s}{\sum_{i \ne v} x_i}

Meaning. A high value indicates state-dependent path importance under the supplied state vector xx.

Arguments. states

centrality_percolation(student_interactions)

Flow Betweenness Centrality

Flow betweenness measures brokerage through maximum flows between pairs of nodes.

CFB(v)=∑s≠v≠tfst(v),fst(v)=flow through v in a max s-t flow C_{FB}(v) = \sum_{s \ne v \ne t} f_{st}(v), \quad f_{st}(v) = \text{flow through } v \text{ in a max } s\text{-}t \text{ flow}

Meaning. A high value indicates importance for potential flow capacity between other nodes under the graph model.

centrality_flow_betweenness(student_interactions)

Current-Flow Betweenness Centrality

Current-flow betweenness measures how much electrical current between node pairs passes through a node.

CCFB(v)=1(n−1)(n−2)∑s≠tτst(v),τst(v)=current through v C_{CFB}(v) = \frac{1}{(n - 1)(n - 2)} \sum_{s \ne t} \tau_{st}(v), \quad \tau_{st}(v) = \text{current through } v

Meaning. A high value indicates an intermediary position under an all-path current-flow model.

Current-Flow Closeness Centrality

Current-flow closeness measures closeness with effective-resistance distances, treating the network as an electrical circuit.

CCFC(v)=n−1∑u≠vRvu,Rvu=effective resistance between v and u C_{CFC}(v) = \frac{n - 1}{\sum_{u \ne v} R_{vu}}, \quad R_{vu} = \text{effective resistance between } v \text{ and } u

Meaning. A high value indicates closeness under an all-path flow model. It generally requires connected graphs.

centrality_current_flow_closeness(student_interactions)

Entropy Variation, Betweenness

Entropy variation of the betweenness distribution: the drop in its Shannon entropy when the node is removed.

EnVb(i)=Ib(G)−Ib(G−i) EnV_b(i) = I_b(G) - I_b(G - i)

Meaning. A high value indicates a node whose removal concentrates shortest-path traffic on fewer nodes. Betweenness is recomputed per removal.

centrality(student_interactions, measures = "entropy_variation_betweenness")

Spectral, walk and influence

Trust-PageRank

Replace PageRank’s even split of a node’s score among its neighbours by a trust-value that mixes how similar the two nodes are with how large the receiver’s degree is.

TPRi=1−αn+α∑j∈NiT(i,j)TPRj,T(i,j)=(1−k)s(i,j)∑l∈Njs(j,l)+kdi∑l∈Njdl TPR_i=\frac{1-\alpha}{n}+\alpha\sum_{j\in N_i}T(i,j)TPR_j,\qquad T(i,j)=(1-k)\frac{s(i,j)}{\sum_{l\in N_j}s(j,l)}+k\frac{d_i}{\sum_{l\in N_j}d_l}

Meaning. A high value indicates a node that receives a large share of a PageRank-style flow in which each node passes more of its score to neighbours that are similar to it and well connected. tpr_k sets the balance between similarity and degree, and tpr_alpha is the damping factor. A component without triangles returns NA with a warning, because the similarity is undefined there.

Arguments. tpr_alpha, tpr_k, tpr_decay, tpr_tol, tpr_max_iter, normalized

centrality_trust_pagerank(student_interactions)

Iterative resource allocation (IRA)

Give every node one unit of resource, hand it repeatedly to neighbours in proportion to the receiver’s centrality, and read the steady state.

I(t+1)=AI(t),aij=θiα∑u∈Γ(j)θuαδij,I(0)=𝟏 I(t+1)=AI(t),\quad a_{ij}=\frac{\theta_i^{\alpha}}{\sum_{u\in\Gamma(j)}\theta_u^{\alpha}}\delta_{ij},\quad I(0)=\mathbf{1}

Meaning. A high value indicates a node that accumulates resource when every node repeatedly passes its resource to its neighbours in proportion to their centrality (ira_mass, default coreness). The scores of a connected component sum to its number of nodes. On a bipartite component with unequal sides the iteration oscillates, and a warning is raised.

Arguments. ira_mass, ira_alpha, ira_tol, ira_max_iter, normalized

centrality_ira(student_interactions)

Improved iterative resource allocation (IIRA)

The same resource iteration, with each node’s share scaled by how much of a spreading process it could actually carry.

aij=[1−(1−β)ki]θi(∑u∈Γ(j)θu)−1δij,I(t)=At𝟏 a_{ij}=\bigl[1-(1-\beta)^{k_i}\bigr]\theta_i\Bigl(\sum_{u\in\Gamma(j)}\theta_u\Bigr)^{-1}\delta_{ij},\quad I(t)=A^{t}\mathbf{1}

Meaning. A high value indicates a node that accumulates resource when resource is passed to neighbours in proportion to their centrality and to their chance of being reached by a spreading process at rate iira_beta. The resource decays over the iira_steps iterations, so only the ranking is meaningful, and only within a connected component.

Arguments. ira_mass, iira_beta, iira_steps, normalized

centrality_iira(student_interactions)

Multi-characteristics gravity model

Combine degree, coreness and eigenvector features in distance-decaying node interactions.

mi=Ki+αSi+Xi,α=max⁡{med(K),med(X)}/med(S),MCGMi=∑j:0<d(i,j)≤Rmimj/d(i,j)2 m_i=K_i+\alpha S_i+X_i,\quad \alpha=\max\{\mathrm{med}(K),\mathrm{med}(X)\}/\mathrm{med}(S),\quad MCGM_i=\sum_{j:0<d(i,j)\le R}m_i m_j/d(i,j)^2

Meaning. A high value indicates a node of large mass lying close to other nodes of large mass, where mass combines degree, coreness and eigenvector centrality, each scaled to its maximum. mcgm_alpha sets the weight of coreness, and only nodes within mcgm_radius steps (default 2) contribute.

Arguments. mcgm_radius, mcgm_alpha, normalized

centrality_mcgm(student_interactions)

SpectralRank

Outgoing influence after adding a ground node and optional node priors.

B=(A+diag⁡(p)𝟏𝟏T0),Bs=ρ(B)s,SRi=si/maxj≤n+1sj B=\begin{pmatrix}A+\operatorname{diag}(p)&\mathbf{1}\\\mathbf{1}^{T}&0\end{pmatrix},\quad Bs=\rho(B)s,\quad SR_i=s_i/\max_{j\le n+1}s_j

Meaning. A high value indicates a node with strong outgoing influence, measured by the leading eigenvector of the network augmented with a ground node linked to every node. sr_prior adds optional prior information for each node; with the default of zero the score is plain SpectralRank. Transpose the input to measure incoming influence.

Arguments. sr_prior, directed, weighted, simplify, normalized

centrality_spectralrank(student_interactions)

ControlRank

Smallest grounded eigenvalue after pinning each node in turn.

CRi=λmin(((L+LT)/2)−i,−i),L=diag⁡(A𝟏)−A CR_i=\lambda_{\min}(((L+L^T)/2)_{-i,-i}),\quad L=\operatorname{diag}(A\mathbf{1})-A

Meaning. A high value indicates a node whose grounding leaves the rest of the network most tightly coupled, as measured by the smallest eigenvalue of the Laplacian with that node removed. Disconnected undirected graphs score zero at every node.

Arguments. directed, weighted, simplify, normalized

centrality_controlrank(student_interactions)

Node and Neighbor Layer Information

Propagate degree volume through a chosen number of neighbor steps.

bi=∑j:d(i,j)≤rdj,r=⌈L⌉,NINLp=Apb b_i=\sum_{j:d(i,j)\le r}d_j,\quad r=\lceil L\rceil,\quad NINL_p=A^p b

Meaning. A high value indicates a node surrounded by high-degree nodes. Degrees are first summed within a radius and then propagated through ninl_order steps (default 3). With order 0 the score is the total degree of the node’s neighbourhood.

Arguments. ninl_order, ninl_radius, normalized

centrality_ninl(student_interactions)

Expected Force

Entropy of onward transmission opportunities after two infection events.

ExF(i)=−∑j=1Jpjlog⁡pj,pj=Dj/∑kDk ExF(i)=-\sum_{j=1}^{J}p_j\log p_j,\quad p_j=D_j/\sum_kD_k

Meaning. A high value indicates a node from which an infection has many, and varied, ways to spread after its first two transmissions. The score is the entropy of these spreading opportunities.

Arguments. normalized

centrality_expected_force(student_interactions)

Modified Expected Force

Expected Force adjusted for the seed degree.

ExFM(i)=log⁡(αdi)ExF(i),α>1 ExF^M(i)=\log(\alpha d_i)ExF(i),\quad\alpha>1

Meaning. Expected force weighted by the logarithm of the node’s degree, so that among nodes with similar spreading opportunities the better-connected one scores higher. exf_alpha (default 2, and greater than 1) scales the degree inside the logarithm.

Arguments. exf_alpha, normalized

Bridging capital

Loss of valued information walks after deleting each outgoing matrix entry.

Bridi=∑j∑s,tvst∑h=1T[Ph−(P−PijEij)h]st Brid_i=\sum_j\sum_{s,t}v_{st}\sum_{h=1}^{T}[P^h-(P-P_{ij}E_{ij})^h]_{st}

Meaning. A high value indicates a node whose outgoing ties carry many of the network’s valued information walks, measured by the loss when each tie is removed in turn. Walks of up to bridging_steps steps (default 2) are counted, and bridging_values weights source-destination pairs. Edge weights are read as transmission probabilities.

Arguments. bridging_steps, bridging_values, weighted, loops, simplify, normalized

centrality_bridging_capital(student_interactions, weighted = FALSE)

LineRank

Stationary edge-state probabilities aggregated at original endpoints.

p=cQTp+(1−c)𝟏/m,LRv=∑e incident to vpe p=cQ^T p+(1-c)\mathbf{1}/m,\quad LR_v=\sum_{e\text{ incident to }v}p_e

Meaning. A high value indicates a node whose ties are visited often by a random walk that moves from tie to tie. Tie probabilities are summed at their end nodes; linerank_aggregation = "weight" also multiplies them by the tie weights. damping is the usual random-walk damping factor.

Arguments. damping, linerank_aggregation, weighted, loops, simplify, normalized

centrality_linerank(student_interactions)

Random walk decay

Discounted first arrival at each node, summed over starting-node weights.

RWDv=∑ubu𝔼u[aTv;Tv<∞],0≤a<1 RWD_v=\sum_u b_u\,\mathbb{E}_u[a^{T_v};T_v<\infty],\quad 0\leq a<1

Meaning. A high value indicates a node that random walks starting elsewhere reach early. Each first arrival is discounted by rwd_decay (default 0.5) per step, and starting nodes can be weighted with rwd_node_weights. A node’s own outgoing ties cannot change its own score.

Arguments. rwd_decay, rwd_node_weights, weighted, loops, simplify, normalized

centrality_random_walk_decay(student_interactions)

Graph regularization centrality

Reciprocal retention of a unit impulse under weighted Laplacian smoothing.

GRCi=1/[(I+γL)−1]ii,L=D−W,γ≥0 GRC_i=1/[(I+\gamma L)^{-1}]_{ii},\quad L=D-W,\quad \gamma\geq0

Meaning. A high value indicates a node whose signal spreads quickly across the network under Laplacian smoothing, so that little of it is retained at the node. grc_gamma (default 1) sets the strength of smoothing. Scores range from 1 to the size of the node’s component, and isolates score 1.

Arguments. grc_gamma, weighted, normalized

centrality_graph_regularization(student_interactions)

Adaptive LeaderRank

Stationary resource scores with every destination weighted by its original H-index and a ground node with H-index one.

hg=1,wji=ajihi,si=∑jwji∑kwjksj,∑i∪gsi=N h_g=1,\quad w_{ji}=a_{ji}h_i,\quad s_i=\sum_j\frac{w_{ji}}{\sum_k w_{jk}}s_j,\quad \sum_{i\cup g}s_i=N

Meaning. A high value indicates a node that attracts a large share of a random resource flow in which each node sends more to neighbours with a high H-index. alr_h_mode sets how H-indices are computed on directed graphs.

Arguments. alr_h_mode, normalized

centrality_adaptive_leaderrank(student_interactions)

Weighted LeaderRank

Stationary resource scores with a ground node that distributes according to original in-degree powers.

wgi=(kiin)α,wig=1,si=∑jwji∑lwjlsj,∑i∪gsi=N+1 w_{gi}=(k_i^{in})^{\alpha},\quad w_{ig}=1,\quad s_i=\sum_j\frac{w_{ji}}{\sum_l w_{jl}}s_j,\quad \sum_{i\cup g}s_i=N+1

Meaning. A high value indicates a node that attracts a large share of a random resource flow in which a ground node, linked to every node, sends more to nodes with high in-degree. wlr_alpha sets how strongly in-degree is favoured; at zero the measure is ordinary LeaderRank.

Arguments. wlr_alpha, normalized

centrality_weighted_leaderrank(student_interactions)

TOPSIS centrality

Rate every node on degree, closeness and a third measure, betweenness or eigenvector centrality, and score it by how near it comes to the best value of each and how far it stays from the worst.

Ci=Si−Si−+Si+,Si±={∑j(vj±−vij)2}1/2,vij=wjxij∑ixij2 C_i=\frac{S_i^{-}}{S_i^{-}+S_i^{+}},\qquad S_i^{\pm}=\Bigl\{\sum_j\bigl(v_j^{\pm}-v_{ij}\bigr)^2\Bigr\}^{1/2},\qquad v_{ij}=w_j\frac{x_{ij}}{\sqrt{\sum_i x_{ij}^2}}

Meaning. A high value indicates a node close to the best observed value on all three measures at once; a node best on all three scores 1 and a node worst on all three scores 0. The weights are equal by default. It needs a connected network whose nodes are not all alike; otherwise every node returns NA with a warning.

Arguments. topsis_attribute, topsis_weights, normalized

centrality_topsis(student_interactions)

All-around score

Divide the degree, the betweenness and the k-shell index each by its largest value, and take the length of the three together.

d(i)=k̃(i)2+C̃B(i)2+k̃s(i)2 d(i)=\sqrt{\tilde{k}(i)^2+\tilde{C}_B(i)^2+\tilde{k}_s(i)^2}

Meaning. A high value indicates a node that is high on degree, betweenness and k-shell index together. The score lies between 0 and the square root of 3.

Arguments. normalized

centrality_all_around(student_interactions)

Multi-evidence centrality (MeC)

Turn four measures of a node, degree, betweenness, efficiency and correlation centrality, into degrees of belief that the node is important or not, and combine the four with Dempster’s rule.

MeC(i)=mi(h)−mi(l),mX(h)=Xi−XminXmax−Xmin+ω,mX(l)=Xmax−XiXmax−Xmin+ω MeC(i)=m_i(h)-m_i(l),\qquad m_X(h)=\frac{X_i-X_{min}}{X_{max}-X_{min}+\omega},\qquad m_X(l)=\frac{X_{max}-X_i}{X_{max}-X_{min}+\omega}

Meaning. A positive value indicates a node the four measures together rate as important, a negative value one they rate as unimportant. The score lies between -1 and 1.

Arguments. evidence_omega, coc_alpha, normalized

centrality_multi_evidence(student_interactions)

Analytic Hierarchy Process (AHP) centrality

Take the share each node holds of the degree, the betweenness and the closeness of the network, discount each by the share of nodes where that measure is not zero, and add them with weights.

AHP(i)=∑j=13wjNj+Nxij∑lxlj AHP(i)=\sum_{j=1}^{3}w_j\frac{N^+_j}{N}\frac{x_{ij}}{\sum_l x_{lj}}

Meaning. A high value indicates a node that holds a large share of the ties, the shortest paths and the closeness of the network. The source’s weights come from a simulation whose printed values cannot be regenerated; they are one third each by default. NA with a warning on a disconnected network.

Arguments. ahp_weights, normalized

centrality_ahp(student_interactions)

Semi-local iterative algorithm (semi-IA)

Repeat an update in which each node collects the normalised scores of the nodes within a few steps, weighted by the number of shortest paths to them and divided by the distance, until it settles.

Xi(t+1)=∑j≠i:dij≤rnijγdijXj(t)∥X(t)∥ X_i(t+1)=\sum_{j\ne i:\,d_{ij}\le r}\frac{n_{ij}^{\gamma}}{d_{ij}}\frac{X_j(t)}{\|X(t)\|}

Meaning. A high value indicates a node close, by many short paths, to other high-scoring nodes. The source prints the update with the node’s own score in the sum, which collapses onto one node; the neighbour’s score is used. NA with a warning on a disconnected network.

Arguments. semi_ia_radius, semi_ia_gamma, semi_ia_max_iter, normalized

centrality_semi_ia(student_interactions)

Synthesize centrality (SC)

Add the normalised degree and betweenness of a node and divide by its normalised sum of distances, with 1000 for a node it cannot reach.

SC(v)=dd(v)+db(v)dc(v),dd=kvn−1,db=2B(v)(n−1)2,dc=∑il(i,v)(n−1)2 SC(v)=\frac{d_d(v)+d_b(v)}{d_c(v)},\qquad d_d=\frac{k_v}{n-1},\qquad d_b=\frac{2B(v)}{(n-1)^2},\qquad d_c=\frac{\sum_i l(i,v)}{(n-1)^2}

Meaning. A high value indicates a well-connected broker close to the rest of the network. The Centrality Zoo’s squares and closeness denominator are not in the source.

Arguments. normalized

centrality_synthesize(student_interactions)

Inward accessibility

Start a self-avoiding random walk at every other node, take the probabilities that each is at the node after a given number of steps, and turn their entropy into an effective number of origins.

IAh(i)=1N−1exp⁡(−∑j≠iqjilog⁡qji),qji=Ph(j→i)N−1 IA_h(i)=\frac{1}{N-1}\exp\Bigl(-\sum_{j\ne i}q_{ji}\log q_{ji}\Bigr),\qquad q_{ji}=\frac{P_h(j\to i)}{N-1}

Meaning. A high value indicates a node reached evenly from many other nodes in the given number of steps. ia_steps has no default; walks are enumerated exactly, so the cost grows exponentially with it. A node no walk reaches scores 1/(N - 1).

Arguments. ia_steps, ia_stuck, enumeration_limit, normalized

centrality_inward_accessibility(student_interactions, ia_steps = 2)

PhysarumSpreader

Let a resource flow over the network through a ground node linked to every node, with the conductivity of each arc adapting to its flow as in the Physarum model, and take the resource a node holds after a given number of updates.

Si=Ii(t)+Ig(t)N,Ii(t+1)=∑jQji(t)Ij(t),Qij(t)=wijDij(t)∑lwilDil(t),Dij(t+1)=Qij(t)+Dij(t)2 S_i=I_i(t)+\frac{I_g(t)}{N},\qquad I_i(t+1)=\sum_j Q_{ji}(t)I_j(t),\qquad Q_{ij}(t)=\frac{w_{ij}D_{ij}(t)}{\sum_l w_{il}D_{il}(t)},\qquad D_{ij}(t+1)=\frac{Q_{ij}(t)+D_{ij}(t)}{2}

Meaning. A high value indicates a node that gathers the flow. It uses direction and weights. physarum_steps has no default, because the source gives no stopping rule and every score tends to 1 as the updates go on; the source’s example prints the scores after 52 updates.

Arguments. physarum_steps, weighted, normalized

centrality_physarum_spreader(student_interactions, physarum_steps = 52)

ArticleRank

A PageRank-style score for citation networks in which a citing node passes on its score in a share that falls with its number of references.

AR(A)=1−d+dNR¯∑P→AAR(P)NR¯+NR(P) AR(A)=1-d+d\,\overline{NR}\sum_{P\to A}\frac{AR(P)}{\overline{NR}+NR(P)}

Meaning. A high value indicates a node cited by highly ranked nodes with few references. It uses direction. The number of references of each node is ar_references, the out-degree by default. On a network with cycles the equation can diverge (here at the default damping); the measure is then NA with a warning, so the example uses damping = 0.25.

Arguments. ar_references, damping, normalized

centrality_articlerank(student_interactions, damping = 0.25)

Entropy-based gravity model

Combine node H-index, closeness, betweenness and PageRank into one mass per node with weights from their entropies over the nodes, and add the gravity between the node and the nodes within a few steps.

G(i)=∑j:1≤dij≤rCiCjdij2,Ci=∑kwkbik,wk=1−Sk4−∑lSl G(i)=\sum_{j:\,1\le d_{ij}\le r}\frac{C_iC_j}{d_{ij}^2},\qquad C_i=\sum_k w_kb_{ik},\qquad w_k=\frac{1-S_k}{4-\sum_l S_l}

Meaning. A high value indicates a node with a large combined mass close to other nodes of large mass. The source’s printed equations contradict its text; the text is followed. NA with a warning on a disconnected network or when an attribute is the same at every node.

Arguments. entropy_gravity_radius, damping, normalized

centrality_entropy_gravity(student_interactions)

Node Resistance Curvature

A geometric descriptor based on electrical resistance, evaluated separately within each connected component.

pi=1−12∑j∼iwijRij p_i=1-\frac{1}{2}\sum_{j\sim i}w_{ij}R_{ij}

Meaning. Low or negative values identify tree-like junctions that hold parts of the network together; higher values indicate nodes with redundant connections. Edge weights are read as conductances. The scores within each connected component sum to one.

Arguments. weighted, simplify

centrality_resistance_curvature(student_interactions)

Dynamics-Sensitive Centrality

A finite-time linearized spreading score with explicit spreading and recovery rates, on the simple undirected skeleton.

S(T)=∑r=0T−1βA[βA+(1−μ)I]r𝟏 S(T)=\sum_{r=0}^{T-1}\beta A[\beta A+(1-\mu)I]^r\mathbf{1}

Meaning. Higher scores indicate more cumulative spreading activity in this approximation. Values can exceed the number of nodes. Defaults are beta=0.1, mu=1, T=5. Recovery mu=1 recovers finite diffusion; mu=0 selects the SI case. Isolates and horizon zero score zero; overflow raises an error.

Arguments. ds_beta, ds_mu, ds_steps

centrality_dynamics_sensitive(student_interactions)

Finite-Horizon Diffusion Centrality

Total weighted walks of lengths 1 through T starting at a node, allowing repeated visits and returns.

DC(A;q,T)=∑t=1T(qA)t𝟏 DC(A;q,T) = \sum_{t=1}^{T}(qA)^t\mathbf{1}

Meaning. High values indicate more weighted walk activity from the source. Probability interpretation requires entries of qA in [0,1]. Defaults q=1 and T=3 are cograph choices. Directed arcs carry information outwards. Overflow raises an error.

Arguments. diffusion_q, diffusion_steps, weighted, loops, simplify

centrality_diffusion_centrality(student_interactions)

Dynamical Importance

Relative loss of adjacency spectral radius after removing the node, recomputed directly for each deletion.

Ii=ρ(A)−ρ(A−i)ρ(A) I_i = \frac{\rho(A)-\rho(A_{-i})}{\rho(A)}

Meaning. A high value indicates a node whose removal most reduces the network’s spectral radius, which governs how easily spreading processes take off. Each deletion is recomputed exactly.

Arguments. weighted, simplify

centrality_dynamical_importance(student_interactions)

Eigenvector Centrality

Eigenvector centrality gives high scores to nodes connected to other high-scored nodes.

A𝐱=λmax𝐱,CE(v)=xv A\,\mathbf{x} = \lambda_{\max}\,\mathbf{x}, \quad C_E(v) = x_v

Meaning. A high value indicates embeddedness in a central neighbourhood. Reading it as influence requires a relation that transmits influence.

centrality_eigenvector(student_interactions)

PageRank Centrality

PageRank is a damped random-walk centrality. Nodes score highly when a random walker reaches them often.

PR(v)=1−αn+α∑u:u→vPR(u)kuout,α=0.85 \mathrm{PR}(v) = \frac{1 - \alpha}{n} + \alpha \sum_{u \,:\, u \to v} \frac{\mathrm{PR}(u)}{k_u^{\mathrm{out}}}, \quad \alpha = 0.85

Meaning. A high value indicates random-walk prominence under the chosen damping, direction, and weight conventions.

Arguments. damping, personalized

centrality_pagerank(student_interactions)

Authority Centrality

Authority centrality is part of HITS. Authorities are nodes pointed to by good hubs.

𝐚=A⊤𝐡,𝐡=A𝐚⇒𝐚=principal eigenvector of A⊤A \mathbf{a} = A^{\top} \mathbf{h}, \quad \mathbf{h} = A\,\mathbf{a} \;\Rightarrow\; \mathbf{a} = \text{principal eigenvector of } A^{\top} A

Meaning. A high value indicates incoming support from nodes that point to good authorities.

centrality_authority(student_interactions)

Hub Centrality

Hub centrality is the HITS counterpart to authority. Hubs point to good authorities.

𝐡=principal eigenvector of AA⊤ \mathbf{h} = \text{principal eigenvector of } A\,A^{\top}

Meaning. A high value indicates outgoing ties to high-authority nodes.

centrality_hub(student_interactions)

SALSA Centrality

SALSA is a stochastic link-analysis method related to HITS for directed graphs.

𝐚=principal eigenvector of Ac⊤Ar,Ar,Ac=row- and column-normalised A \mathbf{a} = \text{principal eigenvector of } A_c^{\top} A_r, \quad A_r, A_c = \text{row- and column-normalised } A

Meaning. A high value indicates directed authority under the SALSA random-walk model.

centrality_salsa(student_interactions)

LeaderRank Centrality

LeaderRank is a PageRank-like directed ranking method that adds a ground node gg linked both ways to every node; the stationary random-walk mass on gg is then redistributed equally.

𝐬*=stationary distribution of the walk on G∪{g},C(v)=sv*+1nsg* \mathbf{s}^{*} = \text{stationary distribution of the walk on } G \cup \{g\}, \quad C(v) = s^{*}_v + \tfrac{1}{n} s^{*}_g

Meaning. A high value indicates directed prestige under the LeaderRank model.

centrality_leaderrank(student_interactions)

Alpha Centrality

Alpha centrality is an eigenvector-like measure that includes exogenous input.

𝐱=(I−αA⊤)−1𝐞 \mathbf{x} = (I - \alpha A^{\top})^{-1} \mathbf{e}

Meaning. A high value indicates recursive prominence under the chosen attenuation and exogenous assumptions.

Arguments. mode

centrality_alpha(student_interactions)

Bonacich Power Centrality

Bonacich power centrality scores nodes using the centrality of their neighbours and a parameter $\\beta$ controlling dependence.

𝐜(α,β)=α(I−βA)−1A𝟏 \mathbf{c}(\alpha, \beta) = \alpha (I - \beta A)^{-1} A\,\mathbf{1}

Meaning. A high value indicates a favourable recursive position under the selected Bonacich parameterization.

Arguments. mode

centrality_power(student_interactions)

Katz Centrality

Katz centrality counts walks from all nodes to a focal node, attenuating longer walks.

𝐱=(I−αA⊤)−1𝟏,α=0.1 \mathbf{x} = (I - \alpha A^{\top})^{-1} \mathbf{1}, \quad \alpha = 0.1

Meaning. A high value indicates that many short and longer walks reach the node. The attenuation parameter must be valid for the graph.

Arguments. katz_alpha

centrality_katz(student_interactions)

Hubbell Centrality

Hubbell centrality is an input-output centrality where status is recursively reinforced through ties.

𝐱=(I−wW)−1𝟏,w=0.5,W=weighted adjacency \mathbf{x} = (I - w W)^{-1} \mathbf{1}, \quad w = 0.5,\; W = \text{weighted adjacency}

Meaning. A high value indicates recursive prominence under the chosen weight factor. Some parameter settings make the system singular.

Arguments. hubbell_weight

centrality_hubbell(student_interactions)

Subgraph Centrality

Subgraph centrality measures participation in closed walks, with shorter closed walks weighted more strongly.

SC(v)=∑k=0∞(Ak)vvk!=(eA)vv \mathrm{SC}(v) = \sum_{k=0}^{\infty} \frac{(A^k)_{vv}}{k!} = (e^{A})_{vv}

Meaning. A high value indicates embeddedness in many closed walk structures.

centrality_subgraph(student_interactions)

Laplacian Centrality

Laplacian centrality measures a node’s contribution to the graph’s Laplacian energy.

CL(v)=EL(G)−EL(G\v)EL(G),EL(G)=∑iμi2(μi=Laplacian eigenvalues) C_L(v) = \frac{E_L(G) - E_L(G \setminus v)}{E_L(G)}, \quad E_L(G) = \sum_i \mu_i^2 \;\; (\mu_i = \text{Laplacian eigenvalues})

Meaning. A high value indicates a large local structural contribution under the Laplacian energy definition.

centrality_laplacian(student_interactions)

Communicability Centrality

Communicability centrality uses the matrix exponential to summarise walk-based communication potential.

CComm(v)=∑u∈V(eA)vu C_{\mathrm{Comm}}(v) = \sum_{u \in V} (e^{A})_{vu}

Meaning. A high value indicates many walk-based routes to other nodes, with shorter walks weighted more strongly.

centrality_communicability(student_interactions)

Communicability Betweenness Centrality

Communicability betweenness measures walk-based communicability between other pairs through a node.

CCB(v)=1(n−1)(n−2)∑s≠t≠vGst−Gst(v)Gst,G=eA C_{CB}(v) = \frac{1}{(n-1)(n-2)} \sum_{s \ne t \ne v} \frac{G_{st} - G_{st}^{(v)}}{G_{st}}, \quad G = e^{A}

Meaning. A high value indicates a node that lies on many walks between other nodes. G(v)G^{(v)} is computed with vv removed.

Random Walk Centrality

Random walk centrality (Noh and Rieger 2004) is a node’s stationary probability over its relaxation time.

CRW(v)=πvτv,τv=∑t≥0(Pvv(t)−πv),1CRW(v)=∑uπumuv C_{RW}(v) = \frac{\pi_v}{\tau_v}, \quad \tau_v = \sum_{t \ge 0} \bigl( P_{vv}(t) - \pi_v \bigr), \quad \frac{1}{C_{RW}(v)} = \sum_{u} \pi_u m_{uv}

Meaning. A high value indicates a node that a random walker reaches quickly from anywhere in the network. πv\pi_v is the stationary probability, Pvv(t)P_{vv}(t) the probability of being back at vv after tt steps and muvm_{uv} the mean first-passage time.

centrality_random_walk(student_interactions)

Markov Centrality

Markov centrality is based on mean first-passage times in a Markov process on the graph.

CMk(v)=11n∑umuv,muv=mean first-passage time u→v C_{\mathrm{Mk}}(v) = \frac{1}{\frac{1}{n} \sum_{u} m_{uv}}, \quad m_{uv} = \text{mean first-passage time } u \to v

Meaning. A high value indicates that the node is reached quickly on average under the Markov process.

centrality_markov(student_interactions)

TOPSIS with relative entropy (TOPSIS-RE)

Rate every node on four indicators, degree, closeness, betweenness and how late it is peeled off the network, and score it by how near it comes to the best value of each and how far it stays from the worst.

Ci=Si−Si++Si−,Si±={∑j[rj±log⁡rj±rij+(1−rj±)log⁡1−rj±1−rij]}1/2 C_i=\frac{S_i^{-}}{S_i^{+}+S_i^{-}},\qquad S_i^{\pm}=\Bigl\{\sum_{j}\Bigl[r_j^{\pm}\log\frac{r_j^{\pm}}{r_{ij}}+(1-r_j^{\pm})\log\frac{1-r_j^{\pm}}{1-r_{ij}}\Bigr]\Bigr\}^{1/2}

Meaning. A high value indicates a node close to the best observed value on all four indicators at once; a node best on all four scores 1. The four weights (0.0625, 0.1875, 0.1875, 0.5625) are fixed by the method. A node with any indicator at zero scores 0, which covers every node with a single tie, whose betweenness is zero. It needs a connected network whose nodes are not all alike; otherwise every node returns NA with a warning.

centrality_topsis_re(student_interactions)

Hybrid centrality

Rank the nodes on eight centralities, betweenness, closeness and eigenvector centrality with and without weights, degree and strength, and average the ranks.

HC=BCw+BCu+LCw+LCu+ku+ECw+ECu+NSw−88(N−1) HC=\frac{BC^{w}+BC^{u}+LC^{w}+LC^{u}+k^{u}+EC^{w}+EC^{u}+NS^{w}-8}{8(N-1)}

Meaning. A high value indicates a node that is central in every sense at once: on short paths, close to the others, tied to central nodes, and well connected. The score is 1 for a node first on all eight rankings and 0 for a node last on all of them. It needs a connected undirected network; otherwise every node returns NA with a warning.

Arguments. weighted

centrality_hybrid(student_interactions)

Long-range interaction centrality (LRIC, maximal path)

Ask how much a node can sway each other node, directly when its tie is needed to tip that node’s incoming influence over a quota, and indirectly through the best chain of such ties.

LRIC(i)=∑jcij*uj,cij=wijmin⁡∑l∈Ω(j)wlj,cij*=maxP:i→j∏(a,b)∈Pcab,uj=∑kwjk∑l,kwlk LRIC(i)=\sum_j c^{*}_{ij}u_j,\qquad c_{ij}=\frac{w_{ij}}{\min\sum_{l\in\Omega(j)}w_{lj}},\qquad c^{*}_{ij}=\max_{P:\,i\to j}\prod_{(a,b)\in P}c_{ab},\qquad u_j=\frac{\sum_k w_{jk}}{\sum_{l,k}w_{lk}}

Meaning. A high value indicates a node whose ties are decisive for nodes that are themselves influential, directly or through intermediaries. A tie counts fully when it alone meets the target’s quota (lric_quota, default half of the incoming weight) and not at all when it is never needed. lric_path_length limits the length of chains (default: no limit). Direction and weights are used.

Arguments. lric_quota, lric_path_length, weighted, enumeration_limit, normalized

centrality_lric_max(student_interactions)

All cycle betweenness

Count the closed loops that pass through a node, a longer loop counting less.

CA(i)=∑k=3nαk−2sk(i) C_A(i)=\sum_{k=3}^{n}\alpha^{k-2}s_k(i)

Meaning. A high value indicates a node that lies on many cycles, so that there are many alternative routes around it and through it. Nodes of tree-like parts score zero. cycle_alpha (default 0.5) sets how fast longer cycles lose weight. Every simple cycle is enumerated, so the measure suits small or sparse networks; past enumeration_limit search steps it returns NA with a warning.

Arguments. cycle_alpha, enumeration_limit, normalized

centrality_all_cycle_betweenness(student_interactions)

Transportation centrality

Let the traffic between every two nodes spread over all routes that visit no node twice, shorter routes carrying more, and measure the share that passes through the node.

TC(v)=1(N−1)(N−2)∑s≠v≠t∑i∈Ps,tve−βCi∑j∈Ps,te−βCj TC(v)=\frac{1}{(N-1)(N-2)}\sum_{s\neq v\neq t}\frac{\sum_{i\in P^{v}_{s,t}}e^{-\beta C_i}}{\sum_{j\in P_{s,t}}e^{-\beta C_j}}

Meaning. A high value indicates a node that carries a large share of traffic when travellers do not all take the shortest route. transport_beta (default 0.1) sets how strongly shorter routes are preferred: large values give shortest-path betweenness, zero counts every route alike. Every simple path is enumerated, so the measure suits small or sparse networks; past enumeration_limit search steps it returns NA with a warning.

Arguments. transport_beta, enumeration_limit, normalized

centrality_transportation(student_interactions)

Path-transfer centrality

Send a flow from the node that never visits a node twice and may stop at every step, and measure how unpredictable its resting place is.

CH(u)=−∑vpuvlog⁡2puv C_H(u)=-\sum_{v}p_{uv}\log_2 p_{uv}

Meaning. A high value indicates a node whose flow can end up in many places with similar probability, a sign of a wide and even reach. A node without outgoing ties scores zero. The value is in bits. Every simple path is enumerated, so the measure suits small or sparse networks; past enumeration_limit search steps it returns NA with a warning.

Arguments. enumeration_limit, normalized

centrality_path_transfer(student_interactions)

Counting betweenness

Count how many times a random walker passes a node on its way from one node to its first arrival at another, on average over all pairs.

Cc(i)=1n(n−1)∑s∑t≠sNst(i),Nst(i)=∑j≠tNijst+Njist2,Nijst=mij[(𝐈−𝐌−t)−1]si C_c(i)=\frac{1}{n(n-1)}\sum_{s}\sum_{t\neq s}N^{st}(i),\qquad N^{st}(i)=\sum_{j\neq t}\frac{N^{st}_{ij}+N^{st}_{ji}}{2},\qquad N^{st}_{ij}=m_{ij}\bigl[(\mathbf{I}-\mathbf{M}_{-t})^{-1}\bigr]_{si}

Meaning. A high value indicates a node that random traffic between other nodes visits often, counting every visit, including walks that go back and forth. Direction, weights and self-loops are used, and a self-loop raises the score of its node. The score is an expected number of visits and can exceed one. It needs the nodes with both incoming and outgoing ties to be strongly connected; otherwise every node returns NA with a warning.

Arguments. weighted, normalized

centrality_counting_betweenness(student_interactions)

Dynamical spanning tree (DST) centrality

Measure the share of the network’s spanning trees that disappears when the node is removed.

DST(i)=1−t(G\{vi})t(G) DST(i)=1-\frac{t(G\setminus\{v_i\})}{t(G)}

Meaning. A high value indicates a node that most of the network’s tree-like backbones depend on. A node whose removal splits the network scores 1 and a node with a single tie scores 0. The score needs a connected network; otherwise every node returns NA with a warning.

Arguments. normalized

centrality_dst(student_interactions)

NWRank

Let nodes and links score each other: a node hands its score to its links, favouring links that lead to well-connected nodes and links that many shortest paths use, and each link hands its score back to its two ends.

𝐱=𝐖𝐇𝐱,hbj=αkb∑aka+(1−α)BCb∑aBCa \mathbf{x}=\mathbf{W}\mathbf{H}\mathbf{x},\qquad h_{bj}=\alpha\frac{k_b}{\sum_a k_a}+(1-\alpha)\frac{BC_b}{\sum_a BC_a}

Meaning. A high value indicates a node whose links are important and lead to important nodes. nwrank_alpha (default 0.5) balances the degree of the node at the far end of a link against the betweenness of the link. Scores sum to one. The score needs the nodes that have links to form one connected component; otherwise every node returns NA with a warning.

Arguments. nwrank_alpha, normalized

centrality_nwrank(student_interactions)

Biased random walk centrality

Follow a walker that prefers to step to neighbours with many ties whose own contacts do not know each other, and that now and then jumps to a random node.

P(v→w)∝αfdeg(w)+(1−α)fnd(w),fdeg(v)=1−1|N(v)|,fnd(v)=1−∑w∈N(v)|N(w)∩N(v)|(|N(w)|−1)|N(v)| P(v\to w)\propto\alpha f_{deg}(w)+(1-\alpha)f_{nd}(w),\qquad f_{deg}(v)=1-\frac{1}{|N(v)|},\qquad f_{nd}(v)=1-\sum_{w\in N(v)}\frac{|N(w)\cap N(v)|}{(|N(w)|-1)\,|N(v)|}

Meaning. A high value indicates a node the walker visits often: one reached through well-connected neighbours whose surroundings are open and not tightly knit. The value is the long-run share of visits and sums to one. brw_alpha (default 0.5) weighs the two preferences and brw_jump (default 0.15) is the chance of a random jump.

Arguments. brw_alpha, brw_jump, normalized

centrality_biased_random_walk(student_interactions)

X-nonbacktracking centrality

Score a node by how much the largest nonbacktracking eigenvalue of the network, which governs how easily a contagion takes hold, is expected to fall when the node is removed.

αc=(∑iacivi)2−∑iaci(vi)2,vi=∑jaijvj→i,𝐯⊤𝐏𝐯=1 \alpha_c=\Bigl(\sum_i a_{ci}v^i\Bigr)^2-\sum_i a_{ci}(v^i)^2,\qquad v^i=\sum_j a_{ij}v_{j\to i},\qquad \mathbf{v}^{\top}\mathbf{P}\mathbf{v}=1

Meaning. A high value indicates a node whose removal would lower the network’s capacity to sustain spreading the most, which makes it a target for immunisation. The eigenvector is computed on the network without the node. The score is NA, with a warning, where the network without the node has no principal nonbacktracking eigenvector, for example when it is a tree.

Arguments. normalized

centrality_x_nonbacktracking(student_interactions)

Total Effects Centrality (TEC)

Score a node by the share of the group’s final opinion that traces back to it, when every actor weighs its own view and its contacts’ views equally and the process runs to consensus.

cTEC(j)=∑i≠jvijn−1=cj,c′=c′𝐖,𝐖=𝐀/rowSums⁡(𝐀),aii=1 c_{TEC}(j)=\frac{\sum_{i \ne j} v_{ij}}{n-1}=c_j,\qquad c'=c'\mathbf{W},\qquad \mathbf{W}=\mathbf{A}/\operatorname{rowSums}(\mathbf{A}),\; a_{ii}=1

Meaning. A high value indicates a node whose initial position weighs most in the consensus the network settles on. Scores sum to one. On an undirected network the score is the degree plus one, divided by the total of that quantity. The score is defined only when every node can reach every other; otherwise every node returns NA with a warning.

Arguments. normalized

centrality_tec(student_interactions)

Mediative Effects Centrality (MEC)

Score a node by how often influence travelling from one actor towards another passes through it on the way.

cMEC(j)=∑k≠jt‾(k)jn−1,t‾(k)j=∑i≠j,kt(k)ij(n−2)t(k)jj,𝐓(k)=(𝐈−𝐖(k))−1 c_{MEC}(j)=\frac{\sum_{k \ne j}\bar{t}_{(k)j}}{n-1},\qquad \bar{t}_{(k)j}=\frac{\sum_{i \ne j,k} t_{(k)ij}}{(n-2)\,t_{(k)jj}},\qquad \mathbf{T}_{(k)}=(\mathbf{I}-\mathbf{W}_{(k)})^{-1}

Meaning. A high value indicates a node that transmits the effects of the others: a random-walk counterpart of betweenness that counts every route, weighted by how likely it is, and not only shortest paths. The score lies between 0 and 1, and a node that all influence must pass through scores 1. It needs at least three nodes and a network in which every node can reach every other; otherwise every node returns NA with a warning.

Arguments. normalized

centrality_mec(student_interactions)

Immediate Effects Centrality (IEC)

Score a node by how quickly everyone else’s influence reaches it, along a chain in which every actor also listens to itself.

cIEC(j)=(∑i≠jmijn−1)−1,𝐌=(𝐈−𝐙+𝐄𝐙dg)diag⁡(1/c),𝐙=(𝐈−𝐖+𝟏c′)−1 c_{IEC}(j)=\Bigl(\frac{\sum_{i \ne j} m_{ij}}{n-1}\Bigr)^{-1},\qquad \mathbf{M}=(\mathbf{I}-\mathbf{Z}+\mathbf{E}\mathbf{Z}_{dg})\operatorname{diag}(1/c),\qquad \mathbf{Z}=(\mathbf{I}-\mathbf{W}+\mathbf{1}c')^{-1}

Meaning. A high value indicates a node that the influence of all other nodes reaches quickly, through short chains of influence. The score is defined only when every node can reach every other; otherwise every node returns NA with a warning.

Arguments. normalized

centrality_iec(student_interactions)

Second-Order Centrality

Second-order centrality summarises variability in random-walk return times.

SO(v)=sd⁡u(muv) \mathrm{SO}(v) = \operatorname{sd}_{u}\bigl( m_{uv} \bigr)

Meaning. The statistic describes the variability of a random walk’s return times to the node; lower values are more central.

centrality(student_interactions, measures = "second_order")

Information Centrality

Information centrality measures centrality through resistance distance, the information carried by all paths between two nodes.

CI(v)=(Cvv+T−2Rvn)−1,C=(D−A+J)−1,T=tr⁡C,Rv=∑jCvj C_I(v) = \left( C_{vv} + \frac{T - 2 R_v}{n} \right)^{-1}, \quad C = (D - A + J)^{-1},\; T = \operatorname{tr} C,\; R_v = \textstyle\sum_j C_{vj}

Meaning. A high value indicates a central position under the information-flow model.

centrality_information(student_interactions)

Nonbacktracking Centrality

Nonbacktracking centrality scores nodes using walks that do not immediately return along the edge just traversed (the Hashimoto matrix BB).

B(i→j),(k→l)=δjk(1−δil),C(v)∝aggregated leading eigenvector of B B_{(i \to j),\,(k \to l)} = \delta_{jk}\,(1 - \delta_{il}), \quad C(v) \propto \text{aggregated leading eigenvector of } B

Meaning. A high value indicates walk-based prominence after reducing immediate backtracking inflation.

centrality(student_interactions, measures = "nonbacktracking")

Diffusion Degree

The default method adds the scaled degree of the focal node and its neighbours. On a simple undirected graph:

DD(i)=λ(ki+∑j∈N(i)kj) DD(i) = \lambda\left(k_i + \sum_{j\in N(i)} k_j\right)

Meaning. High values indicate local connectivity through the node and its neighbours. With diffusion_method = "power_series" (automatic for TNA inputs), the function instead returns row sums of W + W^2 + … + W^n, min-max scaled to the range from 0 to 1. That variant fixes the horizon at n and ignores lambda and mode.

Arguments. mode, lambda, diffusion_method

centrality_diffusion(student_interactions)

Infection Centrality

Infection centrality estimates spreading potential through infection-style self-avoiding walks with attenuation.

Inf(v)=∑d=1Lβd+1(1−μ)dwd(v),β=0.8,μ=0,L=6 \mathrm{Inf}(v) = \sum_{d=1}^{L} \beta^{\,d+1} (1 - \mu)^{d}\, w_d(v), \quad \beta = 0.8,\; \mu = 0,\; L = 6

Meaning. A high value indicates a favourable position under the assumed infection process. wd(v)w_d(v) counts length-dd self-avoiding walks from vv.

centrality(student_interactions, measures = "infection")

Edge Percolated Component

The edge percolated component averages the size of the component a node ends up in when edges survive at random.

EPC(v)=1Rn∑r=1R|Cr(v)|,Pr⁡(edge survives)=1−t \mathrm{EPC}(v) = \frac{1}{R\,n} \sum_{r=1}^{R} |C_r(v)|, \quad \Pr(\text{edge survives}) = 1 - t

Meaning. A high value indicates a node that stays connected to a large share of the network under random link failure. The value is a Monte Carlo estimate; set epc_seed to make it reproducible.

Arguments. epc_threshold, epc_runs, epc_seed

centrality_epc(student_interactions)

VoteRank Centrality

VoteRank is an iterative voting algorithm for ranking spreader candidates: each round the highest-voted node is selected, its voting ability is zeroed, and its neighbours’ voting abilities are reduced.

Meaning. A high value indicates early selection by the VoteRank rule.

centrality_voterank(student_interactions)

Expected Influence 1-Step

Expected influence 1-step sums signed edge weights adjacent to a node.

EI1(v)=∑u∈VWvu,W=signed weight matrix \mathrm{EI}_1(v) = \sum_{u \in V} W_{vu}, \quad W = \text{signed weight matrix}

Meaning. A high positive value indicates strong positive immediate signed connectivity. This is mainly meaningful for signed networks.

Arguments. mode

centrality_expected_influence_1(student_interactions)

Expected Influence 2-Step

Expected influence 2-step extends signed influence to one- and two-step paths.

EI2(v)=EI1(v)+∑u∈VWvuEI1(u) \mathrm{EI}_2(v) = \mathrm{EI}_1(v) + \sum_{u \in V} W_{vu}\,\mathrm{EI}_1(u)

Meaning. A high positive value indicates positive signed connectivity through direct and indirect paths. Interpretation requires a signed network.

Arguments. mode

centrality_expected_influence_2(student_interactions)

Spanning Tree Centrality

Spanning tree centrality summarises a node’s contribution across spanning-tree structures via the Laplacian pseudoinverse L+L^{+}.

ST(v)=1Lvv+,L+=Moore-Penrose pseudoinverse of L \mathrm{ST}(v) = \frac{1}{L^{+}_{vv}}, \quad L^{+} = \text{Moore-Penrose pseudoinverse of } L

Meaning. A high value indicates structural participation across many tree-like ways of connecting the graph.

centrality(student_interactions, measures = "spanning_tree")

Shapley Value, Game 1

Shapley value of the node in the coalition game whose worth is the number of nodes a coalition covers within one hop.

SV1(v)=∑u∈{v}∪N(v)11+ku SV_1(v) = \sum_{u \in \{v\} \cup N(v)} \frac{1}{1 + k_u}

Meaning. A high value indicates a node whose presence adds much one-hop coverage to a typical coalition. Values sum to nn.

centrality_shapley_game1(student_interactions)

Shapley Value, Game 2

Shapley value in the game where a node is covered once at least kk coalition members are adjacent to it.

SV2(v)=min⁡(1,k1+kv)+∑u∈N(v)max⁡(0,ku−k+1ku(1+ku)) SV_2(v) = \min\!\left(1, \frac{k}{1 + k_v}\right) + \sum_{u \in N(v)} \max\!\left(0, \frac{k_u - k + 1}{k_u (1 + k_u)}\right)

Meaning. A high value indicates a node that helps push many neighbours over the kk-neighbour threshold. With k=1k = 1 this is game 1.

Arguments. shapley_k

centrality_shapley_game2(student_interactions)

Shapley Value, Game 3

Shapley value in the game where a coalition covers every node within a hop cutoff.

SV3(v)=∑u∈{v}∪Nd(v)11+|Nd(u)|,Nd(u)={w:d(u,w)≤dcut} SV_3(v) = \sum_{u \in \{v\} \cup N_d(v)} \frac{1}{1 + |N_d(u)|}, \quad N_d(u) = \{w : d(u, w) \le d_{cut}\}

Meaning. A high value indicates a node that reaches many otherwise hard-to-reach nodes within the cutoff. With cutoff 1 this is game 1.

Arguments. shapley_cutoff

centrality_shapley_game3(student_interactions)

Rumor Centrality

Rumor centrality counts the spreading orders that could have started at a node; on a general graph it is evaluated on the node’s breadth-first tree.

log⁡R(v)=log⁡N!−∑ulog⁡Tuv \log R(v) = \log N! - \sum_{u} \log T^v_u

Meaning. A high value indicates a plausible origin of a spread, typically a node near the centre. Returned on the log scale.

centrality_rumor(student_interactions)

DegreeDiscountIC

DegreeDiscountIC is the greedy seed-selection order under degree discounting for the independent-cascade model.

ddv=dv−2tv−(dv−tv)tvp dd_v = d_v - 2 t_v - (d_v - t_v)\, t_v\, p

Meaning. A high score indicates an early selection: the first node selected scores 1, the last 1/n1/n. Ties follow node order.

Arguments. discount_p

centrality_degree_discount(student_interactions)

SingleDiscount

SingleDiscount is the greedy seed-selection order where each neighbour of a new seed discounts its degree by one.

ddv=dv−tv dd_v = d_v - t_v

Meaning. A high score indicates an early selection. Equivalent to repeatedly removing the highest-degree node.

centrality_single_discount(student_interactions)

NCVoteRank

NCVoteRank is VoteRank with each voter’s ability weighted by its normalised neighbourhood coreness, and two-hop weakening after each election.

su=∑v∈N(u)vav[θ+(1−θ)ncv] s_u = \sum_{v \in N(u)} va_v \,[\theta + (1 - \theta)\, nc_v]

Meaning. A high score indicates an early election. With θ=1\theta = 1 and two-hop weakening switched off, this is VoteRank.

Arguments. ncvote_theta

centrality_ncvoterank(student_interactions)

WVoteRank

WVoteRank is VoteRank for weighted graphs: votes are weighted by edge weight and the score takes a square root.

sv=kv∑u∈N(v)vauwvu s_v = \sqrt{k_v \sum_{u \in N(v)} va_u w_{vu}}

Meaning. A high score indicates an early election. Neighbours of an elected node lose 1/⟨w⟩1/\langle w \rangle, with ⟨w⟩\langle w \rangle the average strength.

centrality_wvoterank(student_interactions)

EnRenew

EnRenew elects the node whose neighbours supply the most entropy, then renews the entropies around it.

Ev=∑u∈N(v)−puvln⁡puv,puv=ku∑l∈N(v)kl E_v = \sum_{u \in N(v)} -p_{uv} \ln p_{uv}, \quad p_{uv} = \frac{k_u}{\sum_{l \in N(v)} k_l}

Meaning. A high score indicates an early election. Terms within the renewal radius are scaled by 1−1/(2d−1ln⁡⟨k⟩)1 - 1/(2^{d-1} \ln\langle k \rangle).

Arguments. enrenew_depth

centrality_enrenew(student_interactions)

VoteRank++

VoteRank++ starts abilities from degree, splits votes in proportion to neighbour degree, and suppresses abilities multiplicatively after each election.

sv=kv∑u∈N(v)vauwu→v,vav(0)=ln⁡(1+kv/kmax) s_v = \sqrt{k_v \sum_{u \in N(v)} va_u\, w_{u \to v}}, \quad va_v^{(0)} = \ln(1 + k_v / k_{\max})

Meaning. A high score indicates an early election. Abilities are multiplied by λ\lambda one step away and λ\sqrt{\lambda} two steps away.

Arguments. voterank_lambda

centrality_voterank_plus(student_interactions)

Node Contraction

Node contraction importance measures how much the network’s cohesion rises when a node and its neighbours are merged into one.

IMC(v)=1−∂(G)∂(Gv),∂(G)=1NL‾ IMC(v) = 1 - \frac{\partial(G)}{\partial(G_v)}, \quad \partial(G) = \frac{1}{N \bar{L}}

Meaning. A high value indicates a node whose contraction shortens paths most.

centrality_node_contraction(student_interactions)

Improved Node Contraction

Improved node contraction adds the contraction scores of a node’s edges, computed on the line graph.

IIMC(v)=αIMC(v)+β∑e∋vIMCL(G)(e),α/β=5 IIMC(v) = \alpha\, IMC(v) + \beta \sum_{e \ni v} IMC_{L(G)}(e), \quad \alpha / \beta = 5

Meaning. A high value indicates a node that is important both itself and through its edges. Values can exceed 1.

Arguments. contraction_rho

Two-Way Random Walk Betweenness

Two-way random walk betweenness counts, over all node pairs, how often a node lies on the most likely two-step out-and-back route.

Tij[t,k]=PitjPjki,Pitj=witwtjdidj T_{ij}[t, k] = P_{itj} P_{jki}, \quad P_{itj} = \frac{w_{it} w_{tj}}{d_i d_j}

Meaning. A high count indicates a node on many dominant two-way routes. Cost grows as n4n^4.

centrality_two_way_rw(student_interactions)

Neighbourhood structure and cohesion

Degree and importance of lines (DIL)

Add to a node’s degree the share it can claim of the importance of the lines that touch it, where a line matters when its endpoints reach far beyond it and few triangles offer a way round.

Lvi=ki+∑vj∈ΓiWvivj,Wvivj=Ieijki−1ki+kj−2,Iemn=(km−p−1)(kn−p−1)p/2+1 L_{v_i}=k_i+\sum_{v_j\in\Gamma_i}W_{v_iv_j},\qquad W_{v_iv_j}=I_{e_{ij}}\frac{k_i-1}{k_i+k_j-2},\qquad I_{e_{mn}}=\frac{(k_m-p-1)(k_n-p-1)}{p/2+1}

Meaning. A high value indicates a node with many ties, several of them important: ties whose endpoints reach far beyond them and that few triangles bypass. The score is at least the node’s degree, and equals it in complete graphs and stars.

Arguments. normalized

centrality_dil(student_interactions)

Lhc index

Score a node by how much degree, inflated by each contributor’s share of the network’s triangles, sits within a couple of steps of its neighbours.

Lhc(v)=∑w∈τ(v)C(w),C(v)=∑u∈Φ(v)ku(1+TP(u))d2(uv),TP(u)=NTS(u)TNTS Lhc(v)=\sum_{w\in\tau(v)}C(w),\qquad C(v)=\sum_{u\in\Phi(v)}\frac{k_u\bigl(1+TP(u)\bigr)}{d^{2}(uv)},\qquad TP(u)=\frac{NTS(u)}{TNTS}

Meaning. A high value indicates a node whose surroundings, within lhc_radius steps (default 2), hold many well-connected nodes that sit on many triangles. A node of modest degree can therefore outscore a busier one if its neighbours are well embedded. On a graph without triangles the index reduces to a distance-discounted sum of degrees.

Arguments. lhc_radius, normalized

centrality_lhc(student_interactions)

Hybrid characteristic centrality (HCC)

Add a node’s blended local degree to how late a repeated minimum-degree peel gets round to removing it.

HCC(u)=kex(u)kmax⁡ex+pos(u)posmax,kex(u)=δk(u)+(1−δ)∑v∈ϕ(u)k(v) HCC(u)=\frac{k^{ex}(u)}{k^{ex}_{\max}}+\frac{pos(u)}{pos_{\max}},\qquad k^{ex}(u)=\delta k(u)+(1-\delta)\!\!\sum_{v\in\phi(u)}\!\!k(v)

Meaning. A high value indicates a node that combines a high degree, blended with its neighbours’ degrees, with a position deep in the network, reached late when low-degree nodes are repeatedly peeled away. hcc_delta (default 0.5) weights the node’s own degree against its neighbours’. Scores range from 0 to 2.

Arguments. hcc_delta, normalized

centrality_hcc(student_interactions)

Extended hybrid characteristic centrality (EHCC)

Collect a node’s own hybrid characteristic score together with every neighbour’s.

EHCC(u)=HCC(u)+∑v∈ϕ(u)HCC(v) EHCC(u)=HCC(u)+\sum_{v\in\phi(u)}HCC(v)

Meaning. A high value indicates a node that, together with its neighbours, scores highly on hybrid characteristic centrality. It rewards nodes with well-connected, deeply embedded neighbours, whatever the node’s own position. An isolate scores its own hybrid characteristic centrality.

Arguments. hcc_delta, normalized

centrality_ehcc(student_interactions)

KED method

Weight the degree by how evenly a node’s neighbours carry its local paths, then by how many second-step paths there are.

KED(i)=ki(1+Hi)exp⁡(KiN),Hi=∑j∈N(i)−pjlog⁡pjlog⁡ki,pj=kjKi,Ki=∑j∈N(i)kj KED(i)=k_i\bigl(1+H_i\bigr)\exp\!\Bigl(\frac{K_i}{N}\Bigr),\qquad H_i=\frac{\sum_{j\in N(i)}-p_j\log p_j}{\log k_i},\quad p_j=\frac{k_j}{K_i},\quad K_i=\sum_{j\in N(i)}k_j

Meaning. A high value indicates a node with many neighbours whose onward connections are numerous and evenly spread among them. Scores depend on the number of nodes in the whole graph, so only rankings are comparable across graphs of different size.

Arguments. normalized

centrality_ked(student_interactions)

Local neighbor contribution (LNC)

Multiply what a node contributes on its own by what its neighbourhood contributes to it.

LNC(i)=di(1−1/di)di−1⏟ownCon(i)⋅di2∑j∈N(i)djn−1⏟neiCon(i),00:=1 LNC(i)=\underbrace{d_i\bigl(1-1/d_i\bigr)^{d_i-1}}_{ownCon(i)}\cdot\underbrace{d_i^{2}\frac{\sum_{j\in N(i)}d_j}{n-1}}_{neiCon(i)},\qquad 0^0:=1

Meaning. A high value indicates a node with many neighbours that are themselves well connected. A node with a single neighbour scores its neighbour’s degree centrality. Scores depend on the number of nodes in the whole graph, so only rankings are comparable across graphs of different size.

Arguments. normalized

centrality_lnc(student_interactions)

Neighborhood (neighbor distance) centrality

Add up a benchmark centrality over the non-backtracking walks that leave the node, discounted once per step.

Cin(θ)=θi+∑k=1nak∑w∈Wk(i)θend(w),Wk(i)={non-backtracking walks of length k from i} C^n_i(\theta)=\theta_i+\sum_{k=1}^{n}a^k\!\!\sum_{w\in W_k(i)}\!\!\theta_{\mathrm{end}(w)},\quad W_k(i)=\{\text{non-backtracking walks of length }k\text{ from }i\}

Meaning. A high value indicates a node that reaches many central nodes, by nd_mass (default degree), within a few steps. Each step of distance is discounted by nd_decay (default 0.2), up to nd_order steps (default 2). With either set to zero, the score is the base centrality itself.

Arguments. nd_order, nd_decay, nd_mass, normalized

centrality_neighbor_distance(student_interactions)

Coleman-Theil hierarchy

Concentration of Burt’s dyadic constraints over a node’s contacts.

Hi=∑j∈N(i)rijlog⁡(rij)dilog⁡di,rij=cij/mean⁡k∈N(i)cik H_i=\frac{\sum_{j\in N(i)}r_{ij}\log(r_{ij})}{d_i\log d_i},\quad r_{ij}=c_{ij}/\operatorname{mean}_{k\in N(i)}c_{ik}

Meaning. A high value indicates that the constraint on a node is concentrated in a few of its contacts. Scores lie between 0 and 1; a node with one contact scores 1 and an isolate 0.

Arguments. weighted, simplify, normalized

centrality_coleman_theil(student_interactions)

RMD-weighted degree (WD)

Peel the network round by round, each round removing every node of lowest current degree. Add up, over a node’s neighbours, the round in which each neighbour is removed, as a share of the number of rounds.

WD(v)=∑u∈N(v)Iter(u)MaxIter WD(v)=\sum_{u\in N(v)}\frac{Iter(u)}{MaxIter}

Meaning. A high value indicates a node whose neighbours are removed late, that is, neighbours deep inside the network. The removal round is the index iksd returns.

Arguments. normalized

centrality_wd(student_interactions)

Extended RMD-weighted degree (EWD)

Add up the RMD-weighted degree of a node’s neighbours, which carries the score wd one step further out.

EWD(v)=∑u∈N(v)WD(u) EWD(v)=\sum_{u\in N(v)}WD(u)

Meaning. A high value indicates a node whose neighbours themselves have deep neighbours. The node is counted once for each of its neighbours, as the worked value in the source requires.

Arguments. normalized

centrality_ewd(student_interactions)

Modified local centrality (MLC)

Take the semi-local centrality of a node and subtract twice the sum of its neighbours’ degrees, the part of the score that the node and its neighbours contribute themselves.

MLC(v)=∑u∈N(v)∑w∈N(u)N2(w)−2∑u∈N(v)ku MLC(v)=\sum_{u\in N(v)}\sum_{w\in N(u)}N_2(w)-2\sum_{u\in N(v)}k_u

Meaning. A high value indicates a node whose surroundings reach many nodes beyond its own neighbourhood. It ranks nodes almost as semilocal does, and it can be negative on a small component.

Arguments. normalized

centrality_mlc(student_interactions)

ProfitLeader

For each neighbour, multiply the degree mass a node holds apart from that neighbour by the Jaccard similarity of their closed neighbourhoods, and add the products up.

PC(u)=∑v∈N(u)(ku+∑s∈N(u)\N[v]ks)|N[u]∩N[v]||N[u]∪N[v]| PC(u)=\sum_{v\in N(u)}\Bigl(k_u+\sum_{s\in N(u)\setminus N[v]}k_s\Bigr)\frac{|N[u]\cap N[v]|}{|N[u]\cup N[v]|}

Meaning. A high value indicates a node with many well-connected neighbours of its own and much overlap with the neighbours it shares them with. The article is followed where it differs from the code its authors released.

Arguments. normalized

centrality_profitleader(student_interactions)

Hierarchical k-shell (HKS)

Peel the network round by round and record for each node the round it leaves in and how close it lies to the nodes that leave last. Multiply the sum of the two by the degree, then add the result up over two steps.

HKS(i)=∑j∈N(i)∑l∈N(j)kl(bl+fl),fl=maxu(bu−dlu) HKS(i)=\sum_{j\in N(i)}\sum_{l\in N(j)}k_l\,(b_l+f_l),\qquad f_l=\max_u\,(b_u-d_{lu})

Meaning. A high value indicates a node whose two-step surroundings are well connected and lie near the innermost part of the network.

Arguments. normalized

centrality_hks(student_interactions)

Diversity-strength centrality (DSC)

Peel the network round by round, each round removing every node of lowest current degree. For a node, multiply three things: the mean removal round of its neighbours, the entropy of those rounds, and how much the neighbours’ own neighbourhoods differ in the rounds they hold.

DSC(v)=S(v)kvH1(v)JSD(v),S(v)=∑u∈N(v)IKs(u) DSC(v)=\frac{S(v)}{k_v}\,H_1(v)\,JSD(v),\qquad S(v)=\sum_{u\in N(v)}IKs(u)

Meaning. A high value indicates a node whose neighbours lie deep in the network, at varied depths, and reach different parts of it. A node with one neighbour scores 0, and so does a node whose neighbours all have the same mix of neighbours.

Arguments. normalized

centrality_dsc(student_interactions)

Diversity-strength ranking (DSR)

Add up the diversity-strength centrality of a node’s neighbours.

DSR(v)=∑u∈N(v)DSC(u) DSR(v)=\sum_{u\in N(v)}DSC(u)

Meaning. A high value indicates a node surrounded by neighbours that score high on dsc.

Arguments. normalized

centrality_dsr(student_interactions)

Extended diversity-strength ranking (EDSR)

Add up the diversity-strength ranking of a node’s neighbours, which reaches the nodes two steps away.

EDSR(v)=∑u∈N(v)DSR(u) EDSR(v)=\sum_{u\in N(v)}DSR(u)

Meaning. A high value indicates a node whose two-step surroundings score high on dsc. The node itself is counted once for each of its neighbours, as the source prints the sum.

Arguments. normalized

centrality_edsr(student_interactions)

Local structural centrality (LSC)

For each neighbour of a node, count the nodes within two steps of the neighbour and add up their clustering coefficients; mix the two by lsc_alpha and sum over the neighbours.

LSC(v)=∑u∈N(v)(α|N2(u)|+(1−α)∑w∈N2(u)cw) LSC(v)=\sum_{u\in N(v)}\Bigl(\alpha\,|N_2(u)|+(1-\alpha)\sum_{w\in N_2(u)}c_w\Bigr)

Meaning. A high value indicates a node whose neighbours have large and tightly knit surroundings. The default lsc_alpha = 0.2 is the value the source fixes for its experiments; its worked example uses 0.7.

Arguments. lsc_alpha, normalized

centrality_lsc(student_interactions)

Global and local structure (GLS)

For each other node, raise 1.1 to the number of neighbours it shares with the node, add these up over the whole network, and multiply by the squared degree over n - 1.

GLS(i)=(ki∑j≠i1.1cij)kin−1 GLS(i)=\Bigl(k_i\sum_{j\ne i}1.1^{c_{ij}}\Bigr)\frac{k_i}{n-1}

Meaning. A high value indicates a node with many ties that shares neighbours with many other nodes. The formula is the one the numbers of the source follow; its printed equations do not reproduce them.

Arguments. normalized

centrality_gls(student_interactions)

K-shell iteration factor (KS-IF)

Refine the k-shell index of a node by the iteration in which it is removed within its shell, multiply by the degree, and add the result for the node and its neighbours.

IC(i)=δiki+∑j∈N(i)δjkj,δi=ksi(1+nimi) IC(i)=\delta_ik_i+\sum_{j\in N(i)}\delta_jk_j,\qquad\delta_i=ks_i\Bigl(1+\frac{n_i}{m_i}\Bigr)

Meaning. A high value indicates a well-connected node that is removed late within a deep shell and has such neighbours. No published value checks the implementation, because the illustration in the source is inconsistent.

Arguments. normalized

centrality_ks_if(student_interactions)

NL centrality

For each neighbour of a node, add the number of nodes within two steps of the neighbour and the importance of the tie to it.

NL(v)=∑u∈N(v)(ϕ(u)+Iuvkv−1kv+ku−2),Iuv=(ku−t−1)(kv−t−1)t/2+1 NL(v)=\sum_{u\in N(v)}\Bigl(\phi(u)+I_{uv}\frac{k_v-1}{k_v+k_u-2}\Bigr),\qquad I_{uv}=\frac{(k_u-t-1)(k_v-t-1)}{t/2+1}

Meaning. A high value indicates a node whose neighbours have large two-step surroundings and whose ties bridge otherwise separate nodes. The first term carries most of the score; the second is the tie term of dil.

Arguments. normalized

centrality_nl(student_interactions)

K-shell hybrid method (ksh)

For every node within a few steps, add the square root of the two nodes’ summed k-shell indices and a share of the other node’s degree, and divide by the squared distance.

ksh(m)=∑n:1≤dmn≤rksm+ksn+μkndmn2 ksh(m)=\sum_{n:\,1\le d_{mn}\le r}\frac{\sqrt{ks_m+ks_n}+\mu\,k_n}{d_{mn}^{2}}

Meaning. A high value indicates a node close to many deep or well-connected nodes. ksh_mu = 0.4 is the value of the source’s worked example; its authors tune it per network.

Arguments. ksh_mu, ksh_radius, normalized

centrality_ksh(student_interactions)

Extended k-shell hybrid method (ESKH)

Add up the k-shell hybrid score of a node’s neighbours.

ESKH(m)=∑j∈N(m)ksh(j) ESKH(m)=\sum_{j\in N(m)}ksh(j)

Meaning. A high value indicates a node whose neighbours themselves sit near many deep or well-connected nodes. The node’s own score is not added.

Arguments. ksh_mu, ksh_radius, normalized

centrality_eskh(student_interactions)

Improved k-shell hybrid method (IKH)

As the k-shell hybrid method, but with the square root of the product of the k-shell indices, and a degree weight that falls with the distance and sums to one over the levels.

IKH(i)=∑j:1≤dij≤rksiksj+μ(dij)kjdij2,μ(l)=2(r−l+1)r(r+1) IKH(i)=\sum_{j:\,1\le d_{ij}\le r}\frac{\sqrt{ks_i\,ks_j}+\mu(d_{ij})\,k_j}{d_{ij}^{2}},\qquad \mu(l)=\frac{2(r-l+1)}{r(r+1)}

Meaning. A high value indicates a node close to many deep nodes and to well-connected nodes nearby. There is no free weight; ksh_radius must be finite.

Arguments. ksh_radius, normalized

centrality_ikh(student_interactions)

Extended improved k-shell hybrid method (EIKH)

Add up the improved k-shell hybrid score of a node’s neighbours.

EIKH(i)=∑j∈N(i)IKH(j) EIKH(i)=\sum_{j\in N(i)}IKH(j)

Meaning. A high value indicates a node whose neighbours themselves sit near many deep nodes. The node’s own score is not added.

Arguments. ksh_radius, normalized

centrality_eikh(student_interactions)

Mixed core, degree and entropy (MCDE)

Add the k-shell index of a node, its degree, and the entropy of the shells its neighbours lie in.

MCDE(v)=ks(v)+kv−∑ipi(v)log⁡2pi(v) MCDE(v)=ks(v)+k_v-\sum_i p_i(v)\log_2 p_i(v)

Meaning. A high value indicates a node deep in the network with many neighbours spread over several shells. The degree is the largest term, so the ranking is close to that of degree.

Arguments. normalized

centrality_mcde(student_interactions)

Mixed core, degree and weighted entropy (MCDWE)

As MCDE, with each entropy term divided by the number of shells between it and the innermost shell, plus one.

MCDWE(v)=ks(v)+kv−∑ipi(v)log⁡2pi(v)K−i+1 MCDWE(v)=ks(v)+k_v-\sum_i \frac{p_i(v)\log_2 p_i(v)}{K-i+1}

Meaning. A high value indicates a node deep in the network with many neighbours spread over the inner shells.

Arguments. normalized

centrality_mcdwe(student_interactions)

Mixed core, semi-local degree and entropy (MCSDE)

Rescale the k-shell index, the semi-local centrality and the shell entropy of the neighbours each to the range 0 to 1, and add them.

MCSDE(v)=ks̃(v)+SL̃(v)+H̃(v) MCSDE(v)=\widetilde{ks}(v)+\widetilde{SL}(v)+\widetilde{H}(v)

Meaning. A high value indicates a node deep in the network with a large two-step neighbourhood and neighbours in several shells. The score lies between 0 and 3.

Arguments. normalized

centrality_mcsde(student_interactions)

Mixed core, semi-local degree and weighted entropy (MCSDWE)

As MCSDE, with the weighted entropy of MCDWE.

MCSDWE(v)=ks̃(v)+SL̃(v)+WH̃(v) MCSDWE(v)=\widetilde{ks}(v)+\widetilde{SL}(v)+\widetilde{WH}(v)

Meaning. A high value indicates a node deep in the network with a large two-step neighbourhood and neighbours in the inner shells. The score lies between 0 and 3.

Arguments. normalized

centrality_mcsdwe(student_interactions)

Degree and clustering coefficient (DCC)

Add the degrees of a node and its neighbours, and the clustering coefficients of the nodes within two steps discounted by the node’s own, with weights from the entropy weight method.

DCC(i)=αID(i)+βIC(i),ID(i)=ki+∑j∈N(i)kj,IC(i)=e−Ci∑j∈N2(i)Cj DCC(i)=\alpha I_D(i)+\beta I_C(i),\qquad I_D(i)=k_i+\sum_{j\in N(i)}k_j,\qquad I_C(i)=e^{-C_i}\sum_{j\in N_2(i)}C_j

Meaning. A high value indicates a node in a well-connected and clustered neighbourhood. On a network without a triangle the weights are undefined and the score is NA with a warning. The entropy weights printed in the source’s worked example do not follow from its network.

Arguments. normalized

centrality_dcc(student_interactions)

Edge clustering coefficient centrality (NC)

For each tie of a node, divide the number of triangles on the tie by the largest number it could be in, and add these up.

NC(u)=∑v∈N(u)zuvmin⁡(ku−1,kv−1) NC(u)=\sum_{v\in N(u)}\frac{z_{uv}}{\min(k_u-1,k_v-1)}

Meaning. A high value indicates a node whose ties sit in many triangles. A tie to a node of degree one adds nothing.

Arguments. normalized

centrality_edge_clustering(student_interactions)

Influence capability (IC)

Add a position term from the k-shell decomposition and the two-step sum of degrees, each divided by its total and weighted by their entropies.

IC(i)=w1ICP(i)∑lICP(l)+w2ICN(i)∑lICN(l),ICN(i)=∑j∈N(i)∑l∈N(j)kl IC(i)=w_1\frac{ICP(i)}{\sum_l ICP(l)}+w_2\frac{ICN(i)}{\sum_l ICN(l)},\qquad ICN(i)=\sum_{j\in N(i)}\sum_{l\in N(j)}k_l

Meaning. A high value indicates a node with many ties that is removed late in the k-shell decomposition, close to well-connected nodes. The entropy weights the source prints do not follow from its equations; its rankings do.

Arguments. normalized

centrality_influence_capability(student_interactions)

Extended H-index centrality (EHC)

For each neighbour, count its neighbours of degree at least k for every k, weight the counts by a slowly falling factor, and add over the neighbours.

EHC(i)=∑j∈N(i)∑k=1hp1+kp/rck(j) EHC(i)=\sum_{j\in N(i)}\sum_{k=1}^{h}p^{1+kp/r}c_k(j)

Meaning. A high value indicates a node whose neighbours have many well-connected neighbours. With ehc_p = 1 it is the sum of degrees over walks of two steps.

Arguments. ehc_p, ehc_r, normalized

centrality_ehc(student_interactions)

Entropy-Based Ranking Measure (ERM)

Give each node the entropy of its neighbours’ degrees and of their degree sums, and add these over the walks of two steps from the node.

ERM(i)=∑j∈N(i)∑l∈N(j)EC(l),EC(i)=E1(i)+λiE2(i) ERM(i)=\sum_{j\in N(i)}\sum_{l\in N(j)}EC(l),\qquad EC(i)=E_1(i)+\lambda_iE_2(i)

Meaning. A high value indicates a node two steps from nodes whose neighbours have varied, high degrees. The logarithm is natural.

Arguments. normalized

centrality_erm(student_interactions)

Shell clustering coefficient

For each neighbour, add how little its spread over the hierarchies of the lowest-degree peeling agrees with the node’s own, and a term for its degree.

SCCi=∑j∈N(i)[(2−Cij)+(2kjmaxlkl+1)] SCC_i=\sum_{j\in N(i)}\Bigl[(2-C_{ij})+\Bigl(2\frac{k_j}{\max_l k_l}+1\Bigr)\Bigr]

Meaning. A high value indicates a node with many high-degree neighbours placed differently in the network’s peeling order. A correlation that is 0/0 counts as 0.

Arguments. normalized

centrality_shell_clustering(student_interactions)

Extended Cluster Coefficient Ranking Measure (ECRM)

Add the shell clustering coefficient over the walks of two steps from the node.

ECRMi=∑j∈N(i)∑l∈N(j)SCCl ECRM_i=\sum_{j\in N(i)}\sum_{l\in N(j)}SCC_l

Meaning. A high value indicates a node two steps from many nodes of high shell clustering coefficient.

Arguments. normalized

centrality_ecrm(student_interactions)

M-centrality

Mix the coreness of a node with how much its neighbours’ degrees differ from its own, by weights from the entropy of the two terms over the network.

Mi=μKs(i)+(1−μ)ΔDi,ΔDi=ki∑j∈N(i)|kj−ki|∑l∈N(i)kl M_i=\mu K_s(i)+(1-\mu)\Delta D_i,\qquad \Delta D_i=k_i\sum_{j\in N(i)}\frac{|k_j-k_i|}{\sum_{l\in N(i)}k_l}

Meaning. A high value indicates a deep node, or one whose neighbours’ degrees differ much from its own. On a regular network the weights are 0/0 and are taken as 1/2.

Arguments. normalized

centrality_m_centrality(student_interactions)

Weighted k-shell degree neighborhood (Wksd)

Weight each edge by the product of a mix of degree and k-shell index at its two ends, and add the weights of the node’s edges.

Wksd(i)=∑j∈N(i)(αki+μks(i))(αkj+μks(j)) Wksd(i)=\sum_{j\in N(i)}(\alpha k_i+\mu k_s(i))(\alpha k_j+\mu k_s(j))

Meaning. A high value indicates a deep, well-connected node with deep, well-connected neighbours. Both weights are required; the source tunes them per network. wksdn is a parameter-free variant.

Arguments. wksd_alpha, wksd_mu, normalized

centrality_wksd(student_interactions, wksd_alpha = 0.2, wksd_mu = 0.9)

Maximal Clique Centrality

Sum of factorial contributions from maximal cliques containing the node, on the simple undirected skeleton.

MCC(v)=∑C∈ℳ(v),|C|≥2(|C|−1)! MCC(v) = \sum_{C\in\mathcal{M}(v),\,|C|\geq2} (|C|-1)!

Meaning. Larger cliques contribute much more than edges or triangles. Contained cliques are excluded. Isolates score 0 by explicit convention. Exponential enumeration is held back from the default all tier; raw-score overflow raises an error.

centrality_mcc(student_interactions)

Node Truss Number

The largest truss number of an incident edge, on the simple undirected skeleton.

t(v)=max⁡{k:v∈V(Tk)},Tk:each edge has at least k−2 triangles t(v) = \max\{k : v \in V(T_k)\},\quad T_k:\ \text{each edge has at least } k-2\text{ triangles}

Meaning. Higher values indicate triangle-supported cohesion. Tree vertices score 2, a k-clique scores k, and isolates score 0.

centrality_truss(student_interactions)

Mixed Degree Decomposition

Shell thresholds from residual degree plus attenuated exhausted degree.

kim=kir+λkie k_i^{m} = k_i^{r} + \lambda k_i^{e}

Meaning. Higher means membership of a stronger mixed-degree shell. Lambda 0 gives coreness; lambda 1 gives degree. Default 0.7; scores can be fractional.

Arguments. mdd_lambda

centrality_mdd(student_interactions)

Bridging Coefficient

The reciprocal-degree ratio before multiplication by betweenness.

B(i)=1/ki∑j∈N(i)1/kj B(i) = \frac{1/k_i}{\sum_{j\in N(i)}1/k_j}

Meaning. Higher values identify low-degree nodes adjacent to high-degree nodes. Isolates score 0. Uses the simple undirected skeleton.

centrality_bridging_coefficient(student_interactions)

Godfather Index

The number of unconnected unordered pairs of a node’s neighbours.

GF(i)=(ki2)−ti GF(i) = {k_i\choose 2} - t_i

Meaning. Higher values indicate more local brokerage opportunities. Here t_i counts focal triangles. Uses the simple undirected skeleton.

centrality_godfather(student_interactions)

Supported Relationships

The number of neighbours sharing at least one common neighbour with the node.

S(i)=|{j∈N(i):(A2)ij>0}| S(i) = |\{j\in N(i):(A^2)_{ij}>0\}|

Meaning. Higher values mean more triangle-supported relationships; a relationship counts once even if several common neighbours support it. Uses the simple undirected skeleton.

centrality_support(student_interactions)

Transitivity Centrality

Transitivity measures local clustering: whether a node’s neighbours are connected to each other.

c(v)=2tvkv(kv−1),tv=number of triangles through v c(v) = \frac{2\, t_v}{k_v (k_v - 1)}, \quad t_v = \text{number of triangles through } v

Meaning. A high value indicates locally closed neighbourhoods. This can represent cohesion or redundancy, depending on the relation.

Arguments. transitivity_type, isolates

centrality_transitivity(student_interactions)

Constraint Centrality

Constraint measures how redundant a node’s contacts are, following Burt’s structural holes framework.

C(v)=∑u∈N(v)(pvu+∑q≠v,upvqpqu)2,pvu=proportional tie strength C(v) = \sum_{u \in N(v)} \left( p_{vu} + \sum_{q \ne v, u} p_{vq}\, p_{qu} \right)^2, \quad p_{vu} = \text{proportional tie strength}

Meaning. A high value indicates a locally constrained ego network. Lower constraint may indicate structural holes, depending on theory and relation type.

centrality_constraint(student_interactions)

Effective Size Centrality

Effective size estimates the number of nonredundant contacts in a node’s ego network (Burt).

ES(v)=kv−1kv∑u∈N(v)|N(v)∩N(u)| \mathrm{ES}(v) = k_v - \frac{1}{k_v} \sum_{u \in N(v)} |N(v) \cap N(u)|

Meaning. A high value indicates relatively nonoverlapping contacts.

centrality_effective_size(student_interactions)

Topological Coefficient Centrality

Topological coefficient centrality measures shared-neighbour overlap.

T(v)=avg⁡uJ(v,u)kv,J(v,u)=number of neighbours shared by v and u T(v) = \frac{\operatorname{avg}_{u}\, J(v, u)}{k_v}, \quad J(v, u) = \text{number of neighbours shared by } v \text{ and } u

Meaning. A high value indicates neighbourhood overlap or topological similarity.

Diversity Centrality

Diversity centrality measures entropy in the distribution of edge weights around a node.

Div(v)=−∑u∈N(v)pvulog⁡2pvulog⁡2kv,pvu=wvu∑u′wvu′ \mathrm{Div}(v) = \frac{-\sum_{u \in N(v)} p_{vu} \log_2 p_{vu}}{\log_2 k_v}, \quad p_{vu} = \frac{w_{vu}}{\sum_{u'} w_{vu'}}

Meaning. A high value indicates that weighted ties are relatively evenly distributed.

centrality_diversity(student_interactions)

Cross-Clique Centrality

Cross-clique centrality counts how many cliques contain a node.

X(v)=|{Q∈𝒬(G):v∈Q}|,𝒬(G)=set of cliques X(v) = |\{\, Q \in \mathcal{Q}(G) : v \in Q \,\}|, \quad \mathcal{Q}(G) = \text{set of cliques}

Meaning. A high value indicates participation in many fully connected local groups.

centrality_cross_clique(student_interactions)

Coreness Centrality

Coreness assigns nodes to k-core shells.

Ccore(v)=max⁡{k:v∈(k-core of G)} C_{\mathrm{core}}(v) = \max \{\, k : v \in (k\text{-core of } G) \,\}

Meaning. A high value indicates membership in a dense core.

Arguments. mode

centrality_coreness(student_interactions)

Onion Centrality

Onion centrality assigns nodes to layers from onion decomposition, a fine-grained extension of k-core decomposition.

layer(v)=iteration index at which v is peeled by the onion decomposition \text{layer}(v) = \text{iteration index at which } v \text{ is peeled by the onion decomposition}

Meaning. A high layer indicates that the node remains until later stages of the peeling process.

centrality(student_interactions, measures = "onion")

K-Reach Centrality

K-reach centrality counts nodes reachable within path length kk.

CkR(v)=|{u:0<d(v,u)≤k}|,k=3 C_{kR}(v) = |\{\, u : 0 < d(v, u) \le k \,\}|, \quad k = 3

Meaning. A high value indicates broad reach within a fixed local radius. Results depend on the chosen kk.

Arguments. mode, k

centrality_kreach(student_interactions)

s-shell Index

The s-shell index peels the graph by node strength built from asymmetric topological link weights, generalising k-shell.

wij=1+(kikjout)a,si=∑j∈N(i)wij w_{ij} = 1 + (k_i\, k^{out}_j)^a, \quad s_i = \sum_{j \in N(i)} w_{ij}

Meaning. A high shell index indicates a node deep in the strength-based core. With a=0a = 0 the shells are the dense ranks of k-core.

Arguments. s_shell_a

centrality_s_shell(student_interactions)

Weighted k-shell

The weighted k-shell peels the graph by a generalised degree that mixes degree and strength.

kv′=(kvαsvβ)1/(α+β) k'_v = \big(k_v^{\alpha} s_v^{\beta}\big)^{1 / (\alpha + \beta)}

Meaning. A high shell index indicates a node deep in the weighted core. Unit weights give the k-core number.

Arguments. wks_alpha, wks_beta

centrality_weighted_kshell(student_interactions)

Renewed Coreness

Renewed coreness is the k-core number after removing links that lead nowhere new.

Dij=|N(j)\N[i]|+|N(i)\N[j]|2,keep Dij≥2 D_{ij} = \frac{|N(j) \setminus N[i]| + |N(i) \setminus N[j]|}{2}, \quad \text{keep } D_{ij} \ge 2

Meaning. A high value indicates a core node whose links reach beyond shared neighbourhoods. An isolated clique scores 0.

Arguments. renewed_threshold

centrality_renewed_coreness(student_interactions)

s-core Index

The s-core index is the weighted k-core: the largest strength threshold whose core still contains the node.

s-core(s)=maximal H⊆G with siH≥s∀i∈H s\text{-core}(s) = \text{maximal } H \subseteq G \text{ with } s_i^H \ge s \;\; \forall i \in H

Meaning. A high value indicates a node deep in the strength-based core. Unit weights give the k-core number exactly.

centrality_s_core(student_interactions)

Local Efficiency

Local efficiency is how well a node’s neighbours still communicate once the node itself is gone, using only the links among them.

Eloc(v)=1kv(kv−1)∑i≠j∈N(v)1dijGv E_{loc}(v) = \frac{1}{k_v (k_v - 1)} \sum_{i \ne j \in N(v)} \frac{1}{d_{ij}^{\,G_v}}

Meaning. A high value indicates a fault-tolerant neighbourhood; a node whose neighbours are mutually unconnected scores 0. Note that igraph::local_efficiency() measures those distances through the rest of the network instead, so it reports larger values.

Arguments. mode

centrality_local_efficiency(student_interactions)

Directed prestige and hierarchy

BG-index (beta power)

Expected number of times a node is selected as a predecessor.

β+(i)=∑i→j1/d−(j),β−(i)=∑j→i1/d+(j) \beta^+(i)=\sum_{i\to j}1/d^-(j),\quad\beta^-(i)=\sum_{j\to i}1/d^+(j)

Meaning. A high value indicates a node that is the sole predecessor, or one of few, of many others: each node divides one unit equally among the nodes that point to it. The default credits senders; beta_direction = "negative" credits receivers. The two coincide on undirected graphs.

Arguments. beta_direction, normalized

centrality_beta_measure(student_interactions)

Prestige Domain Centrality

Prestige domain centrality counts how many nodes can reach a focal node in a directed graph.

P(v)=|{u≠v:u⇝v}| P(v) = |\{\, u \ne v : u \rightsquigarrow v \,\}|

Meaning. A high value indicates a large incoming reach domain.

centrality_prestige_domain(student_interactions)

Prestige Domain Proximity Centrality

Prestige domain proximity measures how close nodes in the prestige domain are to the focal node.

C(v)=|R−(v)|2(n−1)∑u∈R−(v)d(u,v),R−(v)={u≠v:u⇝v} C(v) = \frac{|R^{-}(v)|^2}{(n - 1) \sum_{u \in R^{-}(v)} d(u, v)}, \quad R^{-}(v) = \{ u \ne v : u \rightsquigarrow v \}

Meaning. A high value indicates that many predecessors can reach the node through short directed paths.

Local Reaching Centrality

Local reaching centrality measures how much of the network is reachable from a node through directed paths.

LRC(v)=|{u:v⇝u}|n−1 \mathrm{LRC}(v) = \frac{|\{\, u : v \rightsquigarrow u \,\}|}{n - 1}

Meaning. A high value indicates broad directed reach from the node.

Arguments. mode

centrality_reaching_local(student_interactions)

Pairwise Disconnectivity Centrality

Pairwise disconnectivity measures how directed reachability between pairs changes when a node is removed.

Dis(v)=P(G)−P(G\v)P(G),P(G)=|{(s,t):s⇝t}| \mathrm{Dis}(v) = \frac{P(G) - P(G \setminus v)}{P(G)}, \quad P(G) = |\{ (s, t) : s \rightsquigarrow t \}|

Meaning. A high value indicates structural importance for preserving directed reachability.

centrality_pairwisedis(student_interactions)

Trophic Level Centrality

Trophic level estimates hierarchical position in a directed flow network.

(I−W)𝐬=𝟏,Wji=aijkjin,basal nodes have level 1 (I - W)\,\mathbf{s} = \mathbf{1}, \quad W_{ji} = \frac{a_{ij}}{k_j^{\mathrm{in}}}, \quad \text{basal nodes have level } 1

Meaning. A higher value indicates a higher position in the inferred directed hierarchy. This is appropriate only for flow-like relations.

centrality(student_interactions, measures = "trophic_level")

The measures below need a community membership vector, one community per node. communities() detects the partition (walktrap works on the directed student_interactions graph), membership() returns it as a named vector, and that vector is passed as membership =:

groups <- membership(communities(student_interactions, method = "walktrap"))
centrality_participation(student_interactions, membership = groups)
#>        Ac        Ad        Fi        Ik        Vx        Rt        Km        Gj 
#> 0.6078972 0.5450000 0.4965278 0.5612245 0.6213018 0.5150000 0.4628099 0.5540166 
#>        Bd        Ce        Oq        Ya        Mo        Hj        Tv        Eg 
#> 0.4861111 0.4600000 0.4897959 0.4733728 0.5416667 0.6250000 0.5400000 0.5400000 
#>        Pr        Qs        Xz        Np        Dg        Hk        Wy        Jl 
#> 0.4297521 0.5244444 0.4897959 0.4687500 0.5562130 0.6015625 0.6446281 0.4177778 
#>        Fh        Zb        Eh        Be        Df        Cf        Su        Ln 
#> 0.5396825 0.6938776 0.6938776 0.6020408 0.3750000 0.6805556 0.4444444 0.4081633 
#>        Gi        Uw 
#> 0.6666667 0.6250000

Community and group-based

Map equation centrality

Bits saved by redesigning a fixed module’s codebook after silencing a node.

MEC(i)=−(sm−pi)log⁡2((sm−pi)/sm),sm=∑j∈mpj+qm MEC(i)=-(s_m-p_i)\log_2((s_m-p_i)/s_m),\quad s_m=\sum_{j\in m}p_j+q_m

Meaning. A high value indicates a node whose flow matters to the description of its module: removing it saves many bits in the module’s codebook. The partition is supplied through membership (one module when NULL) and held fixed. map_convention sets whether module-exit flow is included, and the conventions can rank nodes differently.

Arguments. membership, map_flow, map_convention, damping, weighted, simplify, normalized

centrality_map_equation(student_interactions)

Participation Coefficient

Participation coefficient measures how evenly a node’s ties are distributed across communities.

P(v)=1−∑m(kv(m)kv)2,kv(m)=ties from v to module m P(v) = 1 - \sum_{m} \left( \frac{k_v^{(m)}}{k_v} \right)^2, \quad k_v^{(m)} = \text{ties from } v \text{ to module } m

Meaning. A high value indicates ties spread across multiple communities. It requires a meaningful membership vector.

Arguments. membership, mode

centrality_participation(student_interactions, membership = groups)

Within-Module Z Centrality

Within-module z centrality standardises a node’s within-community degree against other nodes in the same community.

z(v)=kv(mv)−μmvσmv,mv=community of v z(v) = \frac{k_v^{(m_v)} - \mu_{m_v}}{\sigma_{m_v}}, \quad m_v = \text{community of } v

Meaning. A high value indicates unusually high within-module connectivity.

Arguments. membership, mode

centrality_within_module_z(student_interactions, membership = groups)

Gateway Centrality

Gateway centrality measures inter-community brokerage weighted by centrality of communities or nodes involved.

g(v)=1−1kv2∑skvs2γvs2,kvs=ties from v to module s g(v) = 1 - \frac{1}{k_v^2} \sum_{s} k_{vs}^2\, \gamma_{vs}^2, \quad k_{vs} = \text{ties from } v \text{ to module } s

Meaning. A high value indicates a structurally prominent position between communities.

Arguments. membership, mode

centrality_gateway(student_interactions, membership = groups)

Brokerage Coordinator Centrality

Coordinator brokerage occurs when a node mediates between two nodes in its own group. It counts open directed two-paths $a \\to v \\to c$ (with no direct $a \\to c$).

Coord(v)=|{a→v→c:g(a)=g(v)=g(c)}| \mathrm{Coord}(v) = |\{\, a \to v \to c : g(a) = g(v) = g(c) \,\}|

Meaning. A high value indicates within-group mediation under the supplied membership vector.

Arguments. membership

centrality_brokerage_coordinator(student_interactions, membership = groups)

Brokerage Itinerant Centrality

Itinerant brokerage occurs when a node mediates between two nodes in another group.

Itin(v)=|{a→v→c:g(a)=g(c)≠g(v)}| \mathrm{Itin}(v) = |\{\, a \to v \to c : g(a) = g(c) \ne g(v) \,\}|

Meaning. A high value indicates brokerage among members outside the node’s own group.

Arguments. membership

centrality_brokerage_itinerant(student_interactions, membership = groups)

Brokerage Representative Centrality

Representative brokerage occurs when a node mediates from its own group to another group.

Rep(v)=|{a→v→c:g(a)=g(v)≠g(c)}| \mathrm{Rep}(v) = |\{\, a \to v \to c : g(a) = g(v) \ne g(c) \,\}|

Meaning. A high value indicates outward brokerage from the node’s group.

Arguments. membership

centrality_brokerage_representative(student_interactions, membership = groups)

Brokerage Gatekeeper Centrality

Gatekeeper brokerage occurs when a node mediates from another group into its own group.

Gate(v)=|{a→v→c:g(a)≠g(v)=g(c)}| \mathrm{Gate}(v) = |\{\, a \to v \to c : g(a) \ne g(v) = g(c) \,\}|

Meaning. A high value indicates inward brokerage into the node’s group.

Arguments. membership

centrality_brokerage_gatekeeper(student_interactions, membership = groups)

Brokerage Liaison Centrality

Liaison brokerage occurs when a node mediates between two groups, both different from its own.

Liai(v)=|{a→v→c:g(a),g(v),g(c) all distinct}| \mathrm{Liai}(v) = |\{\, a \to v \to c : g(a),\, g(v),\, g(c) \text{ all distinct} \,\}|

Meaning. A high value indicates between-group brokerage outside the node’s own group.

Arguments. membership

centrality_brokerage_liaison(student_interactions, membership = groups)

Modularity Vitality

Modularity vitality is the drop in Newman modularity when a node is deleted and the remaining nodes keep their communities.

VQ(v)=Q(G,C)−Q(G−v,C\{v}) V_Q(v) = Q(G, C) - Q(G - v,\; C \setminus \{v\})

Meaning. A positive value indicates a community hub; a negative value indicates a bridge whose removal sharpens the partition. Weighted and directed graphs use the corresponding modularity.

Arguments. membership

centrality_modularity_vitality(student_interactions, membership = groups)

Community Hub-Bridge

Community hub-bridge scores nodes that are hubs inside their community and bridges between communities.

CHB(v)=|Cv|kvintra+NNCvkvinter CHB(v) = |C_v|\, k^{intra}_v + NNC_v\, k^{inter}_v

Meaning. A high value indicates a node with many intra-community links in a large community and links into several other communities.

Arguments. membership, mode

centrality_community_hub_bridge(student_interactions, membership = groups)

Community-Based Centrality

Community-based centrality weights every link of a node by the size of the community it lands in.

CbC(v)=1N∑wdvwSw CbC(v) = \frac{1}{N} \sum_w d_{vw} S_w

Meaning. A high value indicates many links into large communities.

Arguments. membership, mode

centrality_community_based(student_interactions, membership = groups)

Comm Centrality

Comm centrality combines a node’s scaled intra-community degree with the square of its scaled inter-community degree, weighted by how outward-looking its community is.

CC(v)=(1+μC)kvinmaxu∈CkuinR+(1−μC)(kvoutmaxu∈CkuoutR)2 CC(v) = (1 + \mu_C)\,\frac{k^{in}_v}{\max_{u \in C} k^{in}_u} R + (1 - \mu_C)\left(\frac{k^{out}_v}{\max_{u \in C} k^{out}_u} R\right)^2

Meaning. A high value indicates a node that is central within its community and well linked outside it. RR defaults to the community’s maximum intra-degree.

Arguments. membership, mode, comm_r

centrality_comm_centrality(student_interactions, membership = groups)

Community-Based Mediator

The community-based mediator score is the entropy of a node’s link distribution over communities times its share of total degree.

CbM(v)=Hvdv∑udu,Hv=−∑kpvklog⁡2pvk CbM(v) = H_v \frac{d_v}{\sum_u d_u}, \quad H_v = -\sum_k p_{vk} \log_2 p_{vk}

Meaning. A high value indicates a well-connected node whose links are spread over several communities; nodes linked to one community score 0.

Arguments. membership, mode

centrality_community_mediator(student_interactions, membership = groups)

Argument catalogue

All measures are reachable through the single centrality() verb. These arguments control how they are computed. Measure-specific knobs are repeated in each measure’s Arguments line.

Argument Default Affects What it does
type "basic" all Curated tier: "basic", "extended", or "all" (ordinary-cost measures).
include NULL all Add named measures, or "costly" for every costly measure.
map_flow "unrecorded" Map equation Unrecorded link teleportation, or "recorded" uniform node teleportation.
map_convention "paper" Map equation Include module exits as in eq11, or "infomap" to reproduce its implementation and Table1.
ninl_order 3 NINL Nonnegative iteration count; zero returns initial degree volume.
sr_prior 0 SpectralRank Nonnegative scalar or node vector; zero gives ordinary SR and nonzero values give diagonal-prior WSR. Ground prior stays zero.
ninl_radius NULL NINL Automatic ceiling of mean path length, or explicit nonnegative integer/Inf. Disconnected automatic radius is infinite; only reachable nodes contribute.
beta_direction "positive" BG-index / beta power Positive credits predecessors; negative reverses the graph and credits destinations.
mdd_lambda 0.7 MDD Weight assigned to exhausted degree, between 0 and 1.
volume_radius 2 Volume Closed hop neighbourhood; nonnegative integer or Inf.
diffusion_q 1 Finite-horizon diffusion Walk multiplier in [0, 1].
diffusion_steps 3 Finite-horizon diffusion Nonnegative integer horizon; independent of the TNA method.
ds_beta 0.1 Dynamics-sensitive Spreading rate between zero and one.
ds_mu 1 Dynamics-sensitive Recovery rate between zero and one; zero selects SI.
ds_steps 5 Dynamics-sensitive Nonnegative integer time horizon.
measures NULL all Character vector of specific measures to compute (overrides type).
mode "all" directed measures Traversal direction: "all", "in", or "out".
normalized FALSE most Divide each score by its maximum.
weighted TRUE weighted measures Use edge weights when present.
directed NULL all Force directed/undirected; NULL auto-detects.
loops TRUE degree, strength Keep self-loops.
simplify "sum" multigraphs How to combine parallel edges.
cutoff -1 path-based Cap path length (-1 = no cap).
invert_weights NULL distance/path Treat weights as distances vs. strengths.
alpha 1 weight transform Exponent applied when invert_weights = TRUE.
damping 0.85 PageRank Random-walk damping factor.
personalized NULL PageRank Personalization vector.
transitivity_type "local" transitivity "local", "global", or weighted variants.
isolates "nan" transitivity How isolates are scored.
lambda 1 diffusion Diffusion scaling factor.
k 3 k-reach Path-length radius.
states NULL percolation Per-node percolation state vector.
decay_parameter 0.5 decay, generalized closeness Distance-decay base.
dmnc_epsilon 1.7 DMNC Density exponent.
katz_alpha 0.1 Katz Attenuation factor.
hubbell_weight 0.5 Hubbell Weight factor ww.
membership NULL group-based Community assignment vector.
digits NULL all Round numeric columns.
sort_by NULL all Order rows by a column name.