Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release tasks 2 #2372

Merged
merged 20 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
48ff436
[ordering][cuthillMckee] renaming file
cvvergara Sep 20, 2022
af13281
[coloring] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
19a259b
[components] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
f284171
[conf.py.in] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
8e1cd8f
[contraction] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
db6fce9
[dagShortestPath] [doc] fixing issues on signatures because of admoni…
cvvergara Sep 20, 2022
04cbe4b
[dijkstra] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
41ba2de
[dominator] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
818ce5a
[driving_distance] [doc] fixing issues on signatures because of admon…
cvvergara Sep 20, 2022
96a231a
[ksp] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
481719b
[lineGraph] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
5b8a8d1
[max_flow] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
25a5b7b
[mincut] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
8459db1
[ordering] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
3f9df4f
[planar] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
0cf6071
[spanningTree] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
906098c
[src] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
1d011ac
[topologicalSort] [doc] fixing issues on signatures because of admoni…
cvvergara Sep 20, 2022
b512f47
[transitiveClosure] [doc] fixing issues on signatures because of admo…
cvvergara Sep 20, 2022
40e246c
[traversal] [doc] fixing issues on signatures because of admonition
cvvergara Sep 20, 2022
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
6 changes: 3 additions & 3 deletions doc/coloring/pgr_bipartite.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ Signatures
.. admonition:: \ \
:class: signatures

pgr_bipartite(`Edges SQL`_)
| pgr_bipartite(`Edges SQL`_)

RETURNS SET OF (vertex_id, color_id)
OR EMPTY SET
| RETURNS SET OF |result-node-color|
| OR EMPTY SET

:Example: When the graph is bipartite

Expand Down
19 changes: 9 additions & 10 deletions doc/coloring/pgr_edgeColoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ no two adjacent edges have the same color.

- :loop free: no self-loops and no parallel edges.


- Provides the color to be assigned to all the edges present in the graph.

- At most :math:`\Delta + 1` colors are used, where :math:`\Delta` is the degree
Expand All @@ -59,9 +58,9 @@ no two adjacent edges have the same color.
color more than the optimal for all others.
- When the graph is bipartite

- the chromatic number :math:`x'(G)` (minimum number of
colors needed for proper edge coloring of graph) is equal to the degree
:math:`\Delta + 1` of the graph, (:math:`x'(G) = \Delta`)
- the chromatic number :math:`x'(G)` (minimum number of
colors needed for proper edge coloring of graph) is equal to the degree
:math:`\Delta + 1` of the graph, (:math:`x'(G) = \Delta`)

- The algorithm tries to assign the least possible color to every edge.

Expand All @@ -70,10 +69,10 @@ no two adjacent edges have the same color.
- The returned rows are ordered in ascending order of the edge identifier.
- Efficient graph coloring is an NP-Hard problem, and therefore:

- In this implelentation the running time: :math:`O(|E|*|V|)`
- In this implelentation the running time: :math:`O(|E|*|V|)`

- where :math:`|E|` is the number of edges in the graph,
- :math:`|V|` is the number of vertices in the graph.
- where :math:`|E|` is the number of edges in the graph,
- :math:`|V|` is the number of vertices in the graph.

Signatures
------------------------------------------------------------------------------
Expand All @@ -84,10 +83,10 @@ Signatures
.. admonition:: \ \
:class: signatures

pgr_edgeColoring(`Edges SQL`_)
| pgr_edgeColoring(`Edges SQL`_)

RETURNS SET OF (edge_id, color_id)
OR EMPTY SET
| RETURNS SET OF |result-edge-color|
| OR EMPTY SET

:Example: Graph coloring of pgRouting :doc:`sampledata`

Expand Down
6 changes: 3 additions & 3 deletions doc/coloring/pgr_sequentialVertexColoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ Signatures
.. admonition:: \ \
:class: signatures

pgr_sequentialVertexColoring(`Edges SQL`_)
| pgr_sequentialVertexColoring(`Edges SQL`_)

RETURNS SET OF (vertex_id, color_id)
OR EMPTY SET
| RETURNS SET OF |result-node-color|
| OR EMPTY SET

:Example: Graph coloring of pgRouting :doc:`sampledata`

Expand Down
9 changes: 5 additions & 4 deletions doc/components/pgr_articulationPoints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ Signatures
.. admonition:: \ \
:class: signatures

pgr_articulationPoints(`Edges SQL`_)
RETURNS SET OF (node)
OR EMPTY SET
| pgr_articulationPoints(`Edges SQL`_)

| RETURNS SET OF |result-node|
| OR EMPTY SET

:Example: The articulation points of the graph

Expand Down Expand Up @@ -105,7 +106,7 @@ Edges SQL
Result Columns
-------------------------------------------------------------------------------

Returns set of ``(node)``
Returns set of |result-node|

.. list-table::
:width: 81
Expand Down
9 changes: 5 additions & 4 deletions doc/components/pgr_biconnectedComponents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ Signatures
.. admonition:: \ \
:class: signatures

pgr_biconnectedComponents(`Edges SQL`_)
RETURNS SET OF (seq, component, edge)
OR EMPTY SET
| pgr_biconnectedComponents(`Edges SQL`_)

| RETURNS SET OF |result-component-E|
| OR EMPTY SET

:Example: The biconnected components of the graph

Expand Down Expand Up @@ -111,7 +112,7 @@ Edges SQL
Result Columns
-------------------------------------------------------------------------------

Returns set of ``(seq, component, edge)``
Returns set of |result-component-E|

.. list-table::
:width: 81
Expand Down
9 changes: 5 additions & 4 deletions doc/components/pgr_bridges.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ Signatures
.. admonition:: \ \
:class: signatures

pgr_bridges(`Edges SQL`_)
RETURNS SET OF (edge)
OR EMPTY SET
| pgr_bridges(`Edges SQL`_)

| RETURNS SET OF |result-edge|
| OR EMPTY SET

:Example: The bridges of the graph

Expand Down Expand Up @@ -99,7 +100,7 @@ Edges SQL
Result Columns
-------------------------------------------------------------------------------

Returns set of ``(edge)``
Returns set of |result-edge|

.. list-table::
:width: 81
Expand Down
8 changes: 4 additions & 4 deletions doc/components/pgr_connectedComponents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ Signatures
.. admonition:: \ \
:class: signatures

pgr_connectedComponents(`Edges SQL`_)
| pgr_connectedComponents(`Edges SQL`_)

RETURNS SET OF (seq, component, node)
OR EMPTY SET
| RETURNS SET OF |result-component-V|
| OR EMPTY SET

:Example: The connected components of the graph

Expand Down Expand Up @@ -112,7 +112,7 @@ Result Columns

.. return_componentsV_start

Returns set of ``(seq, component, node)``
Returns set of |result-component-V|

.. list-table::
:width: 81
Expand Down
9 changes: 5 additions & 4 deletions doc/components/pgr_makeConnected.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ Signatures
.. admonition:: \ \
:class: signatures

pgr_makeConnected(`Edges SQL`_)
RETURNS SET OF (seq, start_vid, end_vid)
OR EMPTY SET
| pgr_makeConnected(`Edges SQL`_)

| RETURNS SET OF |result-component-make|
| OR EMPTY SET

:Example: Query done on :doc:`sampledata` network gives the list of edges that
are needed to connect the graph.
Expand Down Expand Up @@ -98,7 +99,7 @@ Edges SQL
Result Columns
-------------------------------------------------------------------------------

Returns set of ``(seq, start_vid, end_vid)``
Returns set of |result-component-make|

.. list-table::
:width: 81
Expand Down
7 changes: 4 additions & 3 deletions doc/components/pgr_strongComponents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ Signatures
.. admonition:: \ \
:class: signatures

pgr_strongComponents(`Edges SQL`_)
RETURNS SET OF (seq, component, node)
OR EMPTY SET
| pgr_strongComponents(`Edges SQL`_)

| RETURNS SET OF |result-component-V|
| OR EMPTY SET

:Example: The strong components of the graph

Expand Down
29 changes: 28 additions & 1 deletion doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ linkcheck_ignore = [
r'https://docs.pgrouting.org/.*/.*/DFS-category.html',
r'https://docs.pgrouting.org/.*/.*/reference.html',
r'https://docs.pgrouting.org/.*/.*/pgr_degree.html',
r'https://docs.pgrouting.org/.*/.*/cuthillMckeeOrdering.html',
r'https://docs.pgrouting.org/.*/.*/pgr_cuthillMckeeOrdering.html',
r'https://docs.pgrouting.org/.*/.*/ordering-family.html',
r'https://docs.pgrouting.org/.*/.*/hawickCircuits.html',
r'https://docs.pgrouting.org/.*/.*/pgr_findCloseEdges.html',
Expand All @@ -356,6 +356,8 @@ rst_epilog="""
.. |ANY-INTEGER| replace:: :abbr:`ANY-INTEGER(SMALLINT, INTEGER, BIGINT)`
.. |ANY-NUMERICAL| replace:: :abbr:`ANY-NUMERICAL(SMALLINT, INTEGER, BIGINT, REAL, FLOAT)`
.. |generic-result| replace:: ``(seq, path_id, path_seq, start_vid, end_vid, node, edge, cost, agg_cost)``
.. |ksp-result| replace:: ``(seq, path_id, path_seq, node, edge, cost, agg_cost)``
.. |short-generic-result| replace:: ``(seq, path_seq, start_vid, end_vid, node, edge, cost, agg_cost)``
.. |via-result| replace:: ``(seq, path_id, path_seq, start_vid, end_vid, node, edge, cost, agg_cost, route_agg_cost)``
.. |matrix-result| replace:: ``(start_vid, end_vid, agg_cost)``
.. |old-generic-result| replace:: ``(seq, path_seq, [start_vid], [end_vid], node, edge, cost, agg_cost)``
Expand All @@ -364,7 +366,32 @@ rst_epilog="""
.. |result-m-1| replace:: ``(seq, path_seq, start_vid, node, edge, cost, agg_cost)``
.. |result-m-m| replace:: ``(seq, path_seq, start_vid, end_vid, node, edge, cost, agg_cost)``
.. |result-bfs| replace:: ``(seq, depth, start_vid, node, edge, cost, agg_cost)``
.. |result-mst| replace:: ``(edge, cost)``
.. |result-1-1-no-seq| replace:: ``(seq, node, edge, cost, agg_cost)``
.. |result-node-color| replace:: ``(vertex_id, color_id)``
.. |result-edge-color| replace:: ``(edge_id, color_id)``
.. |result-node| replace:: ``(node)``
.. |result-edge| replace:: ``(edge)``
.. |result-node-order| replace:: ``(seq, node)``
.. |result-toposort| replace:: ``(seq, sorted_v)``
.. |result-closure| replace:: ``(seq, vid, target_array)``
.. |result-component-E| replace:: ``(seq, component, edge)``
.. |result-component-V| replace:: ``(seq, component, node)``
.. |result-component-make| replace:: ``(seq, start_vid, end_vid)``
.. |result-contract| replace:: ``(type, id, contracted_vertices, source, target, cost)``
.. |result-idom| replace:: ``(seq, vertex_id, idom)``
.. |result-dij-dd| replace:: ``(seq, [from_v,] node, edge, cost, agg_cost)``
.. |result-dij-dd-m| replace:: ``(seq, from_v, node, edge, cost, agg_cost)``
.. |result-linegf| replace:: ``(seq, source, target, cost, edge)``
.. |result-lineg| replace:: ``(seq, source, target, cost, reverse_cost)``
.. |result-flow| replace:: ``(seq, edge, start_vid, end_vid, flow, residual_capacity)``
.. |result-flow-mincost| replace:: ``(seq, edge, source, target, flow, residual_capacity, cost, agg_cost)``
.. |result-disjoint| replace:: ``(seq, path_id, path_seq, [start_vid,] [end_vid,] node, edge, cost, agg_cost)``
.. |result-disjoint-1-1| replace:: ``(seq, path_id, path_seq, node, edge, cost, agg_cost)``
.. |result-disjoint-1-m| replace:: ``(seq, path_id, path_seq, end_vid, node, edge, cost, agg_cost)``
.. |result-disjoint-m-1| replace:: ``(seq, path_id, path_seq, start_vid, node, edge, cost, agg_cost)``
.. |result-disjoint-m-m| replace:: ``(seq, path_id, path_seq, start_vid, end_vid, node, edge, cost, agg_cost)``
.. |result-mincut| replace:: ``(seq, edge, cost, mincut)``

"""

Expand Down
9 changes: 5 additions & 4 deletions doc/contraction/pgr_contraction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ The pgr_contraction function has the following signature:
.. admonition:: \ \
:class: signatures

| pgr_contraction(`Edges SQL`_, **contraction order**
| [, max_cycles] [, forbidden_vertices] [, directed])
| RETURNS SETOF (type, id, contracted_vertices, source, target, cost)
| pgr_contraction(`Edges SQL`_, **contraction order**, [**options**])

| **options:** ``[ max_cycles, forbidden_vertices, directed]``
| RETURNS SET OF |result-contract|

:Example: Making a dead end and linear contraction in that order on an
undirected graph.
Expand Down Expand Up @@ -165,7 +166,7 @@ Edges SQL
Result Columns
-------------------------------------------------------------------------------

RETURNS SETOF (type, id, contracted_vertices, source, target, cost)
Returns set of |result-contract|

The function returns a single row. The columns of the row are:

Expand Down
49 changes: 27 additions & 22 deletions doc/dagShortestPath/pgr_dagShortestPath.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ Signatures
.. admonition:: \ \
:class: signatures

pgr_dagShortestPath(`Edges SQL`_, **start vid**, **end vid**)
pgr_dagShortestPath(`Edges SQL`_, **start vid**, **end vids**)
pgr_dagShortestPath(`Edges SQL`_, **start vids**, **end vid**)
pgr_dagShortestPath(`Edges SQL`_, **start vids**, **end vids**)
pgr_dagShortestPath(`Edges SQL`_, `Combinations SQL`_)
| pgr_dagShortestPath(`Edges SQL`_, **start vid**, **end vid**)
| pgr_dagShortestPath(`Edges SQL`_, **start vid**, **end vids**)
| pgr_dagShortestPath(`Edges SQL`_, **start vids**, **end vid**)
| pgr_dagShortestPath(`Edges SQL`_, **start vids**, **end vids**)
| pgr_dagShortestPath(`Edges SQL`_, `Combinations SQL`_)

RETURNS SET OF (seq, path_seq, node, edge, cost, agg_cost)
OR EMPTY SET
| RETURNS SET OF |result-1-1|
| OR EMPTY SET


.. index::
Expand All @@ -113,9 +113,10 @@ One to One
.. admonition:: \ \
:class: signatures

pgr_dagShortestPath(`Edges SQL`_, **start vid**, **end vid**)
RETURNS SET OF (seq, path_seq, node, edge, cost, agg_cost)
OR EMPTY SET
| pgr_dagShortestPath(`Edges SQL`_, **start vid**, **end vid**)

| RETURNS SET OF |result-1-1|
| OR EMPTY SET

:Example: From vertex :math:`5` to vertex :math:`11` on a **directed** graph

Expand All @@ -132,9 +133,10 @@ One to Many
.. admonition:: \ \
:class: signatures

pgr_dagShortestPath(`Edges SQL`_, **start vid**, **end vids**)
RETURNS SET OF (seq, path_seq, node, edge, cost, agg_cost)
OR EMPTY SET
| pgr_dagShortestPath(`Edges SQL`_, **start vid**, **end vids**)

| RETURNS SET OF |result-1-1|
| OR EMPTY SET

:Example: From vertex :math:`5` to vertices :math:`\{7, 11\}`

Expand All @@ -151,9 +153,10 @@ Many to One
.. admonition:: \ \
:class: signatures

pgr_dagShortestPath(`Edges SQL`_, **start vids**, **end vid**)
RETURNS SET OF (seq, path_seq, node, edge, cost, agg_cost)
OR EMPTY SET
| pgr_dagShortestPath(`Edges SQL`_, **start vids**, **end vid**)

| RETURNS SET OF |result-1-1|
| OR EMPTY SET

:Example: From vertices :math:`\{5, 10\}` to vertex :math:`11`

Expand All @@ -170,9 +173,10 @@ Many to Many
.. admonition:: \ \
:class: signatures

pgr_dagShortestPath(`Edges SQL`_, **start vids**, **end vids**)
RETURNS SET OF (seq, path_seq, node, edge, cost, agg_cost)
OR EMPTY SET
| pgr_dagShortestPath(`Edges SQL`_, **start vids**, **end vids**)

| RETURNS SET OF |result-1-1|
| OR EMPTY SET

:Example: From vertices :math:`\{5, 15\}` to vertices :math:`\{11, 17\}` on an
**undirected** graph
Expand All @@ -190,9 +194,10 @@ Combinations
.. admonition:: \ \
:class: signatures

pgr_dagShortestPath(`Edges SQL`_, Combinations)
RETURNS SET OF (seq, path_seq, node, edge, cost, agg_cost)
OR EMPTY SET
| pgr_dagShortestPath(`Edges SQL`_, Combinations)

| RETURNS SET OF |result-1-1|
| OR EMPTY SET

:Example: Using a combinations table on an **undirected** graph

Expand Down
Loading