is_k_regular
Determines whether the graph G is a k-regular graph.
G
A k-regular graph is a graph where each vertex has degree k.
G (NetworkX graph)
Whether the given graph is k-regular.
bool