Simple CSR graph data structure that can take a custom C++ allocator and be stored in persistent memory.
More...
#include </home/runner/work/metall/metall/example/graph_data_structure/csr.hpp>
|
| csr (const std::size_t num_vertices, const std::size_t num_edges, allocator_t allocator=allocator_t()) |
|
| ~csr () |
|
index_t * | indices () |
| Returns a raw pointer to the indices array. More...
|
|
vid_t * | edges () |
| Returns a raw pointer to the edges array. More...
|
|
template<typename index_t = uint64_t, typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
class csr< index_t, vid_t, allocator_t >
Simple CSR graph data structure that can take a custom C++ allocator and be stored in persistent memory.
- Template Parameters
-
index_t | Index type |
vid_t | Vertex ID type |
allocator_t | Allocator type |
- Examples
- csr_graph.cpp.
◆ csr()
template<typename index_t = uint64_t, typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
csr< index_t, vid_t, allocator_t >::csr |
( |
const std::size_t |
num_vertices, |
|
|
const std::size_t |
num_edges, |
|
|
allocator_t |
allocator = allocator_t() |
|
) |
| |
|
inline |
◆ ~csr()
template<typename index_t = uint64_t, typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
csr< index_t, vid_t, allocator_t >::~csr |
( |
| ) |
|
|
inline |
◆ indices()
template<typename index_t = uint64_t, typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
index_t* csr< index_t, vid_t, allocator_t >::indices |
( |
| ) |
|
|
inline |
Returns a raw pointer to the indices array.
◆ edges()
template<typename index_t = uint64_t, typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
vid_t* csr< index_t, vid_t, allocator_t >::edges |
( |
| ) |
|
|
inline |
Returns a raw pointer to the edges array.
The documentation for this class was generated from the following file:
- /home/runner/work/metall/metall/example/graph_data_structure/csr.hpp