Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/networkx/generators/tests/test_triads.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 """Unit tests for the :mod:`networkx.generators.triads` module.""" | |
2 import pytest | |
3 | |
4 from networkx import triad_graph | |
5 | |
6 | |
7 def test_triad_graph(): | |
8 G = triad_graph("030T") | |
9 assert [tuple(e) for e in ("ab", "ac", "cb")] == sorted(G.edges()) | |
10 | |
11 | |
12 def test_invalid_name(): | |
13 with pytest.raises(ValueError): | |
14 triad_graph("bogus") |