>>> nx.test()
Running NetworkX tests:.........................................F....................................................................................................................................................................................................FFF.F.FF.FF..FF....FF..F.............................................................................................................................................................................................................................................................F..................................................................................................................F.FF.FF.FFF..FFF..FFF.F.............................................F...........................................F........F...........F...................................FFF...F..................................................................................................................................................F.............................................................................................................................................................F...F.F...F.......................F...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S..........S........F.......................................................................F.......................................FF..F..........................................................................................................S.......S...................................................F.F.......FFFF................FF............................
======================================================================
FAIL: test_kcomponents.test_example_1_detail_3_and_4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/approximation/tests/test_kcomponents.py", line 176, in test_example_1_detail_3_and_4
assert_true(component in solution[k])
AssertionError: False is not true
======================================================================
FAIL: Approximate current-flow betweenness centrality: K4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py", line 124, in test_K4
assert_allclose(b[n],ba[n],atol=epsilon*len(G)**2)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 1395, in assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=1.6
(mismatch 100.0%)
x: array(3.0)
y: array(0.7483100495718573)
======================================================================
FAIL: Approximate current-flow betweenness centrality: K4 normalized
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py", line 115, in test_K4_normalized
assert_allclose(b[n],ba[n],atol=epsilon)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 1395, in assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0.1
(mismatch 100.0%)
x: array(1.0)
y: array(0.24898602974312026)
======================================================================
FAIL: Approximate current-flow betweenness centrality: 2d grid
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py", line 143, in test_grid
assert_allclose(b[n],ba[n],atol=epsilon)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 1395, in assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0.1
(mismatch 100.0%)
x: array(0.0)
y: array(0.10227320741961278)
======================================================================
FAIL: Approximate current-flow betweenness centrality: star
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py", line 134, in test_star
assert_allclose(b[n],ba[n],atol=epsilon)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 1395, in assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0.1
(mismatch 100.0%)
x: array(2.0)
y: array(0.9941415051824857)
======================================================================
FAIL: Edge flow betweenness centrality: K4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py", line 182, in test_K4
assert_almost_equal(v1,v2)
AssertionError: 0.25 != 0.0 within 7 places
======================================================================
FAIL: Edge flow betweenness centrality: K4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py", line 191, in test_K4_normalized
assert_almost_equal(v1,v2)
AssertionError: 0.75 != 0.0 within 7 places
======================================================================
FAIL: Betweenness centrality: K4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py", line 52, in test_K4
assert_almost_equal(b[n],b_answer[n])
AssertionError: 3.0 != 0.75 within 7 places
======================================================================
FAIL: Betweenness centrality: K4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py", line 30, in test_K4_normalized
assert_almost_equal(b[n],b_answer[n])
AssertionError: 1.0 != 0.25 within 7 places
======================================================================
FAIL: Betweenness centrality: alternate solvers
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py", line 91, in test_solers
assert_almost_equal(b[n],b_answer[n])
AssertionError: 3.0 != 0.75 within 7 places
======================================================================
FAIL: Betweenness centrality: star
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py", line 79, in test_star
assert_almost_equal(b[n],b_answer[n])
AssertionError: 2.0 != 1.0 within 7 places
======================================================================
FAIL: Betweenness centrality: K4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality_subset.py", line 46, in test_K4
assert_almost_equal(b[n],b_answer[n])
AssertionError: 0.25 != 1.0 within 7 places
======================================================================
FAIL: Betweenness centrality: K4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality_subset.py", line 34, in test_K4_normalized
assert_almost_equal(b[n],b_answer[n])
AssertionError: 0.25 != 1.0 within 7 places
======================================================================
FAIL: Betweenness centrality: star
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality_subset.py", line 106, in test_star
assert_almost_equal(b[n],b_answer[n])
AssertionError: 1.0 != 2.0 within 7 places
======================================================================
FAIL: test_kcomponents.test_torrents_and_ferraro_detail_3_and_4
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/connectivity/tests/test_kcomponents.py", line 156, in test_torrents_and_ferraro_detail_3_and_4
assert_true(component in solution[k])
AssertionError: False is not true
======================================================================
FAIL: test_hits.TestHITS.test_hits
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_hits.py", line 36, in test_hits
assert_almost_equal(h[n],G.h[n],places=4)
AssertionError: 0.21132486525597988 != 0.0 within 4 places
======================================================================
FAIL: test_hits.TestHITS.test_hits_numpy
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_hits.py", line 56, in test_hits_numpy
assert_almost_equal(h[n],G.h[n],places=4)
AssertionError: 0.21132486540518708 != 0.0 within 4 places
======================================================================
FAIL: test_hits.TestHITS.test_hits_scipy
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_hits.py", line 70, in test_hits_scipy
assert_almost_equal(h[n],G.h[n],places=4)
AssertionError: 0.21132486461742692 != 0.0 within 4 places
======================================================================
FAIL: test_pagerank.TestPageRank.test_dangling_numpy_pagerank
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 119, in test_dangling_numpy_pagerank
assert_almost_equal(pr[n], self.G.dangling_pagerank[n], places=4)
AssertionError: 0.15919783224938838 != 0.2683668 within 4 places
======================================================================
FAIL: test_pagerank.TestPageRank.test_dangling_pagerank
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 114, in test_dangling_pagerank
assert_almost_equal(pr[n], self.G.dangling_pagerank[n], places=4)
AssertionError: 0.15919589098416329 != 0.2683668 within 4 places
======================================================================
FAIL: test_pagerank.TestPageRank.test_google_matrix
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 72, in test_google_matrix
assert_almost_equal(a, b)
AssertionError: (0.20599833187742772+0j) != 0.37508082 within 7 places
======================================================================
FAIL: test_pagerank.TestPageRank.test_numpy_pagerank
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 62, in test_numpy_pagerank
assert_almost_equal(p[n], G.pagerank[n], places=4)
AssertionError: 0.20599833187742772 != 0.37508082 within 4 places
======================================================================
FAIL: test_pagerank.TestPageRank.test_pagerank
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 48, in test_pagerank
assert_almost_equal(p[n], G.pagerank[n], places=4)
AssertionError: 0.20599832787380884 != 0.37508082 within 4 places
======================================================================
FAIL: test_pagerank.TestPageRankScipy.test_dangling_numpy_pagerank
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 119, in test_dangling_numpy_pagerank
assert_almost_equal(pr[n], self.G.dangling_pagerank[n], places=4)
AssertionError: 0.15919783224938838 != 0.2683668 within 4 places
======================================================================
FAIL: test_pagerank.TestPageRankScipy.test_dangling_pagerank
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 114, in test_dangling_pagerank
assert_almost_equal(pr[n], self.G.dangling_pagerank[n], places=4)
AssertionError: 0.15919589098416329 != 0.2683668 within 4 places
======================================================================
FAIL: test_pagerank.TestPageRankScipy.test_dangling_scipy_pagerank
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 156, in test_dangling_scipy_pagerank
assert_almost_equal(pr[n], self.G.dangling_pagerank[n], places=4)
AssertionError: 0.15919589098416329 != 0.2683668 within 4 places
======================================================================
FAIL: test_pagerank.TestPageRankScipy.test_google_matrix
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 72, in test_google_matrix
assert_almost_equal(a, b)
AssertionError: (0.20599833187742772+0j) != 0.37508082 within 7 places
======================================================================
FAIL: test_pagerank.TestPageRankScipy.test_numpy_pagerank
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 62, in test_numpy_pagerank
assert_almost_equal(p[n], G.pagerank[n], places=4)
AssertionError: 0.20599833187742772 != 0.37508082 within 4 places
======================================================================
FAIL: test_pagerank.TestPageRankScipy.test_pagerank
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 48, in test_pagerank
assert_almost_equal(p[n], G.pagerank[n], places=4)
AssertionError: 0.20599832787380884 != 0.37508082 within 4 places
======================================================================
FAIL: test_pagerank.TestPageRankScipy.test_scipy_pagerank
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/link_analysis/tests/test_pagerank.py", line 145, in test_scipy_pagerank
assert_almost_equal(p[n], G.pagerank[n], places=4)
AssertionError: 0.20599832787380884 != 0.37508082 within 4 places
======================================================================
FAIL: test_product.test_graph_power
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/operators/tests/test_product.py", line 371, in test_graph_power
(8, 9)])
AssertionError: Lists differ: [(0, 1), (0, 6), (0, 2), (0, 5), (0, 7), (1, 2), (1, 6[141 chars], 8)] != [(0, 1), (0, 2), (0, 5), (0, 6), (0, 7), (1, 9), (1, 2[141 chars], 9)]
First differing element 1:
(0, 6)
(0, 2)
[(0, 1),
- (0, 6),
(0, 2),
(0, 5),
+ (0, 6),
(0, 7),
+ (1, 9),
(1, 2),
+ (1, 3),
(1, 6),
- (1, 3),
? ^
+ (2, 3),
? ^
- (1, 9),
- (6, 4),
? ^
+ (2, 4),
? ^
+ (2, 8),
+ (2, 9),
+ (3, 4),
- (6, 5),
? ^
+ (3, 5),
? ^
+ (3, 9),
+ (4, 5),
+ (4, 6),
+ (5, 6),
+ (5, 7),
(6, 7),
(6, 8),
- (2, 3),
- (2, 9),
- (2, 4),
- (2, 8),
- (5, 3),
- (5, 4),
- (5, 7),
(7, 8),
(7, 9),
- (3, 4),
- (3, 9),
? ^ ^
+ (8, 9)]
? ^ ^
- (9, 8)]
======================================================================
FAIL: test_unweighted.TestUnweightedPath.test_predecessor
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/shortest_paths/tests/test_unweighted.py", line 76, in test_predecessor
((1, 0), [(0, 0)]), ((1, 1), [(0, 1), (1, 0)])])
AssertionError: Lists differ: [((0,[14 chars] 1), [(0, 0)]), ((1, 0), [(0, 0)]), ((1, 1), [(1, 0), (0, 1)])] != [((0,[14 chars] 1), [(0, 0)]), ((1, 0), [(0, 0)]), ((1, 1), [(0, 1), (1, 0)])]
First differing element 3:
((1, 1), [(1, 0), (0, 1)])
((1, 1), [(0, 1), (1, 0)])
[((0, 0), []),
((0, 1), [(0, 0)]),
((1, 0), [(0, 0)]),
- ((1, 1), [(1, 0), (0, 1)])]
+ ((1, 1), [(0, 1), (1, 0)])]
======================================================================
FAIL: test_weighted.TestBellmanFordAndGoldbergRadizk.test_others
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/shortest_paths/tests/test_weighted.py", line 297, in test_others
((1, 0), (0, 0)), ((1, 1), (0, 1))])
AssertionError: Lists differ: [((0, 0), None), ((0, 1), (0, 0)), ((1, 0), (0, 0)), ((1, 1), (1, 0))] != [((0, 0), None), ((0, 1), (0, 0)), ((1, 0), (0, 0)), ((1, 1), (0, 1))]
First differing element 3:
((1, 1), (1, 0))
((1, 1), (0, 1))
- [((0, 0), None), ((0, 1), (0, 0)), ((1, 0), (0, 0)), ((1, 1), (1, 0))]
? ---
+ [((0, 0), None), ((0, 1), (0, 0)), ((1, 0), (0, 0)), ((1, 1), (0, 1))]
? +++
======================================================================
FAIL: test_weighted.TestWeightedPath.test_dijkstra_predecessor
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/shortest_paths/tests/test_weighted.py", line 149, in test_dijkstra_predecessor
((1, 0), [(0, 0)]), ((1, 1), [(0, 1), (1, 0)])])
AssertionError: Lists differ: [((0,[14 chars] 1), [(0, 0)]), ((1, 0), [(0, 0)]), ((1, 1), [(1, 0), (0, 1)])] != [((0,[14 chars] 1), [(0, 0)]), ((1, 0), [(0, 0)]), ((1, 1), [(0, 1), (1, 0)])]
First differing element 3:
((1, 1), [(1, 0), (0, 1)])
((1, 1), [(0, 1), (1, 0)])
[((0, 0), []),
((0, 1), [(0, 0)]),
((1, 0), [(0, 0)]),
- ((1, 1), [(1, 0), (0, 1)])]
+ ((1, 1), [(0, 1), (1, 0)])]
======================================================================
FAIL: test_branchings.test_greedy_max1
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tree/tests/test_branchings.py", line 167, in test_greedy_max1
assert_equal_branchings(B, B_)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tree/tests/test_branchings.py", line 121, in assert_equal_branchings
assert_equal(a[:2], b[:2])
AssertionError: Tuples differ: (2, 3) != (6, 2)
First differing element 0:
2
6
- (2, 3)
+ (6, 2)
-------------------- >> begin captured stdout << ---------------------
[(3, 0, 5), (1, 5, 13), (7, 6, 15), (2, 1, 17), (3, 4, 17), (8, 7, 18), (2, 3, 21), (6, 2, 21)]
[(3, 0, 5), (1, 5, 13), (7, 6, 15), (2, 1, 17), (3, 4, 17), (8, 7, 18), (6, 2, 21), (2, 3, 21)]
--------------------- >> end captured stdout << ----------------------
======================================================================
FAIL: test_branchings.test_greedy_max2
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tree/tests/test_branchings.py", line 182, in test_greedy_max2
assert_equal_branchings(B, B_)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tree/tests/test_branchings.py", line 121, in assert_equal_branchings
assert_equal(a[:2], b[:2])
AssertionError: Tuples differ: (2, 3) != (6, 2)
First differing element 0:
2
6
- (2, 3)
+ (6, 2)
-------------------- >> begin captured stdout << ---------------------
[(1, 0, 6), (1, 5, 13), (7, 6, 15), (2, 1, 17), (3, 4, 17), (8, 7, 18), (2, 3, 21), (6, 2, 21)]
[(1, 0, 6), (1, 5, 13), (7, 6, 15), (2, 1, 17), (3, 4, 17), (8, 7, 18), (6, 2, 21), (2, 3, 21)]
--------------------- >> end captured stdout << ----------------------
======================================================================
FAIL: test_branchings.test_greedy_max3
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tree/tests/test_branchings.py", line 196, in test_greedy_max3
assert_equal_branchings(B, B_, default=1)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tree/tests/test_branchings.py", line 121, in assert_equal_branchings
assert_equal(a[:2], b[:2])
AssertionError: Tuples differ: (3, 4) != (3, 0)
First differing element 1:
4
0
- (3, 4)
? ^
+ (3, 0)
? ^
-------------------- >> begin captured stdout << ---------------------
[(2, 1, 1), (3, 4, 1), (3, 0, 1), (5, 8, 1), (6, 2, 1), (7, 6, 1), (7, 3, 1), (8, 7, 1)]
[(2, 1, 1), (3, 0, 1), (3, 4, 1), (5, 8, 1), (8, 7, 1), (6, 2, 1), (7, 3, 1), (7, 6, 1)]
--------------------- >> end captured stdout << ----------------------
======================================================================
FAIL: test_branchings.test_edmonds2_maxbranch
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tree/tests/test_branchings.py", line 225, in test_edmonds2_maxbranch
assert_equal_branchings(x, x_)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tree/tests/test_branchings.py", line 121, in assert_equal_branchings
assert_equal(a[:2], b[:2])
AssertionError: Tuples differ: (2, 3) != (6, 2)
First differing element 0:
2
6
- (2, 3)
+ (6, 2)
-------------------- >> begin captured stdout << ---------------------
[(5, 6, 4), (6, 8, 5), (2, 1, 7), (3, 4, 7), (8, 7, 8), (2, 3, 11), (6, 2, 11)]
[(5, 6, 4), (6, 8, 5), (2, 1, 7), (3, 4, 7), (8, 7, 8), (6, 2, 11), (2, 3, 11)]
--------------------- >> end captured stdout << ----------------------
======================================================================
FAIL: test_dominance.TestDominanceFrontiers.test_irreducible2
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tests/test_dominance.py", line 145, in test_irreducible2
{1: [2], 2: [1, 3], 3: [2], 4: [2, 3], 5: [1], 6: []})
AssertionError: {6: [], 5: [1], 4: [2, 3], 2: [3, 1], 3: [2], 1: [2]} != {1: [2], 2: [1, 3], 3: [2], 4: [2, 3], 5: [1], 6: []}
- {1: [2], 2: [3, 1], 3: [2], 4: [2, 3], 5: [1], 6: []}
? ---
+ {1: [2], 2: [1, 3], 3: [2], 4: [2, 3], 5: [1], 6: []}
? +++
======================================================================
FAIL: test_mst.TestMST.test_mst
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tests/test_mst.py", line 36, in test_mst
assert_equal(T.edges(data=True),self.tree_edgelist)
AssertionError: Lists differ: [(0, 3, {'weight': 5}), (0, 1, {'weight': 7}),[87 chars] 9})] != [(0, 1, {'weight': 7}), (0, 3, {'weight': 5}),[87 chars] 9})]
First differing element 0:
(0, 3, {'weight': 5})
(0, 1, {'weight': 7})
- [(0, 3, {'weight': 5}),
- (0, 1, {'weight': 7}),
? ^
+ [(0, 1, {'weight': 7}),
? ^
+ (0, 3, {'weight': 5}),
+ (1, 4, {'weight': 7}),
+ (2, 4, {'weight': 5}),
(3, 5, {'weight': 6}),
- (2, 4, {'weight': 5}),
- (4, 1, {'weight': 7}),
(4, 6, {'weight': 9})]
======================================================================
FAIL: test_mst.TestMST.test_mst_edges_specify_weight
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tests/test_mst.py", line 80, in test_mst_edges_specify_weight
assert_equal(sorted(T.edges()),[(1,3),(2,3)])
AssertionError: Lists differ: [(1, 3), (3, 2)] != [(1, 3), (2, 3)]
First differing element 1:
(3, 2)
(2, 3)
- [(1, 3), (3, 2)]
? ---
+ [(1, 3), (2, 3)]
? +++
======================================================================
FAIL: test_mst.TestMST.test_prim_mst
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tests/test_mst.py", line 85, in test_prim_mst
assert_equal(T.edges(data=True),self.tree_edgelist)
AssertionError: Lists differ: [(0, 3, {'weight': 5}), (0, 1, {'weight': 7}),[87 chars] 9})] != [(0, 1, {'weight': 7}), (0, 3, {'weight': 5}),[87 chars] 9})]
First differing element 0:
(0, 3, {'weight': 5})
(0, 1, {'weight': 7})
- [(0, 3, {'weight': 5}),
- (0, 1, {'weight': 7}),
? ^
+ [(0, 1, {'weight': 7}),
? ^
+ (0, 3, {'weight': 5}),
+ (1, 4, {'weight': 7}),
+ (2, 4, {'weight': 5}),
(3, 5, {'weight': 6}),
- (1, 4, {'weight': 7}),
- (4, 2, {'weight': 5}),
(4, 6, {'weight': 9})]
======================================================================
FAIL: test_mst.TestMST.test_prim_mst_edges_specify_weight
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tests/test_mst.py", line 131, in test_prim_mst_edges_specify_weight
assert_equal(sorted(T.edges()),[(1,3),(2,3)])
AssertionError: Lists differ: [(1, 3), (3, 2)] != [(1, 3), (2, 3)]
First differing element 1:
(3, 2)
(2, 3)
- [(1, 3), (3, 2)]
? ---
+ [(1, 3), (2, 3)]
? +++
======================================================================
FAIL: test_simple_paths.test_bidirectional_shortest_path_restricted
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/algorithms/tests/test_simple_paths.py", line 178, in test_bidirectional_shortest_path_restricted
assert_equal(path, [1, 5, 6, 10, 11, 12])
AssertionError: Lists differ: [1, 5, 9, 10, 11, 12] != [1, 5, 6, 10, 11, 12]
First differing element 2:
9
6
- [1, 5, 9, 10, 11, 12]
? ^
+ [1, 5, 6, 10, 11, 12]
? ^
======================================================================
FAIL: test_classic.TestGeneratorClassic.test_circulant_graph
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/generators/tests/test_classic.py", line 156, in test_circulant_graph
assert_equal(Ci6_1.edges(), C6.edges())
AssertionError: Lists differ: [(0, 5), (0, 1), (1, 2), (2, 3), (3, 4), (4, 5)] != [(0, 1), (0, 5), (1, 2), (2, 3), (3, 4), (4, 5)]
First differing element 0:
(0, 5)
(0, 1)
- [(0, 5), (0, 1), (1, 2), (2, 3), (3, 4), (4, 5)]
? --------
+ [(0, 1), (0, 5), (1, 2), (2, 3), (3, 4), (4, 5)]
? ++++++++
======================================================================
FAIL: test_nonisomorphic_trees.TestGeneratorNonIsomorphicTrees.test_nonisomorphic_trees
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/generators/tests/test_nonisomorphic_trees.py", line 47, in test_nonisomorphic_trees
assert_equal(sorted(f(3)[0].edges()), [(0, 1), (0, 2)])
AssertionError: Lists differ: [(0, 2), (1, 0)] != [(0, 1), (0, 2)]
First differing element 0:
(0, 2)
(0, 1)
- [(0, 2), (1, 0)]
+ [(0, 1), (0, 2)]
======================================================================
FAIL: Conversion to incidence matrix
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/linalg/tests/test_graphmatrix.py", line 57, in test_incidence_matrix
assert_equal(nx.incidence_matrix(self.G,oriented=True).todense(),self.OI)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 343, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 854, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 100.0%)
x: [repr failed for <matrix>: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()]
y: array([[-1, -1, -1, 0],
[ 1, 0, 0, -1],
[ 0, 1, 0, 1],...
======================================================================
FAIL: Directed Laplacian
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/linalg/tests/test_laplacian.py", line 90, in test_directed_laplacian
assert_almost_equal(nx.directed_laplacian_matrix(G, alpha=0.9), GL, decimal=3)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 563, in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 962, in assert_array_almost_equal
precision=decimal)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 3 decimals
(mismatch 100.0%)
x: [repr failed for <matrix>: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()]
y: array([[ 0.983, -0.294, -0.388, -0.029, -0.023, -0.026],
[-0.294, 0.833, -0.234, -0.054, -0.059, -0.055],
[-0.388, -0.234, 0.983, -0.028, -0.09 , -0.025],...
======================================================================
FAIL: Directed Modularity matrix
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/linalg/tests/test_modularity.py", line 56, in test_directed_modularity
assert_equal(nx.directed_modularity_matrix(self.DG), B)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 343, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 854, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/home/toc/miniconda3/lib/python3.6/site-packages/numpy/testing/utils.py", line 778, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 100.0%)
x: [repr failed for <matrix>: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()]
y: [repr failed for <matrix>: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()]
======================================================================
FAIL: networkx.tests.test_convert.TestConvert.test_graph
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert.py", line 93, in test_graph
assert_equal(enone, sorted(GG.edges(data=True)))
AssertionError: Lists differ: [(0, [28 chars]}), (9, 8, {}), (2, 3, {}), (3, 4, {}), (4, 5,[36 chars] {})] != [(0, [28 chars]}), (2, 3, {}), (3, 4, {}), (4, 5, {}), (5, 6,[36 chars] {})]
First differing element 3:
(9, 8, {})
(2, 3, {})
[(0, 1, {}),
(0, 9, {}),
(1, 2, {}),
- (9, 8, {}),
(2, 3, {}),
(3, 4, {}),
(4, 5, {}),
(5, 6, {}),
(6, 7, {}),
- (7, 8, {})]
? ^
+ (7, 8, {}),
? ^
+ (9, 8, {})]
======================================================================
FAIL: networkx.tests.test_convert.TestConvert.test_with_multiedges_self_loops
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert.py", line 136, in test_with_multiedges_self_loops
assert_equal(enone, sorted(GG.edges(data=True)))
AssertionError: Lists differ: [(0, 1, {}), (0, 9, {}), (0, 0, {}), (1, 2, {}[81 chars] {})] != [(0, 0, {}), (0, 1, {}), (0, 9, {}), (1, 2, {}[81 chars] {})]
First differing element 0:
(0, 1, {})
(0, 0, {})
- [(0, 1, {}),
? ^
+ [(0, 0, {}),
? ^
+ (0, 1, {}),
(0, 9, {}),
- (0, 0, {}),
(1, 2, {}),
- (9, 8, {}),
(2, 3, {}),
(3, 4, {}),
(4, 5, {}),
(5, 6, {}),
(6, 7, {}),
- (7, 8, {})]
? ^
+ (7, 8, {}),
? ^
+ (9, 8, {})]
======================================================================
FAIL: Conversion from weighted digraph to array to weighted digraph.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 97, in test_identity_weighted_digraph_array
self.identity_conversion(self.G4, A, nx.DiGraph())
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 44, in identity_conversion
self.assert_equal(G, GG)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 40, in assert_equal
assert_true( sorted(G1.edges())==sorted(G2.edges()) )
AssertionError: False is not true
======================================================================
FAIL: Conversion from weighted digraph to matrix to weighted digraph.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 91, in test_identity_weighted_digraph_matrix
self.identity_conversion(self.G4, A, nx.DiGraph())
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 44, in identity_conversion
self.assert_equal(G, GG)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 40, in assert_equal
assert_true( sorted(G1.edges())==sorted(G2.edges()) )
AssertionError: False is not true
======================================================================
FAIL: Conversion from weighted graph to array to weighted graph.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 86, in test_identity_weighted_graph_array
self.identity_conversion(self.G3, A, nx.Graph())
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 44, in identity_conversion
self.assert_equal(G, GG)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 40, in assert_equal
assert_true( sorted(G1.edges())==sorted(G2.edges()) )
AssertionError: False is not true
======================================================================
FAIL: Conversion from weighted graph to matrix to weighted graph.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 80, in test_identity_weighted_graph_matrix
self.identity_conversion(self.G3, A, nx.Graph())
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 44, in identity_conversion
self.assert_equal(G, GG)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_numpy.py", line 40, in assert_equal
assert_true( sorted(G1.edges())==sorted(G2.edges()) )
AssertionError: False is not true
======================================================================
FAIL: Conversion from weighted digraph to sparse matrix to weighted digraph.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_scipy.py", line 96, in test_identity_weighted_digraph_matrix
self.identity_conversion(self.G4, A, nx.DiGraph())
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_scipy.py", line 45, in identity_conversion
self.assert_equal(G, GG)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_scipy.py", line 41, in assert_equal
assert_true( sorted(G1.edges())==sorted(G2.edges()) )
AssertionError: False is not true
======================================================================
FAIL: Conversion from weighted graph to sparse matrix to weighted graph.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/toc/miniconda3/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_scipy.py", line 91, in test_identity_weighted_graph_matrix
self.identity_conversion(self.G3, A, nx.Graph())
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_scipy.py", line 45, in identity_conversion
self.assert_equal(G, GG)
File "/home/toc/miniconda3/lib/python3.6/site-packages/networkx/tests/test_convert_scipy.py", line 41, in assert_equal
assert_true( sorted(G1.edges())==sorted(G2.edges()) )
AssertionError: False is not true
----------------------------------------------------------------------
Ran 2275 tests in 62.286s
FAILED (SKIP=4, failures=57)