Skip to content

Commit

Permalink
commiting my changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Jun 27, 2015
1 parent 827f31d commit aab8fce
Show file tree
Hide file tree
Showing 7 changed files with 685 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -5,3 +5,5 @@ build
issues
tools/vagrant/packaging.sh
*.mo
.directory
notUsed
13 changes: 13 additions & 0 deletions src/dijkstra/test/dijkstra-v2.rest
@@ -0,0 +1,13 @@
0|2|-1|0
0|2|4|1
1|5|8|1
2|6|9|1
3|9|16|1
4|4|3|1
5|3|-1|0
0|2|4|1
1|5|8|1
2|6|5|1
3|3|-1|0
0|2|2|1
1|3|-1|0
30 changes: 30 additions & 0 deletions src/dijkstra/test/dijkstra-v2.test
@@ -0,0 +1,30 @@
------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------
-- PGR_dijkstra V.2.0
------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------

SELECT seq, id1 AS node, id2 AS edge, cost
FROM pgr_dijkstra(
'SELECT id, source, target, cost, reverse_cost FROM edge_table',
2,3, true, false
);

SELECT seq, id1 AS node, id2 AS edge, cost
FROM pgr_dijkstra(
'SELECT id, source, target, cost, reverse_cost FROM edge_table',
2,3, true, true
);

SELECT seq, id1 AS node, id2 AS edge, cost
FROM pgr_dijkstra(
'SELECT id, source, target, cost FROM edge_table',
2, 3, false, false
);

SELECT seq, id1 AS node, id2 AS edge, cost
FROM pgr_dijkstra(
'SELECT id, source, target, cost, reverse_cost FROM edge_table',
2, 3, false, true
);

178 changes: 178 additions & 0 deletions src/dijkstra/test/dijkstra-v3.rest
@@ -0,0 +1,178 @@
0|2|4|1|0
1|5|8|1|1
2|6|9|1|2
3|9|16|1|3
4|4|3|1|4
5|3|-1|0|5
0|2|4|1|0
1|5|-1|0|1
0|11|13|1|0
1|12|15|1|1
2|9|16|1|2
3|4|3|1|3
4|3|-1|0|4
0|11|13|1|0
1|12|15|1|1
2|9|9|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