I am using Boost Graph Library for map management in my robotics project. I intend to use Boost Grid and I am finding the Boost Graph documentation really hard to understand so I need a little help.
This is the way I have created the grid, and printing it :
  struct sampleVertex {
    int row;
    int col;
    bool occupied;
  };
  boost::array<std::size_t, 2> lengths = { { 3, 2 } };
  boost::grid_graph<2> gridD(lengths);
  boost::write_graphviz(fout, gridD);
Now, I want to add custom properties to the vertices, as defined as a struct - 'sampleVertex'. Please show me some code snippet or example to do this. I am aware that, the bundled properties could be added through an adjacency_list and manually creating grid-vertices and connecting edges. I am wondering, if it could be done directly using boost::grid_graph. Thanks in advance.
 
    