Metall  v0.27
A persistent memory allocator for data-centric analytics
adjacency_list< vid_t, allocator_t > Class Template Reference

Simple adjacency-list 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/adjacency_list.hpp>

Public Member Functions

 adjacency_list (allocator_t allocator=allocator_t())
 
void add_edge (vid_t source, vid_t target)
 
auto edges_begin (const vid_t source)
 
auto edges_end (const vid_t source)
 

Detailed Description

template<typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
class adjacency_list< vid_t, allocator_t >

Simple adjacency-list graph data structure that can take a custom C++ allocator and be stored in persistent memory.

Template Parameters
vid_tVertex ID type
allocator_tAllocator type
Examples
adjacency_list_graph.cpp.

Constructor & Destructor Documentation

◆ adjacency_list()

template<typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
adjacency_list< vid_t, allocator_t >::adjacency_list ( allocator_t  allocator = allocator_t())
inlineexplicit

Member Function Documentation

◆ add_edge()

template<typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
void adjacency_list< vid_t, allocator_t >::add_edge ( vid_t  source,
vid_t  target 
)
inline

◆ edges_begin()

template<typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
auto adjacency_list< vid_t, allocator_t >::edges_begin ( const vid_t  source)
inline

◆ edges_end()

template<typename vid_t = uint64_t, typename allocator_t = std::allocator<char>>
auto adjacency_list< vid_t, allocator_t >::edges_end ( const vid_t  source)
inline

The documentation for this class was generated from the following file: