diff options
author | cpurmessur <70621228+cpurmessur@users.noreply.github.com> | 2021-02-18 19:09:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 16:09:36 -0800 |
commit | ab7e97df3fa9661213769fbba6ee1dd06e3fd6db (patch) | |
tree | e0c4f4a4d5a0a8c8666fe24aa06b607f2397c60d | |
parent | 1dd07cea81c09c042d91514ae97b2793990299e3 (diff) | |
download | networkx-ab7e97df3fa9661213769fbba6ee1dd06e3fd6db.tar.gz |
add test to regular (#4624)
Improve test coverage of regular
-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): |