def it_doesnt_create_duplicate_direction_edges_in_multidigraph(
     self, trioban_tessellation
 ):
     board_graph = BoardGraph(4, GraphType.DIRECTED_MULTI)
     board_graph.reconfigure_edges(2, 2, trioban_tessellation)
     assert board_graph.out_edges_count(0, 1) == 2
     assert board_graph.out_edges_count(1, 0) == 2
 def it_reconfigures_all_edges_in_board(self, sokoban_tessellation):
     board_graph = BoardGraph(4, GraphType.DIRECTED)
     board_graph.reconfigure_edges(2, 2, sokoban_tessellation)
     assert board_graph.edges_count() == 8
     assert board_graph.has_edge(0, 1, Direction.RIGHT)
     assert board_graph.has_edge(1, 0, Direction.LEFT)
     assert board_graph.has_edge(0, 2, Direction.DOWN)
     assert board_graph.has_edge(2, 0, Direction.UP)
     assert board_graph.has_edge(2, 3, Direction.RIGHT)
     assert board_graph.has_edge(3, 2, Direction.LEFT)
     assert board_graph.has_edge(1, 3, Direction.DOWN)
     assert board_graph.has_edge(3, 1, Direction.UP)
 def it_returs_true_if_edge_in_given_direction_exists(
     self, sokoban_tessellation
 ):
     board_graph = BoardGraph(4, GraphType.DIRECTED)
     board_graph.reconfigure_edges(2, 2, sokoban_tessellation)
     assert board_graph.has_edge(0, 1, Direction.RIGHT)