incubator-graphar icon indicating copy to clipboard operation
incubator-graphar copied to clipboard

[C++] [Improvement] Support to write std::vector in VerticesBuilder/EdgeBuilder of the C++ library

Open lixueclaire opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. As the first step of issue #48, we propose to add new methods in the writers of the GraphAr C++ library to support the use of std::vector as an input parameter and write the data to generate GraphAr data files.

Describe the solution you'd like To extend the high-level writer of the C++ library, i.e. VerticesBuilder and EdgesBuilder, we recommend to implement the following function, for adding a column of a property:

class VerticesBuilder/EdgesBuilder {
  ...
  Status AddPropertyColumn(const std::string &property, const std::vector &values);
  ...
}

For implementation, the values can be added in Vertices of the builder one by one, or it can be saved separately and processed when Dump() is called.

Describe alternatives you've considered As the next step, we suggest modifying the low-level writers of the C++ library to support writing std::vector.

Additional context This issue is a part of issue #48 and is a good first issue for beginners to get familiar with our C++ library.

lixueclaire avatar May 24 '23 02:05 lixueclaire