Skip to content

Commit

Permalink
[bellman_ford] fixing docqueries results (#2275)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Apr 28, 2022
1 parent edae56d commit 2d3e916
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
14 changes: 7 additions & 7 deletions docqueries/bellman_ford/doc-pgr_bellmanFord.result
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SET client_min_messages TO NOTICE;
SET
/* -- q1 */
SELECT * FROM pgr_bellmanFord(
'SELECT id, source, target, cost, reverse_cost
'SELECT id, source, target, cost, reverse_cost
FROM edge_table',
2, 3
);
Expand All @@ -20,7 +20,7 @@ SELECT * FROM pgr_bellmanFord(

/* -- q2 */
SELECT * FROM pgr_bellmanFord(
'SELECT id, source, target, cost, reverse_cost
'SELECT id, source, target, cost, reverse_cost
FROM edge_table',
2, 3,
FALSE
Expand All @@ -33,7 +33,7 @@ SELECT * FROM pgr_bellmanFord(

/* -- q3 */
SELECT * FROM pgr_bellmanFord(
'SELECT id, source, target, cost, reverse_cost
'SELECT id, source, target, cost, reverse_cost
FROM edge_table',
2, ARRAY[3,5],
FALSE
Expand All @@ -48,7 +48,7 @@ SELECT * FROM pgr_bellmanFord(

/* -- q4 */
SELECT * FROM pgr_bellmanFord(
'SELECT id, source, target, cost, reverse_cost
'SELECT id, source, target, cost, reverse_cost
FROM edge_table',
ARRAY[2,11], 5
);
Expand All @@ -65,7 +65,7 @@ SELECT * FROM pgr_bellmanFord(

/* -- q5 */
SELECT * FROM pgr_bellmanFord(
'SELECT id, source, target, cost, reverse_cost
'SELECT id, source, target, cost, reverse_cost
FROM edge_table',
ARRAY[2,11], ARRAY[3,5]
);
Expand Down Expand Up @@ -104,11 +104,11 @@ SELECT * FROM combinations_table;

/* -- q6 */
SELECT * FROM pgr_bellmanFord(
'SELECT id, source, target, cost, reverse_cost
'SELECT id, source, target, cost, reverse_cost
FROM edge_table',
'SELECT * FROM combinations_table'
);
seq | path_seq | start_vid | end_vid | node | edge | cost | agg_cost
seq | path_seq | start_vid | end_vid | node | edge | cost | agg_cost
-----+----------+-----------+---------+------+------+------+----------
1 | 1 | 1 | 2 | 1 | 1 | 1 | 0
2 | 2 | 1 | 2 | 2 | -1 | 0 | 1
Expand Down
26 changes: 12 additions & 14 deletions docqueries/bellman_ford/doc-pgr_edwardMoore.result
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ SELECT * FROM pgr_edwardMoore(

/* -- q51 */
SELECT * FROM combinations_table;
source | target
source | target
--------+--------
1 | 2
1 | 4
1 | 3
2 | 1
2 | 4
2 | 17
Expand All @@ -83,21 +83,19 @@ SELECT * FROM pgr_edwardMoore(
'SELECT * FROM combinations_table',
FALSE
);
seq | path_seq | start_vid | end_vid | node | edge | cost | agg_cost
seq | path_seq | start_vid | end_vid | node | edge | cost | agg_cost
-----+----------+-----------+---------+------+------+------+----------
1 | 1 | 1 | 2 | 1 | 1 | 1 | 0
2 | 2 | 1 | 2 | 2 | -1 | 0 | 1
3 | 1 | 1 | 4 | 1 | 1 | 1 | 0
4 | 2 | 1 | 4 | 2 | 2 | 1 | 1
5 | 3 | 1 | 4 | 3 | 3 | 1 | 2
6 | 4 | 1 | 4 | 4 | -1 | 0 | 3
7 | 1 | 2 | 1 | 2 | 1 | 1 | 0
8 | 2 | 2 | 1 | 1 | -1 | 0 | 1
9 | 1 | 2 | 4 | 2 | 2 | 1 | 0
10 | 2 | 2 | 4 | 3 | 3 | 1 | 1
11 | 3 | 2 | 4 | 4 | -1 | 0 | 2
(11 rows)

3 | 1 | 1 | 3 | 1 | 1 | 1 | 0
4 | 2 | 1 | 3 | 2 | 2 | 1 | 1
5 | 3 | 1 | 3 | 3 | -1 | 0 | 2
6 | 1 | 2 | 1 | 2 | 1 | 1 | 0
7 | 2 | 2 | 1 | 1 | -1 | 0 | 1
8 | 1 | 2 | 4 | 2 | 2 | 1 | 0
9 | 2 | 2 | 4 | 3 | 3 | 1 | 1
10 | 3 | 2 | 4 | 4 | -1 | 0 | 2
(10 rows)

/* -- q7 */

Expand Down

0 comments on commit 2d3e916

Please sign in to comment.