Skip to content

Commit dba0a26

Browse files
committed
modify sloanOrdering.pg file and add result file
1 parent 4312e66 commit dba0a26

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

docqueries/ordering/sloanOrdering.pg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
-- Creative Commons Attribution-Share Alike 3.0 License : https://creativecommons.org/licenses/by-sa/3.0/
33
/* -- q1 */
44
SELECT * FROM pgr_sloanOrdering(
5-
'SELECT id, source, target, cost, reverse_cost FROM edges'
5+
'SELECT id, source, target, cost, reverse_cost FROM edges WHERE id < 2'
66
);
77
/* -- q2 */
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
BEGIN;
2+
BEGIN
3+
SET client_min_messages TO NOTICE;
4+
SET
5+
/* -- q1 */
6+
SELECT * FROM pgr_sloanOrdering(
7+
'SELECT id, source, target, cost, reverse_cost FROM edges WHERE id < 2'
8+
);
9+
seq | node
10+
-----+------
11+
1 | 1
12+
(1 row)
13+
14+
/* -- q2 */
15+
ROLLBACK;
16+
ROLLBACK

docqueries/ordering/test.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
%main::tests = (
44
'any' => {
55
'files' => [qw(
6+
sloanOrdering.pg
67
cuthillMckeeOrdering.pg
78
topologicalSort.pg
89
sloanOrdering.pg

0 commit comments

Comments
 (0)