Which best characterizes the betweenness centrality of a node?
1) The total distance to all other nodes
2) The portion of all the shortest paths between any two nodes that pass through the node
3) The inverse of the distance to the farthest node
4) The number of nodes connected to a node by some path