This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.


center(G, e=None)[source]

Return the center of the graph G.

The center is the set of nodes with eccentricity equal to radius.

Parameters :

G : NetworkX graph

A graph

e : eccentricity dictionary, optional

A precomputed dictionary of eccentricities.

Returns :

c : list

List of nodes in center