is_strongly_regular

is_strongly_regular#

graph_tool.structure.is_strongly_regular(g)[git][source]#

Check whether a graph is strongly regular.

Parameters:
gGraph

Graph to be used. Edge directions are ignored.

Returns:
regularbool

True if the graph is strongly regular.

See also

is_distance_regular

Test for distance-regular graphs

intersection_array

Intersection array of a distance-regular graph

Notes

A regular graph is strongly regular if every two adjacent vertices have the same number \(\lambda\) of common neighbors, and every two non-adjacent ones the same number \(\mu\). A connected strongly regular graph is a distance-regular graph of diameter two (see intersection_array()) [brouwer-distance-1989]; disconnected graphs are not considered strongly regular.

References

[brouwer-distance-1989]

Andries E. Brouwer, Arjeh M. Cohen and Arnold Neumaier, “Distance-Regular Graphs”, Springer (1989), DOI: 10.1007/978-3-642-74341-2 [sci-hub, @tor]

Examples

>>> g = gt.lattice([3, 3], periodic=True)
>>> print(gt.is_strongly_regular(g))
True