Coloring - Family of functions - pgRouting Manual (3.3)

Coloring - Family of functions
Proposed
Warning
Proposed functions for next mayor release.
-
They are not officially in the current release.
-
They will likely officially be part of the next mayor release:
-
The functions make use of ANY-INTEGER and ANY-NUMERICAL
-
Name might not change. (But still can)
-
Signature might not change. (But still can)
-
Functionality might not change. (But still can)
-
pgTap tests have being done. But might need more.
-
Documentation might need refinement.
-
-
pgr_sequentialVertexColoring - Proposed - Vertex coloring algorithm using greedy approach.
Experimental
Warning
Possible server crash
-
These functions might create a server crash
Warning
Experimental functions
-
They are not officially of the current release.
-
They likely will not be officially be part of the next release:
-
The functions might not make use of ANY-INTEGER and ANY-NUMERICAL
-
Name might change.
-
Signature might change.
-
Functionality might change.
-
pgTap tests might be missing.
-
Might need c/c++ coding.
-
May lack documentation.
-
Documentation if any might need to be rewritten.
-
Documentation examples might need to be automatically generated.
-
Might need a lot of feedback from the comunity.
-
Might depend on a proposed function of pgRouting
-
Might depend on a deprecated function of pgRouting
-
-
pgr_bipartite -Experimental - Bipartite graph algorithm using a DFS-based coloring approach.
-
pgr_edgeColoring - Experimental - Edge Coloring algorithm using Vizing’s theorem.
Parameters
Parameter |
Type |
Description |
---|---|---|
Edges SQL |
|
Inner query as described below. |
Inner query
- Edges SQL :
-
an SQL query of an undirected graph, which should return a set of rows with the following columns:
Column |
Type |
Default |
Description |
---|---|---|---|
id |
|
Identifier of the edge. |
|
source |
|
Identifier of the first end point vertex of the edge. |
|
target |
|
Identifier of the second end point vertex of the edge. |
|
cost |
|
|
|
reverse_cost |
|
-1 |
|
Where:
- ANY-INTEGER :
-
SMALLINT, INTEGER, BIGINT
- ANY-NUMERICAL :
-
SMALLINT, INTEGER, BIGINT, REAL, FLOAT
Result Columns
Returns SET OF
(vertex_id,
color_id)
Column |
Type |
Description |
---|---|---|
vertex_id |
|
Identifier of the vertex. |
color_id |
|
Identifier of the color of the vertex.
|
Returns SET OF
(edge_id,
color_id)
Column |
Type |
Description |
---|---|---|
edge_id |
|
Identifier of the edge. |
color_id |
|
Identifier of the color of the edge.
|
See Also
Indices and tables