Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions doc/queries/doc-pgr_strongComponentsV.queries
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
BEGIN;
BEGIN
SET client_min_messages TO NOTICE;
SET
-- q1
SELECT * FROM pgr_strongComponentsV(
'SELECT id, source, target, cost, reverse_cost FROM edge_table'
);
seq | component | n_seq | node
-----+-----------+-------+------
1 | 1 | 1 | 1
2 | 1 | 2 | 2
3 | 1 | 3 | 3
4 | 1 | 4 | 4
5 | 1 | 5 | 5
6 | 1 | 6 | 6
7 | 1 | 7 | 7
8 | 1 | 8 | 8
9 | 1 | 9 | 9
10 | 1 | 10 | 10
11 | 1 | 11 | 11
12 | 1 | 12 | 12
13 | 1 | 13 | 13
14 | 14 | 1 | 14
15 | 14 | 2 | 15
16 | 16 | 1 | 16
17 | 16 | 2 | 17
(17 rows)

-- q2
SELECT * FROM pgr_strongComponentsV(
'SELECT id, source, target, cost, reverse_cost FROM edge_table'
);
seq | component | n_seq | node
-----+-----------+-------+------
1 | 1 | 1 | 1
2 | 1 | 2 | 2
3 | 1 | 3 | 3
4 | 1 | 4 | 4
5 | 1 | 5 | 5
6 | 1 | 6 | 6
7 | 1 | 7 | 7
8 | 1 | 8 | 8
9 | 1 | 9 | 9
10 | 1 | 10 | 10
11 | 1 | 11 | 11
12 | 1 | 12 | 12
13 | 1 | 13 | 13
14 | 14 | 1 | 14
15 | 14 | 2 | 15
16 | 16 | 1 | 16
17 | 16 | 2 | 17
(17 rows)

ROLLBACK;
ROLLBACK
56 changes: 56 additions & 0 deletions src/components/test/doc-pgr_strongComponentsV.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
BEGIN;
BEGIN
SET client_min_messages TO NOTICE;
SET
-- q1
SELECT * FROM pgr_strongComponentsV(
'SELECT id, source, target, cost, reverse_cost FROM edge_table'
);
seq | component | n_seq | node
-----+-----------+-------+------
1 | 1 | 1 | 1
2 | 1 | 2 | 2
3 | 1 | 3 | 3
4 | 1 | 4 | 4
5 | 1 | 5 | 5
6 | 1 | 6 | 6
7 | 1 | 7 | 7
8 | 1 | 8 | 8
9 | 1 | 9 | 9
10 | 1 | 10 | 10
11 | 1 | 11 | 11
12 | 1 | 12 | 12
13 | 1 | 13 | 13
14 | 14 | 1 | 14
15 | 14 | 2 | 15
16 | 16 | 1 | 16
17 | 16 | 2 | 17
(17 rows)

-- q2
SELECT * FROM pgr_strongComponentsV(
'SELECT id, source, target, cost, reverse_cost FROM edge_table'
);
seq | component | n_seq | node
-----+-----------+-------+------
1 | 1 | 1 | 1
2 | 1 | 2 | 2
3 | 1 | 3 | 3
4 | 1 | 4 | 4
5 | 1 | 5 | 5
6 | 1 | 6 | 6
7 | 1 | 7 | 7
8 | 1 | 8 | 8
9 | 1 | 9 | 9
10 | 1 | 10 | 10
11 | 1 | 11 | 11
12 | 1 | 12 | 12
13 | 1 | 13 | 13
14 | 14 | 1 | 14
15 | 14 | 2 | 15
16 | 16 | 1 | 16
17 | 16 | 2 | 17
(17 rows)

ROLLBACK;
ROLLBACK
10 changes: 10 additions & 0 deletions src/components/test/doc-pgr_strongComponentsV.test.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

\echo -- q1
SELECT * FROM pgr_strongComponentsV(
'SELECT id, source, target, cost, reverse_cost FROM edge_table'
);

\echo -- q2
SELECT * FROM pgr_strongComponentsV(
'SELECT id, source, target, cost, reverse_cost FROM edge_table'
);
2 changes: 2 additions & 0 deletions src/components/test/test.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
'data' => [ ],
'tests' => [qw(
doc-pgr_connectedComponentsV
doc-pgr_strongComponentsV
)],
'documentation' => [qw(
doc-pgr_connectedComponentsV
doc-pgr_strongComponentsV
)]
},

Expand Down