#include <upper_triangle_edge_generator.hpp>
|
typedef std::pair< uint64_t, uint64_t > | edge_type |
|
havoqgt::upper_triangle_edge_generator::upper_triangle_edge_generator |
( |
uint64_t |
total_edges, |
|
|
int |
rank, |
|
|
int |
size, |
|
|
bool |
undirected |
|
) |
| |
|
inline |
Definition at line 186 of file upper_triangle_edge_generator.hpp.
196 uint64_t start_count = (total_edges /
size) * rank;
const uint64_t m_total_edges
uint64_t find_max_vertex(uint64_t num_edges)
const uint64_t m_max_vertex
uint64_t havoqgt::upper_triangle_edge_generator::find_max_vertex |
( |
uint64_t |
num_edges | ) |
|
|
inline |
Definition at line 166 of file upper_triangle_edge_generator.hpp.
168 uint64_t x = 0, y = 0;
170 while (y < num_edges) {
176 for (uint64_t i = 0; i < x; i++) {
177 for (uint64_t j = i; j < x; j++) {
181 assert(count * 2 >= num_edges);
uint64_t havoqgt::upper_triangle_edge_generator::max_vertex_id |
( |
| ) |
|
|
inline |
void havoqgt::upper_triangle_edge_generator::sanity_check |
( |
| ) |
|
|
inline |
Definition at line 207 of file upper_triangle_edge_generator.hpp.
210 auto itr_end =
end();
211 while (itr1 != itr_end) {
212 assert(itr1 == itr2);
213 assert(*itr1 == *itr2);
input_iterator_type begin()
Returns the begin of the input iterator.
input_iterator_type end()
Returns the end of the input iterator.
size_t havoqgt::upper_triangle_edge_generator::size |
( |
| ) |
|
|
inline |
uint64_t havoqgt::upper_triangle_edge_generator::m_i |
uint64_t havoqgt::upper_triangle_edge_generator::m_j |
uint64_t havoqgt::upper_triangle_edge_generator::m_lower_edge_id |
const uint64_t havoqgt::upper_triangle_edge_generator::m_max_vertex |
const uint64_t havoqgt::upper_triangle_edge_generator::m_total_edges |
const bool havoqgt::upper_triangle_edge_generator::m_undirected |
uint64_t havoqgt::upper_triangle_edge_generator::m_upper_edge_id |
The documentation for this class was generated from the following file: