title: How to represent grid environment as a graph?
body: <p>I would like to try to proceed some experiment, where I give two inputs for reinforcement learning agents. As first input, I would like to provide him grid-like environment that would represent room-maze with some walls and reward in one of the maze rooms. And the second one would be a graph representation of this maze.</p>
  <p>I'm still stuck at planning the experiment, because I'm not sure about creating sufficient way to create a proper graph structure of 2D-grid environment. For example, I was thinking about looking for some algorithms that is able to find modularities (e.g. modules could correspond to rooms).</p>
  <p>Do you have any idea what would be worth recommending when it comes to building a graph? And maybe what RL algorithm would work fine on both?</p>