graph_builder.h Source File
|
CPP API
|
graph_builder.h
Go to the documentation of this file.
std::vector< Node< NodePropertyT > > m_nodes
Definition: graph_builder.h:150
void remove_duplicate_edges()
Remove duplicate edges from a sorted edge vector.
Definition: graph_builder.h:124
GraphBuilder(const size_t num_nodes, const size_t num_edges)
Definition: graph_builder.h:51
void sort_edges()
Sort the edge vector of a graph.
Definition: graph_builder.h:109
Graph< NodeProperty, EdgeProperty > build(bool make_unique=false) &&
Build the graph from the added nodes and edges.
Definition: graph_builder.h:92
void add_edge(size_t start_node_idx, size_t end_node_idx, Args &&... args)
Add an edge to the GraphBuilder.
Definition: graph_builder.h:78
void add_node(int id, Args &&... args)
Add a node to the GraphBuilder.
Definition: graph_builder.h:65
std::vector< Edge< EdgePropertyT > > m_edges
Definition: graph_builder.h:151
GraphBuilder()=default
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
void log_warning(spdlog::string_view_t fmt, const Args &... args)
Definition: logging.h:112
Generated by