Kinetica C# API
Version 7.2.3.0
|
A set of parameters for Kinetica.solveGraph. More...
Classes | |
struct | Options |
A set of string constants for the parameter options. More... | |
struct | SolverType |
A set of string constants for the parameter solver_type. More... | |
Public Member Functions | |
SolveGraphRequest () | |
Constructs a SolveGraphRequest object with default parameters. More... | |
SolveGraphRequest (string graph_name, IList< string > weights_on_edges=null, IList< string > restrictions=null, string solver_type=null, IList< string > source_nodes=null, IList< string > destination_nodes=null, string solution_table=null, IDictionary< string, string > options=null) | |
Constructs a SolveGraphRequest object with the specified parameters. More... | |
![]() | |
KineticaData (KineticaType type) | |
Constructor from Kinetica Type More... | |
KineticaData (System.Type type=null) | |
Default constructor, with optional System.Type More... | |
object | Get (int fieldPos) |
Retrieve a specific property from this object More... | |
void | Put (int fieldPos, object fieldValue) |
Write a specific property to this object More... | |
Properties | |
string | graph_name [get, set] |
Name of the graph resource to solve. More... | |
IList< string > | weights_on_edges = new List<string>() [get, set] |
Additional weights to apply to the edges of an existing graph. More... | |
IList< string > | restrictions = new List<string>() [get, set] |
Additional restrictions to apply to the nodes/edges of an existing graph. More... | |
string | solver_type = SolverType.SHORTEST_PATH [get, set] |
The type of solver to use for the graph. More... | |
IList< string > | source_nodes = new List<string>() [get, set] |
It can be one of the nodal identifiers - e.g: 'NODE_WKTPOINT' for source nodes. More... | |
IList< string > | destination_nodes = new List<string>() [get, set] |
It can be one of the nodal identifiers - e.g: 'NODE_WKTPOINT' for destination (target) nodes. More... | |
string | solution_table = "graph_solutions" [get, set] |
Name of the table to store the solution, in [schema_name. More... | |
IDictionary< string, string > | options = new Dictionary<string, string>() [get, set] |
Additional parameters. More... | |
![]() | |
Schema | Schema [get] |
Avro Schema for this class More... | |
Additional Inherited Members | |
![]() | |
static ? RecordSchema | SchemaFromType (System.Type t, KineticaType? ktype=null) |
Create an Avro Schema from a System.Type and a KineticaType. More... | |
A set of parameters for Kinetica.solveGraph.
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 Graphs & Solvers concepts documentation, the Graph REST Tutorial, and/or some /solve/graph examples before using this endpoint.
Definition at line 25 of file SolveGraph.cs.
|
inline |
Constructs a SolveGraphRequest object with default parameters.
Definition at line 741 of file SolveGraph.cs.
|
inline |
Constructs a SolveGraphRequest object with the specified parameters.
graph_name | Name of the graph resource to solve. |
weights_on_edges | 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. The default value is an empty List. |
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 option is set to true, any provided restrictions will replace the existing restrictions. Otherwise, any provided restrictions will be added (in the case of 'RESTRICTIONS_VALUECOMPARED') to or replaced (in the case of 'RESTRICTIONS_ONOFFCOMPARED'). The default value is an empty List. |
solver_type | The type of solver to use for the graph. Supported values:
|
source_nodes | It can be one of the nodal identifiers - e.g: 'NODE_WKTPOINT' for source nodes. For BACKHAUL_ROUTING, this list depicts the fixed assets. The default value is an empty List. |
destination_nodes | It can be one of the nodal identifiers - e.g: 'NODE_WKTPOINT' for destination (target) nodes. For BACKHAUL_ROUTING, this list depicts the remote assets. The default value is an empty List. |
solution_table | Name of the table to store the solution, in [schema_name.]table_name format, using standard name resolution rules. The default value is 'graph_solutions'. |
options | Additional parameters.
|
Definition at line 1142 of file SolveGraph.cs.
|
getset |
It can be one of the nodal identifiers - e.g: 'NODE_WKTPOINT' for destination (target) nodes.
For BACKHAUL_ROUTING, this list depicts the remote assets. The default value is an empty List.
Definition at line 467 of file SolveGraph.cs.
|
getset |
Name of the graph resource to solve.
Definition at line 324 of file SolveGraph.cs.
|
getset |
Additional parameters.
The default value is an empty Dictionary.
Definition at line 737 of file SolveGraph.cs.
|
getset |
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 option is set to true, any provided restrictions will replace the existing restrictions. Otherwise, any provided restrictions will be added (in the case of 'RESTRICTIONS_VALUECOMPARED') to or replaced (in the case of 'RESTRICTIONS_ONOFFCOMPARED'). The default value is an empty List.
Definition at line 362 of file SolveGraph.cs.
|
getset |
Name of the table to store the solution, in [schema_name.
]table_name format, using standard name resolution rules.
The default value is 'graph_solutions'.
Definition at line 475 of file SolveGraph.cs.
|
getset |
The type of solver to use for the graph.
Supported values:
The default value is SHORTEST_PATH.
Definition at line 451 of file SolveGraph.cs.
|
getset |
It can be one of the nodal identifiers - e.g: 'NODE_WKTPOINT' for source nodes.
For BACKHAUL_ROUTING, this list depicts the fixed assets. The default value is an empty List.
Definition at line 459 of file SolveGraph.cs.
|
getset |
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. The default value is an empty List.
Definition at line 342 of file SolveGraph.cs.