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_type, const std::string &edge_type, const std::string &dst_type, 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 type. 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 830 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 906 of file graph_reader.h.
◆ begin()
| virtual EdgeIter graphar::EdgesCollection::begin |
( |
| ) |
|
|
inlinevirtual |
The iterator pointing to the first edge.
Definition at line 835 of file graph_reader.h.
◆ end()
| virtual EdgeIter graphar::EdgesCollection::end |
( |
| ) |
|
|
inlinevirtual |
The iterator pointing to the past-the-end element.
Definition at line 845 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_type, |
|
|
const std::string & |
edge_type, |
|
|
const std::string & |
dst_type, |
|
|
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 type.
- Parameters
-
| graph_info | The graph info. |
| src_type | The source vertex type. |
| edge_type | The edge type. |
| dst_type | The destination vertex type. |
| 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 944 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 855 of file graph_reader.h.
The documentation for this class was generated from the following files: