diff options
author | Arafat <arafat.da.khan@gmail.com> | 2016-01-07 22:37:55 +0530 |
---|---|---|
committer | Arafat <arafat.da.khan@gmail.com> | 2016-01-07 22:37:55 +0530 |
commit | d4947aa7c9f14251959abea47f2e0691c89fcdd0 (patch) | |
tree | 95b5ab446fa6b6fa732193f4e72a71c03bfef38d | |
parent | 9e57e547d89630ae55da5d1b846f29586ccebc46 (diff) | |
download | networkx-d4947aa7c9f14251959abea47f2e0691c89fcdd0.tar.gz |
Adding test
-rw-r--r-- | networkx/algorithms/connectivity/tests/test_cuts.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/networkx/algorithms/connectivity/tests/test_cuts.py b/networkx/algorithms/connectivity/tests/test_cuts.py index 1086cf9c..264bc4af 100644 --- a/networkx/algorithms/connectivity/tests/test_cuts.py +++ b/networkx/algorithms/connectivity/tests/test_cuts.py @@ -238,6 +238,13 @@ def tests_min_cut_complete_directed(): for flow_func in flow_funcs: assert_equal(4, len(interface_func(G, flow_func=flow_func))) +def tests_minimum_st_node_cut(): + G = nx.Graph() + G.add_nodes_from([0, 1, 2, 3, 7, 8, 11, 12]) + G.add_edges_from([(7, 11), (1, 11), (1, 12), (12, 8), (0, 1)]) + nodelist = minimum_st_node_cut(G, 7, 11) + assert(nodelist == []) + def test_invalid_auxiliary(): G = nx.complete_graph(5) assert_raises(nx.NetworkXError, minimum_st_node_cut, G, 0, 3, |