Module Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str Import alias identifier ImportFrom alias identifier TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr ImportFrom alias handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpMult Num NameLoad Assign NameStore BinOpMult Num NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr CompareLtELtE NameLoad NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Num Num TupleLoad Str Num TupleLoad Str Num For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Dict NameLoad NameLoad Assign NameStore Num Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpMult Num AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Assign NameStore BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Num Num Dict Str Str Str Num Num Num Dict Str Str Str Num Num Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str keyword SubscriptLoad SubscriptLoad NameLoad Index Num Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Num Index Str For NameStore Call AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body For NameStore TupleLoad Num Num body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str Call NameLoad NameLoad NameLoad For NameStore TupleLoad Num Num body Assign NameStore BinOpSub SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore BinOpMult Num AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore BinOpMult BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad GeneratorExp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMult Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore TupleLoad Num Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore TupleLoad Num Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad Num Num Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore TupleLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore TupleLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore TupleLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad Num Num Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A os N/A sys N/A unittest N/A N/A N/A N/A sys path insert 0 N/A N/A N/A os path abspath .. N/A polymaze pmz polymaze polygrid _polygrid_module N/A N/A N/A _assertCountEqual N/A N/A unittest TestCase assertCountEqual unittest mock N/A N/A N/A N/A AttributeError ImportError N/A N/A _assertCountEqual N/A N/A unittest TestCase assertItemsEqual N/A mock TestPolyGrid_Creation N/A N/A unittest TestCase N/A test_create_string_converts_to_image_then_uses_create_image N/A N/A self m_s_img m_crt_im N/A N/A N/A grid N/A generic_grid N/A source_string_spec asdf N/A N/A N/A grid create_string source_string_spec N/A m_s_img_args N/A N/A m_s_img call_args N/A 0 N/A N/A N/A self assertIn source_string_spec m_s_img_args N/A m_crt_im_args N/A N/A m_crt_im call_args N/A 0 N/A N/A N/A self assertIn N/A m_s_img return_value m_crt_im_args N/A N/A N/A N/A mock patch object N/A _polygrid_module PolyGrid create_from_image N/A N/A N/A mock patch object _polygrid_module _string_image test_string_image_returns_a_PIL_image N/A N/A self N/A N/A N/A some_string asdf N/A image N/A N/A _polygrid_module _string_image some_string N/A N/A N/A self assertTrue N/A hasattr image resize N/A test_string_image_uses_bundled_font_when_none_provided N/A N/A self m_tt N/A N/A N/A some_string asdf N/A bundled_font_name NotoSansCJK-Bold.ttc N/A N/A N/A N/A N/A _polygrid_module _string_image some_string N/A N/A N/A Exception N/A N/A N/A m_truetype_args N/A N/A m_tt call_args N/A 0 N/A m_truetype_arg N/A m_truetype_args N/A 0 N/A N/A N/A self assertIn bundled_font_name m_truetype_arg N/A N/A N/A mock patch PIL.ImageFont.truetype test_string_image_tries_provided_font_path N/A N/A self m_truetype N/A N/A N/A some_string asdf N/A some_font somefont N/A N/A N/A N/A N/A _polygrid_module _string_image some_string font_path some_font N/A N/A N/A Exception N/A N/A N/A m_truetype_args N/A N/A m_truetype call_args N/A 0 N/A N/A N/A self assertIn some_font m_truetype_args N/A N/A N/A mock patch PIL.ImageFont.truetype test_string_image_raises_ValueError_if_provided_font_fails N/A N/A self N/A N/A N/A nonexistent_font_path asdfjkl N/A some_string asdf N/A N/A N/A self assertRaises ValueError N/A _polygrid_module _string_image some_string font_path nonexistent_font_path N/A test_create_from_image_looks_like_provided_image N/A N/A self N/A N/A N/A N/A test_string_image_is_about_double_height_with_newline N/A N/A self N/A N/A N/A char a N/A image_without_newline N/A N/A _polygrid_module _string_image char N/A char_with_newline N/A N/A char \n char N/A image_with_newline N/A N/A _polygrid_module _string_image char_with_newline N/A h_single_line N/A N/A image_without_newline size N/A 1 N/A h_min_spec N/A 2 h_single_line N/A h_max_spec N/A 3.5 h_single_line N/A h_double N/A N/A image_with_newline size N/A 1 N/A N/A N/A self assertTrue N/A h_min_spec h_double h_max_spec N/A N/A Height of text with newline was unexpectedly not about double the height of a single line.
Expected between {} and {} but got {} format h_min_spec h_max_spec h_double N/A test_sized_grid_is_under_single_target_size_by_less_than_4_side_lengths N/A N/A self N/A N/A N/A single_dimension_size_spec N/A 0 1 N/A height 15 N/A width 20 N/A N/A dimension N/A kw dimension_limit N/A N/A single_dimension_size_spec items N/A N/A sized_grid N/A generic_grid N/A N/A N/A sized_grid create_string ? N/A kw dimension_limit N/A dimension_min 99999 N/A dimension_max -99999 N/A edge N/A N/A sized_grid edges N/A N/A yx_units N/A N/A edge endpoints N/A N/A dimension_value N/A yx_units N/A dimension N/A dimension_min N/A min dimension_value dimension_min N/A dimension_max N/A max dimension_value dimension_max N/A size N/A dimension_max dimension_min N/A max_delta_spec N/A 4 N/A N/A sized_grid _supershape _reference_length N/A size_max_spec N/A N/A single_dimension_size_spec N/A dimension N/A 1 N/A size_min_spec N/A size_max_spec max_delta_spec N/A N/A N/A self assertGreaterEqual size size_min_spec N/A N/A N/A self assertLessEqual size size_max_spec N/A test_sized_grid_is_under_double_target_size_by_less_than_4_side_lengths N/A N/A self N/A N/A N/A dimensions_data N/A 0 1 N/A size_spec actual_max actual_min 15 -99999 99999 N/A size_spec actual_max actual_min 20 -99999 99999 N/A sized_grid N/A generic_grid N/A N/A N/A sized_grid create_string ? height N/A N/A dimensions_data N/A 0 N/A size_spec width N/A N/A dimensions_data N/A 1 N/A size_spec N/A edge N/A N/A sized_grid edges N/A N/A yx_point N/A N/A edge endpoints N/A N/A dimension N/A 0 1 N/A N/A dimension_value N/A yx_point N/A dimension N/A dimension_min N/A N/A dimensions_data N/A dimension N/A actual_min N/A N/A N/A dimensions_data N/A dimension N/A actual_min N/A min dimension_value dimension_min N/A dimension_max N/A N/A dimensions_data N/A dimension N/A actual_max N/A N/A N/A dimensions_data N/A dimension N/A actual_max N/A max dimension_value dimension_max N/A dimension N/A 0 1 N/A N/A size N/A N/A N/A dimensions_data N/A dimension N/A actual_max N/A N/A dimensions_data N/A dimension N/A actual_min N/A max_delta_spec N/A 4 N/A N/A sized_grid _supershape _reference_length N/A size_max_spec N/A N/A dimensions_data N/A dimension N/A size_spec N/A size_min_spec N/A size_max_spec max_delta_spec N/A N/A N/A self assertGreaterEqual size size_min_spec N/A N/A N/A self assertLessEqual size size_max_spec N/A N/A TestShapeGrid N/A N/A unittest TestCase N/A test_produces_an_empty_grid N/A N/A self N/A N/A N/A grid N/A N/A pmz PolyGrid N/A N/A N/A self assertEqual N/A len N/A tuple N/A N/A grid shapes 0 N/A test_create_rectangle_produces_a_rectangular_graph N/A N/A self N/A N/A N/A grid N/A generic_grid N/A N/A N/A grid create_rectangle complexity 3 N/A all_vertexes N/A list N/A edge N/A N/A grid edges N/A N/A N/A N/A all_vertexes extend N/A N/A edge endpoints N/A N/A y_all x_all N/A zip all_vertexes N/A N/A top bottom N/A N/A min y_all N/A max y_all N/A N/A left right N/A N/A min x_all N/A max x_all N/A rectangular_area N/A N/A bottom top N/A right left N/A shape_count N/A len N/A tuple N/A s N/A s N/A N/A grid shapes N/A rectangular_shape_area_spec N/A shape_count N/A N/A N/A grid _supershape avg_area N/A tolerance N/A 0.1 rectangular_shape_area_spec N/A N/A N/A self assertAlmostEqual rectangular_area rectangular_shape_area_spec delta tolerance N/A test_get_returns_shape_created_with_same_index N/A N/A self N/A N/A N/A grid N/A generic_grid N/A some_index N/A 1 2 N/A shape_spec N/A N/A grid create some_index N/A shape N/A N/A grid get some_index N/A N/A N/A self assertIs shape shape_spec N/A test_get_returns_None_for_nonexistent_indexes N/A N/A self N/A N/A N/A grid N/A generic_grid N/A unused_index N/A 1 2 N/A N/A N/A self assertIsNone N/A N/A grid get unused_index N/A test_shapes_generates_each_shape_exactly_once N/A N/A self N/A N/A N/A known_creator N/A N/A pmz SUPERSHAPES_DICT N/A Square N/A some_index N/A 1 2 N/A grid N/A generic_grid supershape known_creator neighborhood_center_index some_index N/A all_shapes_spec N/A N/A N/A grid _shapes values N/A shape_count_spec 5 N/A N/A N/A self assertEqual N/A len all_shapes_spec shape_count_spec N/A all_shapes N/A tuple N/A N/A grid shapes N/A N/A _assertCountEqual self all_shapes all_shapes_spec N/A test_edges_generates_each_edge_exactly_once N/A N/A self N/A N/A N/A known_creator N/A N/A pmz SUPERSHAPES_DICT N/A Square N/A some_index N/A 1 2 N/A grid N/A generic_grid supershape known_creator neighborhood_center_index some_index N/A edges_spec N/A list N/A shape N/A N/A grid shapes N/A N/A N/A n_index edge N/A N/A shape edges N/A N/A N/A edge edges_spec N/A N/A N/A N/A edges_spec append edge N/A edge_count_spec 16 N/A N/A N/A self assertEqual N/A len edges_spec edge_count_spec N/A edges N/A tuple N/A N/A grid edges N/A N/A _assertCountEqual self edges edges_spec N/A test_border_shapes_generates_all_shapes_with_any_empty_neighbors N/A N/A self N/A N/A N/A center_index N/A 1 1 N/A grid N/A generic_grid neighborhood_center_index center_index N/A center N/A N/A grid get center_index N/A n_indexes N/A tuple N/A N/A center n_indexes N/A border_shapes_spec N/A N/A N/A grid get n_index N/A n_index n_indexes N/A border_shapes N/A tuple N/A N/A grid border_shapes N/A N/A _assertCountEqual self border_shapes border_shapes_spec N/A test_remove_removes_shape_from_the_grid N/A N/A self N/A N/A N/A grid N/A generic_grid N/A some_index N/A 1 2 N/A N/A N/A grid create some_index N/A shape_before_remove N/A N/A grid get some_index N/A N/A N/A self assertIsNotNone shape_before_remove N/A N/A N/A grid remove some_index N/A center_shape_after_remove N/A N/A grid get some_index N/A N/A N/A self assertIsNone center_shape_after_remove N/A test_remove_removes_the_grid_from_the_shape N/A N/A self N/A N/A N/A grid N/A generic_grid N/A some_index N/A 1 2 N/A N/A N/A grid create some_index N/A removed_shape N/A N/A grid get some_index N/A N/A N/A self assertIs N/A removed_shape _grid grid N/A N/A N/A grid remove some_index N/A N/A N/A self assertIsNone N/A removed_shape _grid N/A test_remove_for_nonexistent_key_simply_returns N/A N/A self N/A N/A N/A grid N/A generic_grid N/A some_index N/A 1 2 N/A N/A N/A self assertIsNone N/A N/A grid get some_index N/A N/A N/A self assertIsNone N/A N/A grid remove some_index N/A test_remove_causes_unshared_edges_of_removed_shape_to_be_delisted N/A N/A self N/A N/A N/A grid N/A generic_grid N/A some_index N/A 1 2 N/A N/A N/A grid create some_index N/A edges_before_remove N/A tuple N/A N/A grid edges N/A N/A N/A self assertNotEqual N/A len edges_before_remove 0 N/A N/A N/A grid remove some_index N/A edges_after_remove N/A tuple N/A N/A grid edges N/A N/A N/A self assertEqual N/A len edges_after_remove 0 N/A test_remove_pushes_shared_edges_of_removed_shape_to_neighbors N/A N/A self N/A N/A N/A center_index N/A 1 2 N/A grid N/A generic_grid neighborhood_center_index center_index N/A center_shape N/A N/A grid get center_index N/A center_neighbor_edge_combos N/A list N/A N/A n_index neighbor N/A N/A center_shape neighbors N/A N/A N/A N/A self assertTrue N/A n_index N/A center_shape _owned_edges N/A edge N/A N/A center_shape edge n_index N/A N/A N/A center_neighbor_edge_combos append N/A neighbor edge N/A N/A N/A grid remove center_index N/A N/A neighbor previously_unowned_edge center_neighbor_edge_combos N/A N/A owned_edges N/A N/A N/A neighbor _owned_edges values N/A N/A N/A self assertIn previously_unowned_edge owned_edges N/A N/A generic_grid N/A N/A supershape neighborhood_center_index N/A None None N/A N/A grid N/A N/A pmz PolyGrid supershape supershape N/A neighborhood_center_index N/A N/A center_shape N/A N/A grid create neighborhood_center_index N/A n_index N/A N/A center_shape n_indexes N/A N/A N/A N/A grid create n_index N/A grid N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main