Module Import alias identifier ImportFrom alias alias Import alias identifier ImportFrom alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Slice Num Num Index Num Num Assign SubscriptStore NameLoad ExtSlice Index Num Slice Num Num Num Assign NameStore Str FunctionDef arguments args defaults body With Call NameLoad ListLoad BinOpAdd Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Expr Call NameLoad NameLoad ListLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Expr Call NameLoad NameLoad ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr CompareEq NameLoad Num AttributeLoad NameLoad attr Num Assign NameStore ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr CompareEq NameLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr CompareEq NameLoad Num AttributeLoad NameLoad attr Num With Call NameLoad ListLoad BinOpAdd Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad With Call NameLoad ListLoad BinOpAdd Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body With Call NameLoad ListLoad BinOpAdd Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Num Num TupleLoad Num Num keyword NameLoad Expr Call NameLoad NameLoad BinOpDiv Call AttributeLoad NameLoad attr Num Num Expr Call NameLoad NameLoad ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num decorator_list FunctionDef arguments args defaults body With Call NameLoad ListLoad BinOpAdd Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Expr Call NameLoad NameLoad ListLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Expr Call NameLoad NameLoad ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpAdd ListComp TupleLoad Num NameLoad comprehension NameStore Call NameLoad Num ListComp TupleLoad Num UnaryOpUSub NameLoad comprehension NameStore Call NameLoad Num Num With Call NameLoad ListLoad BinOpAdd Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num Num Expr Call NameLoad NameLoad ListLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num decorator_list FunctionDef arguments args defaults body For NameStore BinOpMult ListLoad TupleLoad Num Num TupleLoad Num Num Num Num Num body Expr Yield TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad BinOpMult ListLoad Num Call NameLoad NameLoad BinOpMult ListLoad Num Call NameLoad NameLoad Call AttributeLoad BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad attr NameLoad Assign NameStore ListComp Call AttributeLoad BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad Num With Call NameLoad ListLoad BinOpAdd Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore ListComp Call AttributeLoad BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr
N/A N/A numpy np numpy.testing assert_array_equal assert_almost_equal N/A skimage.graph.mcp mcp skimage._shared._warnings expected_warnings N/A N/A N/A N/A np random seed 0 N/A a N/A N/A np ones N/A 8 8 dtype N/A np float32 N/A N/A a N/A N/A 1 -1 N/A 1 0 N/A N/A a N/A N/A 1 N/A 1 -1 0 N/A warning_optional |\A\Z test_basic N/A N/A N/A N/A N/A N/A expected_warnings N/A N/A Upgrading NumPy warning_optional N/A N/A m N/A N/A mcp MCP a fully_connected True N/A N/A costs traceback N/A N/A m find_costs N/A N/A 1 6 N/A return_path N/A N/A m traceback N/A 7 2 N/A N/A assert_array_equal costs N/A N/A 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 N/A 1.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 N/A 1.0 0.0 1.0 1.0 1.0 1.0 1.0 1.0 N/A 1.0 0.0 1.0 2.0 2.0 2.0 2.0 2.0 N/A 1.0 0.0 1.0 2.0 3.0 3.0 3.0 3.0 N/A 1.0 0.0 1.0 2.0 3.0 4.0 4.0 4.0 N/A 1.0 0.0 1.0 2.0 3.0 4.0 5.0 5.0 N/A 1.0 1.0 1.0 2.0 3.0 4.0 5.0 6.0 N/A N/A assert_array_equal return_path N/A N/A 1 6 N/A 1 5 N/A 1 4 N/A 1 3 N/A 1 2 N/A 2 1 N/A 3 1 N/A 4 1 N/A 5 1 N/A 6 1 N/A 7 2 N/A test_neg_inf N/A N/A N/A N/A N/A expected_costs N/A N/A np where N/A a 1 N/A np inf 0 N/A expected_path N/A N/A 1 6 N/A 1 5 N/A 1 4 N/A 1 3 N/A 1 2 N/A 2 1 N/A 3 1 N/A 4 1 N/A 5 1 N/A 6 1 N/A test_neg N/A N/A np where N/A a 1 -1 0 N/A test_inf N/A N/A np where N/A a 1 N/A np inf 0 N/A N/A expected_warnings N/A N/A Upgrading NumPy warning_optional N/A N/A m N/A N/A mcp MCP test_neg fully_connected True N/A N/A costs traceback N/A N/A m find_costs N/A N/A 1 6 N/A return_path N/A N/A m traceback N/A 6 1 N/A N/A assert_array_equal costs expected_costs N/A N/A assert_array_equal return_path expected_path N/A N/A expected_warnings N/A N/A Upgrading NumPy warning_optional N/A N/A m N/A N/A mcp MCP test_inf fully_connected True N/A N/A costs traceback N/A N/A m find_costs N/A N/A 1 6 N/A return_path N/A N/A m traceback N/A 6 1 N/A N/A assert_array_equal costs expected_costs N/A N/A assert_array_equal return_path expected_path N/A test_route N/A N/A N/A N/A N/A N/A expected_warnings N/A N/A Upgrading NumPy warning_optional N/A N/A N/A return_path cost N/A N/A mcp route_through_array a N/A 1 6 N/A 7 2 geometric True N/A N/A assert_almost_equal cost N/A N/A N/A np sqrt 2 2 N/A N/A assert_array_equal return_path N/A N/A 1 6 N/A 1 5 N/A 1 4 N/A 1 3 N/A 1 2 N/A 2 1 N/A 3 1 N/A 4 1 N/A 5 1 N/A 6 1 N/A 7 2 N/A test_no_diagonal N/A N/A N/A N/A N/A N/A expected_warnings N/A N/A Upgrading NumPy warning_optional N/A N/A m N/A N/A mcp MCP a fully_connected False N/A N/A costs traceback N/A N/A m find_costs N/A N/A 1 6 N/A return_path N/A N/A m traceback N/A 7 2 N/A N/A assert_array_equal costs N/A N/A 2.0 1.0 1.0 1.0 1.0 1.0 1.0 2.0 N/A 1.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 N/A 1.0 0.0 1.0 1.0 1.0 1.0 1.0 2.0 N/A 1.0 0.0 1.0 2.0 2.0 2.0 2.0 3.0 N/A 1.0 0.0 1.0 2.0 3.0 3.0 3.0 4.0 N/A 1.0 0.0 1.0 2.0 3.0 4.0 4.0 5.0 N/A 1.0 0.0 1.0 2.0 3.0 4.0 5.0 6.0 N/A 2.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 N/A N/A assert_array_equal return_path N/A N/A 1 6 N/A 1 5 N/A 1 4 N/A 1 3 N/A 1 2 N/A 1 1 N/A 2 1 N/A 3 1 N/A 4 1 N/A 5 1 N/A 6 1 N/A 7 1 N/A 7 2 N/A test_offsets N/A N/A N/A N/A N/A offsets N/A N/A N/A 1 i N/A i N/A range 10 N/A N/A 1 N/A i N/A i N/A range 1 10 N/A N/A expected_warnings N/A N/A Upgrading NumPy warning_optional N/A N/A m N/A N/A mcp MCP a offsets offsets N/A N/A costs traceback N/A N/A m find_costs N/A N/A 1 6 N/A N/A assert_array_equal traceback N/A N/A -2 -2 -2 -2 -2 -2 -2 -2 N/A -2 -2 -2 -2 -2 -2 -1 -2 N/A 15 14 13 12 11 10 0 1 N/A 10 0 1 2 3 4 5 6 N/A 10 0 1 2 3 4 5 6 N/A 10 0 1 2 3 4 5 6 N/A 10 0 1 2 3 4 5 6 N/A 10 0 1 2 3 4 5 6 N/A test_crashing N/A N/A N/A N/A N/A shape N/A N/A N/A 100 100 N/A 5 8 13 17 5 N/A N/A N/A N/A _test_random shape N/A _test_random N/A N/A shape N/A N/A N/A a N/A N/A N/A N/A N/A np random rand shape astype N/A np float32 N/A starts N/A N/A N/A 0 N/A len shape N/A N/A -1 N/A len shape N/A N/A N/A N/A N/A N/A np random rand N/A len shape shape astype int N/A ends N/A N/A N/A N/A N/A N/A N/A np random rand N/A len shape shape astype int N/A i N/A range 4 N/A N/A expected_warnings N/A N/A Upgrading NumPy warning_optional N/A N/A m N/A N/A mcp MCP a fully_connected True N/A N/A costs offsets N/A N/A m find_costs starts N/A point N/A N/A N/A N/A N/A N/A N/A np random rand N/A len shape shape astype int N/A i N/A range 4 N/A N/A N/A N/A m traceback point N/A N/A N/A m _reset N/A N/A N/A m find_costs starts ends N/A end ends N/A N/A N/A N/A m traceback end N/A N/A a costs offsets N/A N/A N/A __name__ __main__ N/A N/A N/A N/A N/A np testing run_module_suite