#include <parallel_edge_list_reader.hpp>
Parallel edge list reader
Definition at line 69 of file parallel_edge_list_reader.hpp.
havoqgt::parallel_edge_list_reader::parallel_edge_list_reader |
( |
const std::vector< std::string > & |
filenames | ) |
|
|
inline |
- Todo:
- Add undirected flag
Definition at line 139 of file parallel_edge_list_reader.hpp.
146 for(
size_t i=0; i<filenames.size(); ++i) {
147 if(i % mpi_size == mpi_rank) {
154 std::cout <<
"files open" << std::endl;
156 uint64_t local_max_vertex = 0;
159 local_max_vertex = std::max(edge.first, local_max_vertex);
160 local_max_vertex = std::max(edge.second, local_max_vertex);
std::vector< std::string > m_local_filenames
std::pair< uint64_t, uint64_t > edge_type
const communicator & world_comm() const
uint64_t m_global_max_vertex
T mpi_all_reduce(T in_d, Op in_op, MPI_Comm mpi_comm)
uint64_t m_local_edge_count
environment * havoqgt_env()
bool try_read_edge(edge_type &edge)
uint64_t havoqgt::parallel_edge_list_reader::max_vertex_id |
( |
| ) |
|
|
inline |
void havoqgt::parallel_edge_list_reader::open_files |
( |
| ) |
|
|
inlineprotected |
Definition at line 204 of file parallel_edge_list_reader.hpp.
209 std::ifstream* ptr =
new std::ifstream(*itr);
213 std::cerr <<
"Error opening filename: " << *itr;
std::vector< std::string > m_local_filenames
std::deque< std::ifstream * > m_ptr_ifstreams
#define HAVOQGT_ERROR_MSG(msg)
size_t havoqgt::parallel_edge_list_reader::size |
( |
| ) |
|
|
inline |
bool havoqgt::parallel_edge_list_reader::try_read_edge |
( |
edge_type & |
edge | ) |
|
|
inlineprotected |
Definition at line 189 of file parallel_edge_list_reader.hpp.
193 std::stringstream ssline(line);
194 ssline >> edge.first >> edge.second;
std::deque< std::ifstream * > m_ptr_ifstreams
uint64_t havoqgt::parallel_edge_list_reader::m_global_max_vertex |
|
protected |
uint64_t havoqgt::parallel_edge_list_reader::m_local_edge_count |
|
protected |
std::vector< std::string > havoqgt::parallel_edge_list_reader::m_local_filenames |
|
protected |
std::deque< std::ifstream* > havoqgt::parallel_edge_list_reader::m_ptr_ifstreams |
|
protected |
The documentation for this class was generated from the following file: