pgRouting
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ksp.c File Reference
#include "postgres.h"
#include "executor/spi.h"
#include "funcapi.h"
#include "catalog/pg_type.h"
#include "fmgr.h"
#include "./../../common/src/pgr_types.h"
#include "./../../common/src/debug_macro.h"
#include "./../../common/src/time_msg.h"
#include "./../../common/src/postgres_connection.h"
#include "./../../common/src/edges_input.h"
#include "./ksp_driver.h"

Go to the source code of this file.

Functions

static void compute (char *sql, int64_t start_vertex, int64_t end_vertex, int k, bool directed, bool heap_paths, General_path_element_t **ksp_path, size_t *path_count)
 
PGDLLEXPORT Datum kshortest_path (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (kshortest_path)
 

Function Documentation

static void compute ( char *  sql,
int64_t  start_vertex,
int64_t  end_vertex,
int  k,
bool  directed,
bool  heap_paths,
General_path_element_t **  ksp_path,
size_t *  path_count 
)
static
PGDLLEXPORT Datum kshortest_path ( PG_FUNCTION_ARGS  )

Definition at line 95 of file ksp.c.

References compute(), path, path_count, PGR_DBG, and pgr_text2char().

PG_FUNCTION_INFO_V1 ( kshortest_path  )