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

A neighbor of a vertex in the graph. More...

#include <adj_list.h>

Public Member Functions

DEV_HOST Nbr (const VID_T &nbr_)
 
DEV_HOST Nbr (const Vertex< VID_T > &nbr_)
 
DEV_HOST Nbr (const Nbr &rhs)
 
DEV_HOST Nbr (Nbr &&rhs) noexcept
 
DEV_HOST Nbr (const VID_T &nbr_, const EDATA_T &data_)
 
DEV_HOST Nbr (const Vertex< VID_T > &nbr_, const EDATA_T &data_)
 
DEV_HOST Nbr (const VID_T &nbr_, EDATA_T &&data_)
 
DEV_HOST_INLINE Nbroperator= (const Nbr &rhs)
 
DEV_HOST_INLINE Nbroperator= (Nbr &&rhs)
 
DEV_HOST_INLINE Vertex< VID_T > get_neighbor () const
 
DEV_HOST_INLINE const EDATA_T & get_data () const
 
DEV_HOST_INLINE VID_T get_neighbor_lid () const
 

Public Attributes

Vertex< VID_T > neighbor
 
EDATA_T data
 

Detailed Description

template<typename VID_T, typename EDATA_T>
struct grape::Nbr< VID_T, EDATA_T >

A neighbor of a vertex in the graph.

Assume an edge, vertex_a –(edge_data)--> vertex_b. a <Nbr> of vertex_a stores <Vertex> b and the edge_data.

Template Parameters
VID_T
EDATA_T