Apache GraphAr C++ Library
The C++ Library for Apache GraphAr
|
VerticesCollection is designed for reading a collection of vertices. More...
#include <graph_reader.h>
Public Member Functions | |
VerticesCollection (const std::shared_ptr< VertexInfo > &vertex_info, const std::string &prefix) | |
Initialize the VerticesCollection. More... | |
VertexIter | begin () noexcept |
VertexIter | end () noexcept |
VertexIter | find (IdType id) |
size_t | size () const noexcept |
Static Public Member Functions | |
static Result< std::shared_ptr< VerticesCollection > > | Make (const std::shared_ptr< GraphInfo > &graph_info, const std::string &label) |
Construct a VerticesCollection from graph info and vertex label. More... | |
VerticesCollection is designed for reading a collection of vertices.
Definition at line 263 of file graph_reader.h.
|
inlineexplicit |
Initialize the VerticesCollection.
vertex_info | The vertex info that describes the vertex type. |
prefix | The absolute prefix. |
Definition at line 271 of file graph_reader.h.
|
inlinenoexcept |
The iterator pointing to the first vertex.
Definition at line 286 of file graph_reader.h.
|
inlinenoexcept |
The iterator pointing to the past-the-end element.
Definition at line 289 of file graph_reader.h.
|
inline |
The iterator pointing to the vertex with specific id.
Definition at line 294 of file graph_reader.h.
|
inlinestatic |
Construct a VerticesCollection from graph info and vertex label.
graph_info | The graph info. |
label | The vertex label. |
Definition at line 305 of file graph_reader.h.
|
inlinenoexcept |
Get the number of vertices in the collection.
Definition at line 297 of file graph_reader.h.