PGROUTING  3.2
contractGraph_driver.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: contractGraph_driver.h
3 
4 Copyright (c) 2015 pgRouting developers
6 
7 Function's developer:
8 Copyright (c) 2016 Rohith Reddy
9 Mail:
10 
11 ------
12 
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
17 
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22 
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 
27  ********************************************************************PGR-GNU*/
28 
29 #ifndef INCLUDE_DRIVERS_CONTRACTION_CONTRACTGRAPH_DRIVER_H_
30 #define INCLUDE_DRIVERS_CONTRACTION_CONTRACTGRAPH_DRIVER_H_
31 #pragma once
32 
33 /* for size-t */
34 #ifdef __cplusplus
35 # include <cstddef>
36 #else
37 # include <stddef.h>
38 #endif
39 
40 #include "c_types/contracted_rt.h"
41 #include "c_types/pgr_edge_t.h"
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47  /*********************************************************
48  edges_sql TEXT,
49  contraction_order BIGINT[],
50  forbidden_vertices BIGINT[] DEFAULT ARRAY[]::BIGINT[],
51  max_cycles integer DEFAULT 1,
52  directed BOOLEAN DEFAULT true
53  ********************************************************/
54  void
56  pgr_edge_t *data_edges,
57  size_t total_tuples,
58  int64_t *forbidden_vertices,
59  size_t size_forbidden_vertices,
60  int64_t *contraction_order,
61  size_t size_contraction_order,
62  int64_t max_cycles,
63  bool directed,
64  contracted_rt **return_tuples,
65  size_t *return_count,
66  char **log_msg,
67  char **notice_msg,
68  char **err_msg);
69 
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif // INCLUDE_DRIVERS_CONTRACTION_CONTRACTGRAPH_DRIVER_H_
contracted_rt.h
pgr_edge_t
Definition: pgr_edge_t.h:37
do_pgr_contractGraph
void do_pgr_contractGraph(pgr_edge_t *data_edges, size_t total_tuples, 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: contractGraph_driver.cpp:177
contracted_rt
Definition: contracted_rt.h:40
pgr_edge_t.h