NetworkX

Previous topic

networkx.algorithms.distance_measures.eccentricity

Next topic

networkx.algorithms.distance_measures.radius

networkx.algorithms.distance_measures.periphery

networkx.algorithms.distance_measures.periphery(G, e=None)

Return the periphery of the graph G.

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

Parameters :

G : NetworkX graph

A graph

e : eccentricity dictionary, optional

A precomputed dictionary of eccentricities.

Returns :

p : list

List of nodes in periphery