From ab7e97df3fa9661213769fbba6ee1dd06e3fd6db Mon Sep 17 00:00:00 2001 From: cpurmessur <70621228+cpurmessur@users.noreply.github.com> Date: Thu, 18 Feb 2021 19:09:36 -0500 Subject: add test to regular (#4624) Improve test coverage of regular --- networkx/algorithms/tests/test_regular.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- cgit v1.2.1