Skip to content

GraphCenter ​

The vertices of a Graph whose eccentricity equals GraphRadius(g).

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageGraphCenter✓
GraphCenter(g)every vertex with the smallest (finite) eccentricity, in VertexList(g) order.
Typed signatures
TypePackageApplies
(value) -> list<any>combinatoricsalways

Domain: Collections

Details
  • A vertex with an infinite eccentricity (unreachable from some other vertex) is never in the center, even on a disconnected graph where every FINITE eccentricity happens to tie.

Examples

Basic #
live ↗
InGraphCenter(Graph([1,2,3,4,5],[UndirectedEdge(1,2),UndirectedEdge(2,3),UndirectedEdge(3,4),UndirectedEdge(4,5)]))\mathrm{GraphCenter}(\mathrm{Graph}(\bigl\lbrack1, 2, 3, 4, 5\bigr\rbrack, \bigl\lbrack\mathrm{UndirectedEdge}(1, 2), \mathrm{UndirectedEdge}(2, 3), \mathrm{UndirectedEdge}(3, 4), \mathrm{UndirectedEdge}(4, 5)\bigr\rbrack))Out[3]\bigl\lbrack3\bigr\rbrack
About
Examples1
Checked againstWolfram Language 1 agree
CrosswalkWolfram Language

See also: GraphPeriphery, GraphRadius, VertexEccentricity