libgrape-lite
A C++ library for parallel graph processing
Classes | Public Member Functions | Private Types | Private Attributes | List of all members
grape::AdjList< VID_T, EDATA_T > Class Template Reference

A iteratable adjencent list of a vertex. The list contains all neighbors in format of Nbr, which contains the other Node and the data on the Edge. More...

#include <adj_list.h>

Classes

class  const_iterator
 
class  iterator
 

Public Member Functions

DEV_HOST AdjList (NbrT *b, NbrT *e)
 
DEV_HOST_INLINE bool Empty () const
 
DEV_HOST_INLINE bool NotEmpty () const
 
DEV_HOST_INLINE size_t Size () const
 
DEV_HOST iterator begin ()
 
DEV_HOST iterator end ()
 
DEV_HOST const_iterator begin () const
 
DEV_HOST const_iterator end () const
 
DEV_HOST NbrTbegin_pointer ()
 
DEV_HOST const NbrTbegin_pointer () const
 
DEV_HOST NbrTend_pointer ()
 
DEV_HOST const NbrTend_pointer () const
 
DEV_HOST bool empty () const
 

Private Types

using NbrT = Nbr< VID_T, EDATA_T >
 

Private Attributes

NbrTbegin_
 
NbrTend_
 

Detailed Description

template<typename VID_T, typename EDATA_T>
class grape::AdjList< VID_T, EDATA_T >

A iteratable adjencent list of a vertex. The list contains all neighbors in format of Nbr, which contains the other Node and the data on the Edge.

Template Parameters
VID_T
EDATA_T