Class that loads a portion of a Galois graph from disk directly into memory buffers for access.
More...
|
| BufferedGraph () |
| Class vars should be initialized by in-class initialization; all left is to reset read counters. More...
|
|
| ~BufferedGraph () noexcept |
| On destruction, free allocated buffers (if necessary). More...
|
|
| BufferedGraph (const BufferedGraph &)=delete |
| disabled copy constructor More...
|
|
BufferedGraph & | operator= (const BufferedGraph &)=delete |
| disabled copy constructor operator More...
|
|
| BufferedGraph (BufferedGraph &&)=delete |
| disabled move operator More...
|
|
BufferedGraph & | operator= (BufferedGraph &&)=delete |
| disabled move constructor operator More...
|
|
uint32_t | size () const |
| Gets the number of global nodes in the graph. More...
|
|
uint32_t | sizeEdges () const |
| Gets the number of global edges in the graph. More...
|
|
uint64_t | getNodeOffset () const |
|
void | loadGraph (const std::string &filename) |
| Loads given Galois CSR graph into memory. More...
|
|
void | loadPartialGraph (const std::string &filename, uint64_t nodeStart, uint64_t nodeEnd, uint64_t edgeStart, uint64_t edgeEnd, uint64_t numGlobalNodes, uint64_t numGlobalEdges) |
| Given a node/edge range to load, loads the specified portion of the graph into memory buffers using read. More...
|
|
EdgeIterator | edgeBegin (uint64_t globalNodeID) |
| Get the index to the first edge of the provided node THAT THIS GRAPH HAS LOADED (not necessary the first edge of it globally). More...
|
|
EdgeIterator | edgeEnd (uint64_t globalNodeID) |
| Get the index to the first edge of the node after the provided node. More...
|
|
uint64_t | edgeDestination (uint64_t globalEdgeID) |
| Get the global node id of the destination of the provided edge. More...
|
|
template<typename K = EdgeDataType, typename std::enable_if<!std::is_void< K >::value >::type * = nullptr> |
EdgeDataType | edgeData (uint64_t globalEdgeID) |
| Get the edge data of some edge. More...
|
|
template<typename K = EdgeDataType, typename std::enable_if< std::is_void< K >::value >::type * = nullptr> |
unsigned | edgeData (uint64_t) |
| Version of above function when edge data type is void. More...
|
|
void | resetReadCounters () |
| Reset reading counters. More...
|
|
uint64_t | getBytesRead () |
| Returns the total number of bytes read from this graph so far. More...
|
|
void | resetAndFree () |
| Free all of the in memory buffers in this object and reset graph status. More...
|
|
template<typename EdgeDataType>
class galois::graphs::BufferedGraph< EdgeDataType >
Class that loads a portion of a Galois graph from disk directly into memory buffers for access.
- Template Parameters
-
EdgeDataType | type of the edge data |