@@ -140,22 +140,22 @@ def test_paths_number_of_paths():
140140 assert paths .number_of_paths_algorithm (wg , 0 ) == paths .algorithm .acyclic
141141 assert paths .number_of_paths (wg , 0 ) == POSITIVE_INFINITY
142142 # source, min, max
143- assert paths .number_of_paths (wg , 0 , 0 , 10 ) == 1023
143+ assert paths .number_of_paths (wg , 0 , 0 , 9 ) == 1023
144144 # source, target, min, max
145- assert paths .number_of_paths (wg , 0 , 1 , 0 , 10 ) == 511
145+ assert paths .number_of_paths (wg , 0 , 1 , 0 , 9 ) == 511
146146
147147 assert paths .number_of_paths_algorithm (wg , 1 ) == paths .algorithm .acyclic
148148 assert paths .number_of_paths (wg , 1 ) == POSITIVE_INFINITY
149149 # source, min, max
150- assert paths .number_of_paths (wg , 1 , 0 , 10 ) == 1023
150+ assert paths .number_of_paths (wg , 1 , 0 , 9 ) == 1023
151151 assert paths .number_of_paths (wg , 1 , 0 , POSITIVE_INFINITY ) == POSITIVE_INFINITY
152152
153153 assert paths .number_of_paths_algorithm (wg , 2 ) == paths .algorithm .acyclic
154- assert paths .number_of_paths_algorithm (wg , 2 , 0 , 10 ) == paths .algorithm .dfs
154+ assert paths .number_of_paths_algorithm (wg , 2 , 0 , 9 ) == paths .algorithm .dfs
155155 assert paths .number_of_paths_algorithm (wg , 2 , 0 , POSITIVE_INFINITY ) == paths .algorithm .trivial
156156 assert paths .number_of_paths (wg , 2 ) == POSITIVE_INFINITY
157157 # source, min, max
158- assert paths .number_of_paths (wg , 2 , 0 , 10 ) == 10
158+ assert paths .number_of_paths (wg , 2 , 0 , 9 ) == 10
159159 assert (
160- paths .number_of_paths_algorithm (wg , 2 , 2 , 10 , POSITIVE_INFINITY ) == paths .algorithm .trivial
160+ paths .number_of_paths_algorithm (wg , 2 , 2 , 9 , POSITIVE_INFINITY ) == paths .algorithm .trivial
161161 )
0 commit comments