Centrality Analysis
Centrality Analysis
The Centrality Analysis feature allows you to calculate network-based metrics on your model. This helps you find the most important reactions or metabolites by quantifying their connectivity and influence in the network.
All Centrality metrics are calculated using the Python NetworkX package.

Steps
- Click the Centrality Analysis button.
- Select the desired metrics to be calculated and click "Calculate and download results".
- A zip file will be downloaded containing the selected metrics in
.csvformat.
Degree Centrality
Degree centrality is defined as the number of direct edges a node has in a given network. For directed metabolic pathways, degree centrality is split into in-degree (number of incoming edges) and out-degree (number of outgoing edges).
Mathematical Formulae:
For a directed graph \(G = (V,E)\) and node \(v\):
- In-degree centrality:
- Out-degree centrality:
where:
- \(\deg^{in}(v)\) = number of incoming edges to \(v\)
- \(\deg^{out}(v)\) = number of outgoing edges from \(v\)
Both values are normalized by \(|V|-1\), so that:
Betweenness Centrality
Betweenness centrality measures how frequently a node lies on shortest paths between other nodes in the network. This helps identify bottleneck reactions that control the flow of metabolites.
Mathematical Formula:
For a graph \(G = (V,E)\) and node \(v\):
where:
- \(\sigma_{st}\) = number of shortest paths between nodes \(s\) and \(t\)
- \(\sigma_{st}(v)\) = number of those paths that pass through node \(v\)
Normalization:
To scale values between 0 and 1:
- Undirected graphs:
- Directed graphs:
where \(n = |V|\) is the total number of nodes.
Closeness Centrality
Closeness centrality explains how close a node is to all other nodes in the network based on the average length of shortest paths.
Mathematical Formula:
For a connected graph \(G = (V,E)\) and node \(v\):
where:
- \(n = |V|\) is the total number of nodes
- \(d(v,t)\) is the shortest path distance between \(v\) and \(t\)
The denominator is the farness (total distance from \(v\) to all other nodes), and closeness is its reciprocal.
Eigenvector Centrality
Eigenvector centrality measures a node's importance based on its connections and the importance of the nodes it connects to.
Mathematical Formula:
For a node \(v\):
where:
- \(A\) is the adjacency matrix of the graph
- \(x_v\) is the centrality score of node \(v\)
- \(\lambda\) is the largest eigenvalue of \(A\)
In vector form:
The components of \(x\) give the eigenvector centrality scores of the nodes.
PageRank Centrality
PageRank is a variant of eigenvector centrality that measures a node's importance based on both the number of incoming links and the importance of the linking nodes, while also incorporating a probability of randomly jumping to another node.
Mathematical Formula:
For a directed graph \(G = (V,E)\) and node \(v\):
where:
- \(N = |V|\) is the total number of nodes
- \(d\) is the damping factor (usually 0.85)
- \(M(v)\) is the set of nodes linking to \(v\)
- \(\deg^{out}(u)\) is the out-degree of node \(u\)
The algorithm is solved iteratively until values converge, giving a normalized importance score for each node.