Macaulay2 » Documentation
Packages » Graphs :: center(Graph)
next | previous | forward | backward | up | index | toc

center(Graph) -- Returns the center of a graph

Description

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 this method:


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/Graphs.m2:3121:0.