Skip to content

Commit 97c189c

Browse files
authored
Merge pull request #434 from cvvergara/week2-dijkstra
Week2 dijkstra demo
2 parents dbe7d56 + db3c547 commit 97c189c

119 files changed

Lines changed: 1693 additions & 4617 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ubuntu.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,28 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
psql: [13,14,15,16,17]
32+
psql: [13,14,15,16,17,18]
3333
postgis: [3]
34-
os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04]
34+
os: [ubuntu-latest, ubuntu-22.04]
3535

3636
steps:
3737
- uses: actions/checkout@v4
3838

39-
- name: get postgres version
39+
- name: 'Raise Priority for apt.postgresql.org'
4040
run: |
41-
sudo service postgresql start
42-
pgver=$(psql --version | grep -Po '(?<=psql \(PostgreSQL\) )[^;]+(?=\.\d+ \()')
43-
echo "PGVER=${pgver}" >> $GITHUB_ENV
44-
PGP=5433
45-
if [ "${{ matrix.psql }}" == "${pgver}" ]; then PGP=5432; fi
46-
echo "PGPORT=${PGP}" >> $GITHUB_ENV
47-
41+
cat << EOF >> ./pgdg.pref
42+
Package: *
43+
Pin: release o=apt.postgresql.org
44+
Pin-Priority: 600
45+
EOF
46+
sudo mv ./pgdg.pref /etc/apt/preferences.d/
47+
sudo apt update
48+
4849
- name: Add PostgreSQL APT repository
4950
run: |
50-
sudo apt-get install curl ca-certificates gnupg
51-
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
52-
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ \
53-
$(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
51+
sudo apt-get purge postgresql-*
52+
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg-testing main ${{ matrix.psql }}" > /etc/apt/sources.list.d/pgdg.list'
53+
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
5454
5555
- name: Install dependencies
5656
run: |
@@ -81,6 +81,7 @@ jobs:
8181
run: |
8282
sudo service postgresql start
8383
export PG_RUNNER_USER=`whoami`
84+
export PGPORT=5432
8485
sudo -u postgres psql -p ${PGPORT} -c "DROP DATABASE IF EXISTS ___pgr___test___;"
8586
sudo -u postgres psql -p ${PGPORT} -c "DROP DATABASE IF EXISTS \"${PG_RUNNER_USER}\";"
8687
sudo -u postgres psql -p ${PGPORT} -c "DROP ROLE IF EXISTS \"${PG_RUNNER_USER}\";"

NEWS.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,28 @@ milestone for 4.0.0
5858
* pgr_trsp(text,integer,integer,boolean,boolean,text)
5959
* pgr_trsp(text,integer,double precision,integer,double precision,boolean,boolean,text)
6060

61+
* [#2888](https://github.com/pgRouting/pgrouting/issues/2888):
62+
pgr_findCloseEdges
63+
64+
* pgr_findcloseedges(text,geometry,double precision,integer,boolean,boolean)
65+
* pgr_findcloseedges(text,geometry[],double precision,integer,boolean,boolean)
66+
67+
* [#2890](https://github.com/pgRouting/pgrouting/issues/2890):
68+
pgr_withPointsDD
69+
70+
* pgr_withpointsdd(text,text,anyarray,double precision,boolean,character,boolean,boolean)
71+
* pgr_withpointsdd(text,text,bigint,double precision,boolean,character,boolean)
72+
73+
* [#2895](https://github.com/pgRouting/pgrouting/issues/2895):
74+
pgr_withPointsKSP
75+
76+
* pgr_withpointsksp(text,text,bigint,bigint,integer,boolean,boolean,character,boolean)
77+
78+
* [#2899](https://github.com/pgRouting/pgrouting/issues/2899):
79+
pgr_maxCardinalityMatch
80+
81+
* pgr_maxcardinalitymatch(text,boolean)
82+
6183
**Removal of SQL deprecated functions**
6284

6385
* [#2681](https://github.com/pgRouting/pgrouting/issues/2681):
@@ -74,23 +96,35 @@ milestone for 4.0.0
7496
pgr_analyzeOneWay
7597
* [#2827](https://github.com/pgRouting/pgrouting/issues/2827):
7698
pgr_createVerticesTable
99+
* [#2886](https://github.com/pgRouting/pgrouting/issues/2886):
100+
pgr_nodeNetwork
77101

78102
**Removal of SQL deprecated internal functions**
79103

104+
Related issues: [#2897](https://github.com/pgRouting/pgrouting/issues/2897)
105+
80106
* _pgr_dijkstranear(text,anyarray,anyarray,bigint,boolean)
81107
* _pgr_dijkstranear(text,anyarray,bigint,bigint,boolean)
82108
* _pgr_dijkstranear(text,bigint,anyarray,bigint,boolean)
83109
* _pgr_dijkstra(text,anyarray,anyarray,boolean,boolean,boolean,bigint)
84110
* _pgr_dijkstra(text,text,boolean,boolean,boolean)
85111
* _pgr_drivingdistance(text,anyarray,double precision,boolean,boolean)
112+
* _pgr_ksp(text,anyarray,anyarray,integer,boolean,boolean,boolean)
113+
* _pgr_ksp(text,bigint,bigint,integer,boolean,boolean)
114+
* _pgr_ksp(text,text,integer,boolean,boolean)
86115
* _pgr_kruskal(text,anyarray,text,bigint,double precision)
116+
* _pgr_maxcardinalitymatch(text,boolean)
87117
* _pgr_prim(text,anyarray,text,bigint,double precision)
88118
* _pgr_trsp(text,integer,double precision,integer,double precision,boolean,boolean,text)
89119
* _pgr_trsp(text,text,anyarray,anyarray,boolean)
90120
* _pgr_trsp(text,text,anyarray,bigint,boolean)
91121
* _pgr_trsp(text,text,bigint,anyarray,boolean)
92122
* _pgr_trsp(text,text,bigint,bigint,boolean)
93123
* _pgr_trspviavertices(text,integer[],boolean,boolean,text)
124+
* _pgr_withpointsdd(text,text,anyarray,double precision,boolean,character,boolean,boolean)
125+
* _pgr_withpointsksp(text,text,anyarray,anyarray,integer,character,boolean,boolean,boolean,boolean)
126+
* _pgr_withpointsksp(text,text,bigint,bigint,integer,boolean,boolean,character,boolean)
127+
* _pgr_withpointsksp(text,text,text,integer,character,boolean,boolean,boolean)
94128
* _pgr_withpointsvia(text,bigint[],double precision[],boolean)
95129
* _trsp(text,text,anyarray,anyarray,boolean)
96130
* _v4trsp(text,text,anyarray,anyarray,boolean)
@@ -131,5 +165,6 @@ milestone for 4.0.0
131165
* _trsp(text,text,anyarray,anyarray,boolean)
132166
* _v4trsp(text,text,anyarray,anyarray,boolean)
133167
* _v4trsp(text,text,text,boolean)
168+
* _pgr_withpointsdd(text,text,anyarray,double precision,boolean,character,boolean,boolean)
134169

135170
</details>

configuration.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,4 @@ categories | N | N | Y
5252
#----------------------
5353
# SQL only directories
5454
#----------------------
55-
topology | N | Y | Y
5655
utilities | N | Y | Y

doc/_static/page_history.js

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -207,29 +207,10 @@ var filesArr = [
207207
{ v: '2.1', n: 'src/apsp_johnson/doc/index'},
208208
{ v: '2.3', n: 'src/allpairs/doc/pgr_johnson'}
209209
]),
210-
new createInfo('pgr_nodeNetwork', '2.0', [
211-
{ v: '2.1', n: 'src/common/doc/functions/node_network'},
212-
{ v: '2.3', n: 'src/topology/doc/pgr_nodeNetwork'},
213-
]),
214-
new createInfo('topology-functions', '2.0', [
210+
new createInfo('utilities-family', '2.0', [
215211
{ v: '2.1', n: 'src/common/doc/functions/index'},
216212
{ v: '2.3', n: 'src/topology/doc/topology'},
217-
]),
218-
new createInfo('pgr_createVerticesTable', '2.0', [
219-
{ v: '2.1', n: 'src/common/doc/functions/create_vert_table'},
220-
{ v: '2.3', n: 'src/topology/doc/pgr_createVerticesTable'}, 3.8
221-
]),
222-
new createInfo('pgr_createTopology', '2.0', [
223-
{ v: '2.1', n: 'src/common/doc/functions/create_topology'},
224-
{ v: '2.3', n: 'src/topology/doc/pgr_createTopology'}, 3.8
225-
]),
226-
new createInfo('pgr_analyzeOneWay', '2.0', [
227-
{ v: '2.1', n: 'src/common/doc/functions/analyze_oneway'},
228-
{ v: '2.3', n: 'src/topology/doc/pgr_analyzeOneWay'}, 3.8
229-
]),
230-
new createInfo('pgr_analyzeGraph', '2.0', [
231-
{ v: '2.1', n: 'src/common/doc/functions/analyze_graph'},
232-
{ v: '2.3', n: 'src/topology/doc/pgr_analyzeGraph'},
213+
{ v: '3.8', n: 'topology-functions'},
233214
]),
234215
new createInfo('pgRouting-concepts', '2.0', [
235216
{ v: '2.3', n: 'doc/src/tutorial/tutorial'},
@@ -260,6 +241,27 @@ var filesArr = [
260241
{ v: '2.1', n: 'src/driving_distance/doc/dd_driving_distance_v3'},
261242
{ v: '2.3', n: 'src/driving_distance/doc/pgr_drivingDistance'}
262243
]),
244+
245+
new createInfo('pgr_nodeNetwork', '2.0', [
246+
{ v: '2.1', n: 'src/common/doc/functions/node_network'},
247+
{ v: '2.3', n: 'src/topology/doc/pgr_nodeNetwork'}, 3.8
248+
]),
249+
new createInfo('pgr_createVerticesTable', '2.0', [
250+
{ v: '2.1', n: 'src/common/doc/functions/create_vert_table'},
251+
{ v: '2.3', n: 'src/topology/doc/pgr_createVerticesTable'}, 3.8
252+
]),
253+
new createInfo('pgr_createTopology', '2.0', [
254+
{ v: '2.1', n: 'src/common/doc/functions/create_topology'},
255+
{ v: '2.3', n: 'src/topology/doc/pgr_createTopology'}, 3.8
256+
]),
257+
new createInfo('pgr_analyzeOneWay', '2.0', [
258+
{ v: '2.1', n: 'src/common/doc/functions/analyze_oneway'},
259+
{ v: '2.3', n: 'src/topology/doc/pgr_analyzeOneWay'}, 3.8
260+
]),
261+
new createInfo('pgr_analyzeGraph', '2.0', [
262+
{ v: '2.1', n: 'src/common/doc/functions/analyze_graph'},
263+
{ v: '2.3', n: 'src/topology/doc/pgr_analyzeGraph'}, 3.8
264+
]),
263265
new createInfo('pgr_alphaShape', '2.0', [
264266
{ v: '2.1', n: 'src/driving_distance/doc/dd_alphashape'},
265267
{ v: '2.3', n: 'src/alpha_shape/doc/pgr_alphaShape'}, 3.8

doc/conf.py.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,11 @@ linkcheck_ignore = [
333333
r'https://github.com/pgRouting/pgrouting/issues/*', # limit only pgrouting
334334
r'https://github.com/pgRouting/pgrouting/archive/*',
335335
r'https://docs.pgrouting.org/3.8/*',
336-
r'https://www.overpass-api.de/*'
336+
# Currently has a problem
337+
'https://www.boost.org/doc/libs/1_78_0/libs/graph/doc/hawick_circuits.html',
338+
r'https://www.overpass-api.de/*',
339+
# 403 Client error
340+
'https://gis.stackexchange.com/questions/tagged/pgrouting'
337341
]
338342

339343
linkcheck_timeout = 20

doc/metrics/pgr_degree.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ If there is a vertices table already built using the ``pgr_extractVertices``
378378
See Also
379379
-------------------------------------------------------------------------------
380380

381-
* :doc:`topology-functions`
381+
* :doc:`utilities-family`
382382
* :doc:`pgr_extractVertices`
383383

384384
.. rubric:: Indices and tables

0 commit comments

Comments
 (0)