apache / incubator-graphar

An open source, standard data file format for graph data storage and retrieval.
https://graphar.apache.org/
Apache License 2.0
225 stars 46 forks source link

[C++] [Improvement] Provide more writing methods in the C++ library #48

Open lixueclaire opened 1 year ago

lixueclaire commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, the low-level writers (VertexPropertyWriter andEdgeChunkWriter) only support to write Arrow tables, thus for the users, it is required to construct such tables before writing (e.g., writing the PageRank results saved in a std::vector into GAR files). For high-level writers (VerticesBuilder and EdgesBuilder), it is required to construct the Vertex/Edge firstly, which is the internal high-level data structure in GraphAr

Describe the solution you'd like We are proposed to provide more built-in writing methods in C++ Writer SDK, to support additional data structures besides Arrow tables and GraphAr Vertex/Edge. A possible solution is to use containers from the STL, as Boost Graph Library does, including:

lixueclaire commented 1 year ago

@freshyl @KateHed Can you help on this issue?