Skip to content
Draft
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
2 changes: 1 addition & 1 deletion pgtap/mincut/stoerWagner/compare_components.pg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

BEGIN;

UPDATE edges SET cost = sign(cost), reverse_cost = sign(reverse_cost);
UPDATE edges SET cost = abs(sign(cost)), reverse_cost = abs(sign(reverse_cost));
SELECT plan(6);

PREPARE stoerWagner1 AS
Expand Down
4 changes: 2 additions & 2 deletions pgtap/mincut/stoerWagner/edge_cases.pg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

BEGIN;

UPDATE edges SET cost = sign(cost), reverse_cost = sign(reverse_cost);
UPDATE edges SET cost = abs(sign(cost)), reverse_cost = abs(sign(reverse_cost));
SELECT plan(2);

SELECT lives_ok(
Expand All @@ -16,7 +16,7 @@ SELECT lives_ok(

SELECT throws_ok(
'SELECT * FROM pgr_stoerWagner(
''SELECT id, source, target, cost, reverse_cost FROM edges id < 17'',
''SELECT id, source, target, cost, reverse_cost FROM edges WHERE id < 17'',
3
)','42883','function pgr_stoerwagner(unknown, integer) does not exist',
'6: Documentation says it does not work with 1 flags');
Expand Down
2 changes: 1 addition & 1 deletion pgtap/mincut/stoerWagner/inner_query.pg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

BEGIN;

UPDATE edges SET cost = sign(cost), reverse_cost = sign(reverse_cost);
UPDATE edges SET cost = abs(sign(cost)), reverse_cost = abs(sign(reverse_cost));
SELECT plan(54);

SELECT style_dijkstra('pgr_stoerwagner(', ')');
Expand Down
2 changes: 1 addition & 1 deletion pgtap/mincut/stoerWagner/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

BEGIN;

UPDATE edges SET cost = sign(cost), reverse_cost = sign(reverse_cost);
UPDATE edges SET cost = abs(sign(cost)), reverse_cost = abs(sign(reverse_cost));
SELECT plan(5);

SELECT has_function('pgr_stoerwagner');
Expand Down