Template Function graspi::read_array

Function Documentation

template<typename Container>
bool graspi::read_array(const std::string &name, Container &M, dim_a_t &d_a, dim_g_t &d_g)

This is function to read the colors of vertex - when morphology is stored in the array

Return

the status of the reading data from file

Template Parameters
  • Container: is the container to read the data from

Parameters
  • name: is the filename to read the data from

  • M: is the container to store the read data

  • d_a: is the reference to the struct storing dimensions of the morphology represented as a array

  • d_g: is the reference to the struct storing the dimension of graph vertices