show_area_connection#

show_area_connection(env, layout='spring')[source]#

Show environment area connections.

Parameters:
  • env (environment object) – NeuGym environment object.

  • layout (str {"circular", "spring", "shell", "spectral"} (default: "circular")) – Layout with which to show the area connections.

Examples

>>> W = GridWorld()
>>> W.add_area((1, 1))
>>> W.add_path((0, 0, 0), (1, 0, 0))
>>> W.add_area((1, 1))
>>> W.add_path((1, 0, 0), (2, 0, 0), register_action=(0, -1))
>>> W.add_area((1, 1))
>>> W.add_path((2, 0, 0), (3, 0, 0), register_action=(-1, 0))
>>> W.add_path((3, 0, 0), (0, 0, 0))
>>> ng.show_area_connection(W)