networkx 2.8.2 Pypi GitHub Homepage
Other Docs
NotesParametersReturnsBackRef
is_distance_regular(G)

A connected graph G is distance-regular if for any nodes x,y and any integers i,j=0,1,...,d (where d is the graph diameter), the number of vertices at distance i from x and distance j from y depends only on i,j and the graph distance between x and y, independently of the choice of x and y.

Notes

For undirected and simple graphs only

Parameters

G: Networkx graph (undirected) :

Returns

bool

True if the graph is Distance Regular, False otherwise

Returns True if the graph is distance regular, False otherwise.

See Also

global_parameters
intersection_array

Examples

>>> G = nx.hypercube_graph(6)
... nx.is_distance_regular(G) True
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

networkx.algorithms.distance_regular.is_distance_regular

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /networkx/algorithms/distance_regular.py#19
type: <class 'function'>
Commit: