next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Graphs :: center

center -- Returns the center of a graph



The center of a graph G is defined to be the set of all vertices of G such that the eccentricity of the vertex is equal to the graph's radius. This list often will contain 1 member, for example, path graphs on with an odd amount of vertices. It can also contain all the vertices (such as complete graphs).

i1 : center graphLibrary "dart"

o1 = {2}

o1 : List

See also

Ways to use center :

For the programmer

The object center is a method function.