> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SolveGraphRequest

> SolveGraphRequest — Kinetica TypeScript API

interface SolveGraphRequest \{\
&#x20;[destination\_nodes](#destination_nodes)?: string\[];\
&#x20;[graph\_name](#graph_name): string;\
&#x20;[options](#options)?: Record\<string, string>;\
&#x20;[restrictions](#restrictions)?: string\[];\
&#x20;[solution\_table](#solution_table)?: string;\
&#x20;[solver\_type](#solver_type)?: string;\
&#x20;[source\_nodes](#source_nodes)?: string\[];\
&#x20;[weights\_on\_edges](#weights_on_edges)?: string\[];\
}

<ul>
  <li>Defined in [src/types.ts:5120](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5120)</li>
</ul>

##### Index

### Properties

[destination\_nodes?](#destination_nodes) [graph\_name](#graph_name) [options?](#options) [restrictions?](#restrictions) [solution\_table?](#solution_table) [solver\_type?](#solver_type) [source\_nodes?](#source_nodes) [weights\_on\_edges?](#weights_on_edges)&#x20;

## Properties

### `Optional`destination\_nodes

destination\_nodes?: string\[]

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.

<ul>
  <li>Defined in [src/types.ts:5156](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5156)</li>
</ul>

### graph\_name

graph\_name: string

Name of the graph resource to solve.

<ul>
  <li>Defined in [src/types.ts:5122](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5122)</li>
</ul>

### `Optional`options

options?: Record\<string, string>

Additional parameters.

<ul>
  <li>Defined in [src/types.ts:5160](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5160)</li>
</ul>

### `Optional`restrictions

restrictions?: string\[]

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').

<ul>
  <li>Defined in [src/types.ts:5150](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5150)</li>
</ul>

### `Optional`solution\_table

solution\_table?: string

Name of the table to store the solution, in \[schema\_name.]table\_name format, using standard name resolution rules.

<ul>
  <li>Defined in [src/types.ts:5158](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5158)</li>
</ul>

### `Optional`solver\_type

solver\_type?: string

The type of solver to use for the graph.

<ul>
  <li>Defined in [src/types.ts:5152](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5152)</li>
</ul>

### `Optional`source\_nodes

source\_nodes?: string\[]

It can be one of the nodal identifiers - e.g: 'NODE\_WKTPOINT' for source nodes. For BACKHAUL\_ROUTING, this list depicts the fixed assets.

<ul>
  <li>Defined in [src/types.ts:5154](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5154)</li>
</ul>

### `Optional`weights\_on\_edges

weights\_on\_edges?: string\[]

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.

<ul>
  <li>Defined in [src/types.ts:5135](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5135)</li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.