VeloGraphX
High-performance dynamic graph analytics in C++20
Loading...
Searching...
No Matches
velographx::WeightedDynamicGraph Class Reference

#include <weighted_dynamic_graph.hpp>

Public Member Functions

 WeightedDynamicGraph (std::size_t vertices=0, bool directed=false)
 
std::size_t vertex_count () const noexcept
 
std::uint64_t version () const noexcept
 
bool directed () const noexcept
 
void ensure_vertex (VertexId v)
 
void apply (const WeightedUpdateBatch &batch)
 
std::optional< EdgeWeightweight (VertexId u, VertexId v) const
 
std::size_t degree (VertexId u) const noexcept
 
template<class Fn >
void for_each_neighbor (VertexId u, Fn &&fn) const
 
std::vector< std::pair< VertexId, EdgeWeight > > neighbors (VertexId u) const
 

Detailed Description

Definition at line 46 of file weighted_dynamic_graph.hpp.

Constructor & Destructor Documentation

◆ WeightedDynamicGraph()

velographx::WeightedDynamicGraph::WeightedDynamicGraph ( std::size_t  vertices = 0,
bool  directed = false 
)
inlineexplicit

Definition at line 48 of file weighted_dynamic_graph.hpp.

Member Function Documentation

◆ apply()

◆ degree()

std::size_t velographx::WeightedDynamicGraph::degree ( VertexId  u) const
inlinenoexcept

Definition at line 90 of file weighted_dynamic_graph.hpp.

◆ directed()

bool velographx::WeightedDynamicGraph::directed ( ) const
inlinenoexcept

Definition at line 53 of file weighted_dynamic_graph.hpp.

◆ ensure_vertex()

void velographx::WeightedDynamicGraph::ensure_vertex ( VertexId  v)
inline

Definition at line 55 of file weighted_dynamic_graph.hpp.

Referenced by apply().

◆ for_each_neighbor()

template<class Fn >
void velographx::WeightedDynamicGraph::for_each_neighbor ( VertexId  u,
Fn &&  fn 
) const
inline

Definition at line 95 of file weighted_dynamic_graph.hpp.

◆ neighbors()

std::vector< std::pair< VertexId, EdgeWeight > > velographx::WeightedDynamicGraph::neighbors ( VertexId  u) const
inline

Definition at line 100 of file weighted_dynamic_graph.hpp.

◆ version()

std::uint64_t velographx::WeightedDynamicGraph::version ( ) const
inlinenoexcept

Definition at line 52 of file weighted_dynamic_graph.hpp.

◆ vertex_count()

std::size_t velographx::WeightedDynamicGraph::vertex_count ( ) const
inlinenoexcept

Definition at line 51 of file weighted_dynamic_graph.hpp.

◆ weight()

std::optional< EdgeWeight > velographx::WeightedDynamicGraph::weight ( VertexId  u,
VertexId  v 
) const
inline

Definition at line 83 of file weighted_dynamic_graph.hpp.


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