![]() |
PGROUTING
2.6
|
#include "drivers/contraction/contractGraph_driver.h"
#include <string.h>
#include <sstream>
#include <deque>
#include <vector>
#include "contraction/pgr_contractionGraph.hpp"
#include "contraction/pgr_contract.hpp"
#include "cpp_common/pgr_alloc.hpp"
Go to the source code of this file.
Functions | |
void | do_pgr_contractGraph (pgr_edge_t *data_edges, size_t total_edges, int64_t *forbidden_vertices, size_t size_forbidden_vertices, int64_t *contraction_order, size_t size_contraction_order, int64_t max_cycles, bool directed, contracted_rt **return_tuples, size_t *return_count, char **log_msg, char **notice_msg, char **err_msg) |
template<typename G > | |
static void | get_postgres_result (G &graph, const Identifiers< int64_t > remaining_vertices, const std::vector< pgrouting::CH_edge > shortcut_edges, contracted_rt **return_tuples) |
static bool | is_valid_contraction (int64_t number) |
template<typename G > | |
static void | process_contraction (G &graph, const std::vector< pgr_edge_t > &edges, const std::vector< int64_t > forbidden_vertices, const std::vector< int64_t > contraction_order, int64_t max_cycles, Identifiers< int64_t > &remaining_vertices, std::vector< pgrouting::CH_edge > &shortcut_edges, std::ostringstream &log, std::ostringstream &err) |
void do_pgr_contractGraph | ( | pgr_edge_t * | data_edges, |
size_t | total_edges, | ||
int64_t * | forbidden_vertices, | ||
size_t | size_forbidden_vertices, | ||
int64_t * | contraction_order, | ||
size_t | size_contraction_order, | ||
int64_t | max_cycles, | ||
bool | directed, | ||
contracted_rt ** | return_tuples, | ||
size_t * | return_count, | ||
char ** | log_msg, | ||
char ** | notice_msg, | ||
char ** | err_msg | ||
) |
Definition at line 172 of file contractGraph_driver.cpp.
References edge::cost, DIRECTED, get_postgres_result(), edge::id, is_valid_contraction(), pgassert, pgr_free(), pgr_msg(), process_contraction(), edge::reverse_cost, Identifiers< T >::size(), edge::source, edge::target, UNDIRECTED, and AssertFailedException::what().
Referenced by process().
|
static |
Definition at line 117 of file contractGraph_driver.cpp.
References edge::cost, edge::id, pgr_alloc(), Identifiers< T >::size(), edge::source, and edge::target.
Referenced by do_pgr_contractGraph().
|
static |
Definition at line 44 of file contractGraph_driver.cpp.
Referenced by do_pgr_contractGraph().
|
static |
Definition at line 58 of file contractGraph_driver.cpp.
Referenced by do_pgr_contractGraph().