Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

networkx.algorithms.distance_measures.periphery

periphery(G, e=None, usebounds=False)[source]

Returns the periphery of the graph G.

The periphery is the set of nodes with eccentricity equal to the diameter.

Parameters
GNetworkX graph

A graph

eeccentricity dictionary, optional

A precomputed dictionary of eccentricities.

Returns
plist

List of nodes in periphery

See also

barycenter
center