Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > 数学和算法 > 图与网络 > 图度量法与度量 > ClosenessCentrality >
Mathematica > 可视化与图形 > 图与网络 > 图度量法与度量 > ClosenessCentrality >

ClosenessCentrality

ClosenessCentrality[g]
gives a list of closeness centralities for the vertices in the graph g.
  • ClosenessCentrality for a graph g is given as where is the average distance from vertex to all other vertices connected to .
  • If is the distance matrix then the average distance from vertex to all connected vertices is given by , where the sum is taken over all finite and is the number of vertices connected to .
  • The closeness centrality for isolated vertices is taken to be zero.
Find the closeness centrality for each vertex in a connected graph:
Closeness is computed separately for each connected component:
Find the closeness centrality for each vertex in a connected graph:
In[1]:=
Click for copyable input
Out[1]=
 
Closeness is computed separately for each connected component:
In[1]:=
Click for copyable input
Out[1]=
ClosenessCentrality for undirected graphs:
Highlight the vertex with highest centrality:
Directed graphs:
Highlight the vertex with highest centrality:
Work with large graphs:
Highlight the closeness centrality for CycleGraph:
An unbalanced tree:
Create a social network:
Find the people with more direct influence on others:
ClosenessCentrality is the inverse of average finite distances to other vertices:
An undirected graph:
A directed graph:
Closeness centrality for isolated vertices is taken to be zero:
Closeness centralities for an undirected graph are equivalent to centralities for each component:
Computing the centralities for each component yields the same result:
版本 8 的新功能
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
格式:   HTML  |  CDF