Centrality is a key concept in network theory and graph analysis, used to measure the importance or influence of a node (or vertex) in a network. There are several types of centrality, each with a different way of determining what makes a node "central" or important:
This measures the number of direct connections a node has. The more connections, the more "central" or important the node is in the network. It’s calculated as:
$$ \text{Degree Centrality} = \frac{\text{Number of connections}}{\text{Total nodes} - 1} $$
where is the total number of shortest paths from node to node , and is the number of those paths that pass through node .
$$
\\text{Betweenness Centrality} = \\sum \\frac{\\sigma(s, t|v)}{\\sigma(s,t)}
$$
where
$σ(s,t∣v)$ is the number of those paths that pass through node $v$
$σ(s,t)$ is the total number of shortest paths from node to node $t$,
This measures how close a node is to all other nodes in the network. Nodes with high closeness centrality can reach others more quickly. It’s calculated as the inverse of the average shortest path distance from the node to all other nodes:
$$ Closeness Centrality =\frac{1}{\sum \text{Shortest path distances from a node to all other nodes}} $$