Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Graphs & Networks > Paths and Cycles > GraphCenter >
Mathematica > Visualization and Graphics > Graphs & Networks > Paths and Cycles > GraphCenter >

GraphCenter

GraphCenter[g]
gives the set of vertices with minimum eccentricity in the graph g.
Give the graph center for a graph:
Highlight the center:
Give the graph center for a graph:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Highlight the center:
In[3]:=
Click for copyable input
Out[3]=
GraphCenter works with undirected graphs:
Directed graphs:
Weighted graphs:
Works with large graphs:
People at a family gathering:
Use Subsets to create edges between all members of the family:
The resulting social graph:
Find the people who are most closely related to everybody at the gathering:
In a connected graph, the center can be found using VertexEccentricity:
For a CompleteGraph, every vertex is at the center:
For a PathGraph with positive weights, there is either one center vertex or two center vertices:
For a CycleGraph, all vertices are in the center:
For a WheelGraph of size 5 or more, the hub is the graph center:
For a GridGraph, the center forms a grid with all dimensions being one or two:
For a CompleteKaryTree, the root vertex is the center:
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF