summaryrefslogtreecommitdiff
path: root/lib/python2.7/site-packages/setoolsgui/networkx/algorithms/operators/tests/test_unary.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/site-packages/setoolsgui/networkx/algorithms/operators/tests/test_unary.py')
-rw-r--r--lib/python2.7/site-packages/setoolsgui/networkx/algorithms/operators/tests/test_unary.py47
1 files changed, 0 insertions, 47 deletions
diff --git a/lib/python2.7/site-packages/setoolsgui/networkx/algorithms/operators/tests/test_unary.py b/lib/python2.7/site-packages/setoolsgui/networkx/algorithms/operators/tests/test_unary.py
deleted file mode 100644
index ea10d75..0000000
--- a/lib/python2.7/site-packages/setoolsgui/networkx/algorithms/operators/tests/test_unary.py
+++ /dev/null
@@ -1,47 +0,0 @@
-from nose.tools import *
-import networkx as nx
-from networkx import *
-
-
-def test_complement():
- null=null_graph()
- empty1=empty_graph(1)
- empty10=empty_graph(10)
- K3=complete_graph(3)
- K5=complete_graph(5)
- K10=complete_graph(10)
- P2=path_graph(2)
- P3=path_graph(3)
- P5=path_graph(5)
- P10=path_graph(10)
- #complement of the complete graph is empty
-
- G=complement(K3)
- assert_true(is_isomorphic(G,empty_graph(3)))
- G=complement(K5)
- assert_true(is_isomorphic(G,empty_graph(5)))
- # for any G, G=complement(complement(G))
- P3cc=complement(complement(P3))
- assert_true(is_isomorphic(P3,P3cc))
- nullcc=complement(complement(null))
- assert_true(is_isomorphic(null,nullcc))
- b=bull_graph()
- bcc=complement(complement(b))
- assert_true(is_isomorphic(b,bcc))
-
-def test_complement_2():
- G1=nx.DiGraph()
- G1.add_edge('A','B')
- G1.add_edge('A','C')
- G1.add_edge('A','D')
- G1C=complement(G1)
- assert_equal(sorted(G1C.edges()),
- [('B', 'A'), ('B', 'C'),
- ('B', 'D'), ('C', 'A'), ('C', 'B'),
- ('C', 'D'), ('D', 'A'), ('D', 'B'), ('D', 'C')])
-
-def test_reverse1():
- # Other tests for reverse are done by the DiGraph and MultiDigraph.
- G1=nx.Graph()
- assert_raises(nx.NetworkXError, nx.reverse, G1)
-