Skip to content

Commit

Permalink
[docqueries][tsp] adjusting queries/results
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Jul 28, 2021
1 parent fa4f568 commit 6d39558
Show file tree
Hide file tree
Showing 22 changed files with 239 additions and 10,792 deletions.
8 changes: 5 additions & 3 deletions docqueries/bdAstar/doc-pgr_bdAstarCostMatrix.result
Expand Up @@ -2,6 +2,8 @@ BEGIN;
BEGIN
SET client_min_messages TO NOTICE;
SET
SET client_min_messages TO WARNING;
SET
-- bdAstar q1
SELECT * FROM pgr_bdAstarCostMatrix(
'SELECT id, source, target, cost, reverse_cost, x1, y1, x2, y2 FROM edge_table',
Expand Down Expand Up @@ -58,11 +60,11 @@ SELECT * FROM pgr_TSP(
);
seq | node | cost | agg_cost
-----+------+------+----------
1 | 1 | 1 | 0
1 | 1 | 0 | 0
2 | 2 | 1 | 1
3 | 3 | 1 | 2
4 | 4 | 3 | 3
5 | 1 | 0 | 6
4 | 4 | 1 | 3
5 | 1 | 3 | 6
(5 rows)

-- bdAstar q4
Expand Down
1 change: 1 addition & 0 deletions docqueries/bdAstar/doc-pgr_bdAstarCostMatrix.test.sql
@@ -1,3 +1,4 @@
SET client_min_messages TO WARNING;
------------------------
-- bdAstarCostMatrix
------------------------
Expand Down
8 changes: 5 additions & 3 deletions docqueries/bdDijkstra/doc-pgr_bdDijkstraCostMatrix.result
Expand Up @@ -2,6 +2,8 @@ BEGIN;
BEGIN
SET client_min_messages TO NOTICE;
SET
SET client_min_messages TO WARNING;
SET
-- bdDijkstra q1
SELECT * FROM pgr_bdDijkstraCostMatrix(
'SELECT id, source, target, cost, reverse_cost FROM edge_table',
Expand Down Expand Up @@ -58,11 +60,11 @@ SELECT * FROM pgr_TSP(
);
seq | node | cost | agg_cost
-----+------+------+----------
1 | 1 | 1 | 0
1 | 1 | 0 | 0
2 | 2 | 1 | 1
3 | 3 | 1 | 2
4 | 4 | 3 | 3
5 | 1 | 0 | 6
4 | 4 | 1 | 3
5 | 1 | 3 | 6
(5 rows)

-- bdDijkstra q4
Expand Down
@@ -1,3 +1,4 @@
SET client_min_messages TO WARNING;
------------------------
-- bddijkstraCostMatrix
------------------------
Expand Down
8 changes: 5 additions & 3 deletions docqueries/dijkstra/doc-pgr_dijkstraCostMatrix.result
Expand Up @@ -2,6 +2,8 @@ BEGIN;
BEGIN
SET client_min_messages TO NOTICE;
SET
SET client_min_messages TO WARNING;
SET
-- dijkstra q1
SELECT * FROM pgr_dijkstraCostMatrix(
'SELECT id, source, target, cost, reverse_cost FROM edge_table',
Expand Down Expand Up @@ -58,11 +60,11 @@ SELECT * FROM pgr_TSP(
);
seq | node | cost | agg_cost
-----+------+------+----------
1 | 1 | 1 | 0
1 | 1 | 0 | 0
2 | 2 | 1 | 1
3 | 3 | 1 | 2
4 | 4 | 3 | 3
5 | 1 | 0 | 6
4 | 4 | 1 | 3
5 | 1 | 3 | 6
(5 rows)

-- dijkstra q4
Expand Down
2 changes: 1 addition & 1 deletion docqueries/dijkstra/doc-pgr_dijkstraCostMatrix.test.sql
@@ -1,4 +1,4 @@

SET client_min_messages TO WARNING;
------------------------
-- dijkstra
------------------------
Expand Down
2 changes: 2 additions & 0 deletions docqueries/tsp/CMakeLists.txt
Expand Up @@ -4,6 +4,8 @@ SET(LOCAL_FILES
doc-pgr_TSP
)

configure_file("wi29.sql" "${PGR_DOCUMENTATION_SOURCE_DIR}/wi29.queries")

foreach (f ${LOCAL_FILES})
configure_file("${f}.result" "${PGR_DOCUMENTATION_SOURCE_DIR}/${f}.queries")
list(APPEND LOCAL_DOC_FILES "${PGR_DOCUMENTATION_SOURCE_DIR}/${f}.queries")
Expand Down

0 comments on commit 6d39558

Please sign in to comment.