diff options
-rw-r--r-- | networkx/algorithms/tests/test_regular.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/networkx/algorithms/tests/test_regular.py b/networkx/algorithms/tests/test_regular.py index 2aaeb32a..46a92a4a 100644 --- a/networkx/algorithms/tests/test_regular.py +++ b/networkx/algorithms/tests/test_regular.py @@ -62,6 +62,11 @@ class TestIsRegular: g = gen.lollipop_graph(5, 5) assert not reg.is_regular(g) + def test_is_regular4(self): + g = nx.DiGraph() + g.add_edges_from([(0, 1), (1, 2), (2, 0)]) + assert reg.is_regular(g) + class TestIsKRegular: def test_is_k_regular1(self): |