GPUdb C++ API
Version 7.0.19.0
|
A set of input parameters for const. More...
#include <gpudb/protocol/solve_graph.h>
Public Member Functions | |
SolveGraphRequest () | |
Constructs a SolveGraphRequest object with default parameter values. More... | |
SolveGraphRequest (const std::string &graphName_, const std::vector< std::string > &weightsOnEdges_, const std::vector< std::string > &restrictions_, const std::string &solverType_, const std::vector< std::string > &sourceNodes_, const std::vector< std::string > &destinationNodes_, const std::string &solutionTable_, const std::map< std::string, std::string > &options_) | |
Constructs a SolveGraphRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | graphName |
std::vector< std::string > | weightsOnEdges |
std::vector< std::string > | restrictions |
std::string | solverType |
std::vector< std::string > | sourceNodes |
std::vector< std::string > | destinationNodes |
std::string | solutionTable |
std::map< std::string, std::string > | options |
A set of input parameters for const.
Solves an existing graph for a type of problem (e.g., shortest path, page rank, travelling salesman, etc.) using source nodes, destination nodes, and additional, optional weights and restrictions.
IMPORTANT: It's highly recommended that you review the Network Graphs & Solvers concepts documentation, the Graph REST Tutorial, and/or some /solve/graph examples before using this endpoint.
Definition at line 32 of file solve_graph.h.
|
inline |
Constructs a SolveGraphRequest object with default parameter values.
Definition at line 38 of file solve_graph.h.
|
inline |
Constructs a SolveGraphRequest object with the specified parameters.
[in] | graphName_ | Name of the graph resource to solve. |
[in] | weightsOnEdges_ | Additional weights to apply to the edges of an existing graph. Weights must be specified using identifiers; identifiers are grouped as combinations. Identifiers can be used with existing column names, e.g., 'table.column AS WEIGHTS_EDGE_ID', expressions, e.g., 'ST_LENGTH(wkt) AS WEIGHTS_VALUESPECIFIED', or constant values, e.g., '{4, 15, 2} AS WEIGHTS_VALUESPECIFIED'. Any provided weights will be added (in the case of 'WEIGHTS_VALUESPECIFIED') to or multiplied with (in the case of 'WEIGHTS_FACTORSPECIFIED') the existing weight(s). If using constant values in an identifier combination, the number of values specified must match across the combination. |
[in] | restrictions_ | Additional restrictions to apply to the nodes/edges of an existing graph. Restrictions must be specified using identifiers; identifiers are grouped as combinations. Identifiers can be used with existing column names, e.g., 'table.column AS RESTRICTIONS_EDGE_ID', expressions, e.g., 'column/2 AS RESTRICTIONS_VALUECOMPARED', or constant values, e.g., '{0, 0, 0, 1} AS RESTRICTIONS_ONOFFCOMPARED'. If using constant values in an identifier combination, the number of values specified must match across the combination. If remove_previous_restrictions is set to true, any provided restrictions will replace the existing restrictions. If remove_previous_restrictions is set to false, any provided restrictions will be added (in the case of 'RESTRICTIONS_VALUECOMPARED') to or replaced (in the case of 'RESTRICTIONS_ONOFFCOMPARED'). |
[in] | solverType_ | The type of solver to use for the graph.
|
[in] | sourceNodes_ | It can be one of the nodal identifiers - e.g: 'NODE_WKTPOINT' for source nodes. For BACKHAUL_ROUTING, this list depicts the fixed assets. |
[in] | destinationNodes_ | It can be one of the nodal identifiers
|
[in] | solutionTable_ | Name of the table to store the solution. |
[in] | options_ | Additional parameters
|
Definition at line 325 of file solve_graph.h.
std::vector<std::string> gpudb::SolveGraphRequest::destinationNodes |
Definition at line 342 of file solve_graph.h.
std::string gpudb::SolveGraphRequest::graphName |
Definition at line 337 of file solve_graph.h.
std::map<std::string, std::string> gpudb::SolveGraphRequest::options |
Definition at line 344 of file solve_graph.h.
std::vector<std::string> gpudb::SolveGraphRequest::restrictions |
Definition at line 339 of file solve_graph.h.
std::string gpudb::SolveGraphRequest::solutionTable |
Definition at line 343 of file solve_graph.h.
std::string gpudb::SolveGraphRequest::solverType |
Definition at line 340 of file solve_graph.h.
std::vector<std::string> gpudb::SolveGraphRequest::sourceNodes |
Definition at line 341 of file solve_graph.h.
std::vector<std::string> gpudb::SolveGraphRequest::weightsOnEdges |
Definition at line 338 of file solve_graph.h.