Skip to content

Commit 7c72fe3

Browse files
committed
Fixing more issues detected by rabbit
1 parent 7a629c2 commit 7c72fe3

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

docs/basic/graphs.rst

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ Also, on the ``ways`` table there is a column that can be used to ``JOIN`` with
125125
pgr_extractVertices
126126
================================================================================
127127

128-
``pgr_extractVertices`` compute the connected components of an undirected
129-
graph using a Depth First Search approach. A connected component of an
130-
undirected graph is a set of vertices that are all reachable from each other.
128+
``pgr_extractVertices`` extracting the vertex information of the set of edges of
129+
a graph.
131130

132131
.. rubric:: Signature summary
133132

@@ -139,7 +138,7 @@ undirected graph is a set of vertices that are all reachable from each other.
139138
OR EMPTY SET
140139
141140
Description of the function can be found in `pgr_extractVertices
142-
<https://docs.pgrouting.org/latest/en/pgr_connectedComponents.html>`__
141+
<https://docs.pgrouting.org/latest/en/pgr_extractVertices.html>`__
143142

144143
Exercise 1: Create a vertices table
145144
-------------------------------------------------------------------------------
@@ -211,8 +210,10 @@ Count the number of rows that need to be filled up.
211210

212211
.. rubric:: Update the ``geom`` and ``osm_id`` columns
213212

214-
* Update based on the ``source`` column from ``ways`` table.
215-
* Use the start point of the geometry to update ``geom`` column.
213+
* The update based on the ``source`` column from ``ways`` table and the ``id``
214+
column of the vertices table.
215+
* To update ``geom`` column, use the start point of the geometry on the ``ways``
216+
table.
216217
* Use the ``source_osm`` value to fill up ``osm_id`` column.
217218

218219
.. literalinclude:: ../scripts/basic/graphs/graphs.sql
@@ -226,7 +227,7 @@ Count the number of rows that need to be filled up.
226227

227228
.. literalinclude:: ../scripts/basic/graphs/fill_columns_2.txt
228229

229-
Not expecting to be done due to the fact that some vertices are only dead ends.
230+
Not expecting to be done due to the fact that some vertices are dead ends.
230231

231232
.. literalinclude:: ../scripts/basic/graphs/graphs.sql
232233
:language: sql
@@ -239,8 +240,10 @@ Not expecting to be done due to the fact that some vertices are only dead ends.
239240

240241
.. rubric:: Continue update the ``geom`` and ``osm_id`` columns
241242

242-
* Update based on the ``target`` column from ``ways`` table.
243-
* Use the start point of the geometry to update ``geom`` column.
243+
* The update based on the ``target`` column from ``ways`` table and the ``id``
244+
column of the vertices table.
245+
* To update ``geom`` column, use the end point of the geometry on the ``ways``
246+
table.
244247
* Use the ``target_osm`` value to fill up ``osm_id`` column.
245248

246249
.. literalinclude:: ../scripts/basic/graphs/graphs.sql

0 commit comments

Comments
 (0)