|
| 1 | +/*PGR-GNU***************************************************************** |
| 2 | +File: kingOrdering.sql |
| 3 | +
|
| 4 | +Generated with Template by: |
| 5 | +Copyright (c) 2025 pgRouting developers |
| 6 | +Mail: project@pgrouting.org |
| 7 | +
|
| 8 | +Function's developer: |
| 9 | +Copyright (c) 2025 Fan Wu |
| 10 | +Mail: wifiblack0131 at gmail.com |
| 11 | +
|
| 12 | +------ |
| 13 | +
|
| 14 | +This program is free software; you can redistribute it and/or modify |
| 15 | +it under the terms of the GNU General Public License as published by |
| 16 | +the Free Software Foundation; either version 2 of the License, or |
| 17 | +(at your option) any later version. |
| 18 | +
|
| 19 | +This program is distributed in the hope that it will be useful, |
| 20 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | +GNU General Public License for more details. |
| 23 | +
|
| 24 | +You should have received a copy of the GNU General Public License |
| 25 | +along with this program; if not, write to the Free Software |
| 26 | +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 27 | +
|
| 28 | + ********************************************************************PGR-GNU*/ |
| 29 | + |
| 30 | +--v4.0 |
| 31 | +CREATE FUNCTION pgr_kingOrdering( |
| 32 | + TEXT, -- edges_sql (required) |
| 33 | + OUT seq BIGINT, |
| 34 | + OUT node BIGINT) |
| 35 | +RETURNS SETOF RECORD AS |
| 36 | +$BODY$ |
| 37 | + SELECT seq, node |
| 38 | + FROM _pgr_kingOrdering(_pgr_get_statement($1)); |
| 39 | +$BODY$ |
| 40 | +LANGUAGE SQL VOLATILE STRICT |
| 41 | +COST ${COST_HIGH} ROWS ${ROWS_HIGH}; |
| 42 | + |
| 43 | +COMMENT ON FUNCTION pgr_kingOrdering(TEXT) |
| 44 | +IS 'pgr_kingOrdering |
| 45 | +- EXPERIMENTAL |
| 46 | +- Parameters: |
| 47 | + - Edges SQL with columns: id, source, target, cost [,reverse_cost] |
| 48 | +- Documentation: |
| 49 | + - ${PROJECT_DOC_LINK}/pgr_kingOrdering.html |
| 50 | +'; |
0 commit comments