Skip to content

GraphPeriphery ​

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

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

Domain: Collections

Examples

Basic #
live ↗
InGraphPeriphery(Graph([1,2,3,4,5],[UndirectedEdge(1,2),UndirectedEdge(2,3),UndirectedEdge(3,4),UndirectedEdge(4,5)]))\mathrm{GraphPeriphery}(\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[1,5]\bigl\lbrack1, 5\bigr\rbrack
About
Examples1
Checked againstWolfram Language 1 agree
CrosswalkWolfram Language

See also: GraphCenter, GraphDiameter, VertexEccentricity