EdgesCollection is designed for reading a collection of edges.
More...
#include <graph_reader.h>
|
static Result< std::shared_ptr< EdgesCollection > > | Make (const std::shared_ptr< GraphInfo > &graph_info, const std::string &src_label, const std::string &edge_label, const std::string &dst_label, AdjListType adj_list_type, const IdType vertex_chunk_begin=0, const IdType vertex_chunk_end=std::numeric_limits< int64_t >::max()) noexcept |
| Construct an EdgesCollection from graph info and edge label. More...
|
|
|
| EdgesCollection (const std::shared_ptr< EdgeInfo > &edge_info, const std::string &prefix, IdType vertex_chunk_begin, IdType vertex_chunk_end, AdjListType adj_list_type) |
| Initialize the EdgesCollection with a range of chunks. More...
|
|
|
std::shared_ptr< EdgeInfo > | edge_info_ |
|
std::string | prefix_ |
|
AdjListType | adj_list_type_ |
|
IdType | chunk_begin_ |
|
IdType | chunk_end_ |
|
std::shared_ptr< util::IndexConverter > | index_converter_ |
|
std::shared_ptr< EdgeIter > | begin_ |
|
std::shared_ptr< EdgeIter > | end_ |
|
IdType | edge_num_ |
|
EdgesCollection is designed for reading a collection of edges.
Definition at line 659 of file graph_reader.h.
◆ EdgesCollection()
graphar::EdgesCollection::EdgesCollection |
( |
const std::shared_ptr< EdgeInfo > & |
edge_info, |
|
|
const std::string & |
prefix, |
|
|
IdType |
vertex_chunk_begin, |
|
|
IdType |
vertex_chunk_end, |
|
|
AdjListType |
adj_list_type |
|
) |
| |
|
inlineexplicitprotected |
Initialize the EdgesCollection with a range of chunks.
- Parameters
-
edge_info | The edge info that describes the edge type. |
prefix | The absolute prefix. |
vertex_chunk_begin | The index of the begin vertex chunk. |
vertex_chunk_end | The index of the end vertex chunk (not included). |
adj_list_type | The type of adjList. |
Definition at line 736 of file graph_reader.h.
◆ begin()
virtual EdgeIter graphar::EdgesCollection::begin |
( |
| ) |
|
|
inlinevirtual |
The iterator pointing to the first edge.
Definition at line 664 of file graph_reader.h.
◆ end()
virtual EdgeIter graphar::EdgesCollection::end |
( |
| ) |
|
|
inlinevirtual |
The iterator pointing to the past-the-end element.
Definition at line 674 of file graph_reader.h.
◆ find_dst()
virtual EdgeIter graphar::EdgesCollection::find_dst |
( |
IdType |
id, |
|
|
const EdgeIter & |
from |
|
) |
| |
|
pure virtual |
◆ find_src()
virtual EdgeIter graphar::EdgesCollection::find_src |
( |
IdType |
id, |
|
|
const EdgeIter & |
from |
|
) |
| |
|
pure virtual |
◆ Make()
Result< std::shared_ptr< EdgesCollection > > graphar::EdgesCollection::Make |
( |
const std::shared_ptr< GraphInfo > & |
graph_info, |
|
|
const std::string & |
src_label, |
|
|
const std::string & |
edge_label, |
|
|
const std::string & |
dst_label, |
|
|
AdjListType |
adj_list_type, |
|
|
const IdType |
vertex_chunk_begin = 0 , |
|
|
const IdType |
vertex_chunk_end = std::numeric_limits<int64_t>::max() |
|
) |
| |
|
staticnoexcept |
Construct an EdgesCollection from graph info and edge label.
- Parameters
-
graph_info | The graph info. |
src_label | The source vertex label. |
edge_label | The edge label. |
dst_label | The destination vertex label. |
adj_list_type | The type of adjList. |
vertex_chunk_begin | The index of the begin vertex chunk, default 0. |
vertex_chunk_end | The index of the end vertex chunk (not included), default max. |
Definition at line 546 of file graph_reader.cc.
◆ size()
virtual size_t graphar::EdgesCollection::size |
( |
| ) |
const |
|
inlinevirtualnoexcept |
Get the number of edges in the collection.
Definition at line 684 of file graph_reader.h.
The documentation for this class was generated from the following files: