> ## 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.

# CreateGraphRequestOptions

> CreateGraphRequestOptions — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[generated](https://docs.kinetica.com/content/api/rust/generated/index.md)::<wbr />[api](https://docs.kinetica.com/content/api/rust/generated/api/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L7943-L8000)&#x20;

<pre>`pub struct CreateGraphRequestOptions {    pub merge_tolerance: String,    pub recreate: String,    pub save_persist: String,    pub add_table_monitor: String,    pub graph_table: String,    pub add_turns: String,    pub is_partitioned: String,    pub server_id: String,    pub use_rtree: String,    pub label_delimiter: String,    pub allow_multiple_edges: String,    pub embedding_table: String,}`</pre>

Optional parameters for the `/create/graph` endpoint.`Default::default()` is the empty set: only options set explicitly are sent, and anything left empty falls back to the server’s own default.

Fields
`merge_tolerance: String`

If node geospatial positions are input (e.g., WKTPOINT, X, Y), determines the minimum separation allowed between unique nodes. If nodes are within the tolerance of each other, they will be merged as a single node. Server default: `1.0E-5`.

`recreate: String`

If set to true and the graph (using `graph_name`) already exists, the graph is deleted and recreated. Server default: `false`.

`save_persist: String`

If set to true, the graph will be saved in the persist directory (see the config reference for more information). If set to false, the graph will be removed when the graph server is shutdown. Server default: `false`.

`add_table_monitor: String`

Adds a table monitor to every table used in the creation of the graph; this table monitor will trigger the graph to update dynamically upon inserts to the source table(s). Note that upon database restart, if save\_persist is also set to true, the graph will be fully reconstructed and the table monitors will be reattached. For more details on table monitors, see `/create/tablemonitor`. Server default: `false`.

`graph_table: String`

If specified, the created graph is also created as a table with the given name, in \[schema\_name.]table\_name format, using standard name resolution rules and meeting table naming criteria. The table will have the following identifier columns: ‘EDGE\_ID’, ‘EDGE\_NODE1\_ID’, ‘EDGE\_NODE2\_ID’. If left blank, no table is created.

`add_turns: String`

Adds dummy ‘pillowed’ edges around intersection nodes where there are more than three edges so that additional weight penalties can be imposed by the solve endpoints. (increases the total number of edges). Server default: `false`.

`is_partitioned: String`

Server default: `false`.

`server_id: String`

Indicates which graph server(s) to send the request to. Default is to send to the server with the most available memory.

`use_rtree: String`

Use an range tree structure to accelerate and improve the accuracy of snapping, especially to edges. Server default: `true`.

`label_delimiter: String`

If provided the label string will be split according to this delimiter and each sub-string will be applied as a separate label onto the specified edge.

`allow_multiple_edges: String`

Multigraph choice; allowing multiple edges with the same node pairs if set to true, otherwise, new edges with existing same node pairs will not be inserted. Server default: `true`.

`embedding_table: String`

If table exists (should be generated by the match/graph match\_embedding solver), the vector embeddings for the newly inserted nodes will be appended into this table.

## Implementations

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L8002-L8050)
impl [CreateGraphRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateGraphRequestOptions.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L8004-L8049)
pub fn [to\_map](#method.to_map)(\&self) -> [HashMap](https://doc.rust-lang.org/1.98.1/std/collections/hash/map/struct.HashMap.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>

Converts the set (non-empty) options into the wire-format string map.

## Trait Implementations

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L7942)
impl [Clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html) for [CreateGraphRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateGraphRequestOptions.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L7942)
fn [clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)(\&self) -> [CreateGraphRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateGraphRequestOptions.md)

Returns a duplicate of the value. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)

1.0.0 (const: [unstable](https://github.com/rust-lang/rust/issues/142757)) · [Source](https://doc.rust-lang.org/1.98.1/src/core/clone.rs.html#245-247)
fn [clone\_from](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)(\&mut self, source: \&Self)

Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L7942)
impl [Debug](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html) for [CreateGraphRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateGraphRequestOptions.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L7942)
fn [fmt](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)(\&self, f: \&mut [Formatter](https://doc.rust-lang.org/1.98.1/core/fmt/struct.Formatter.html)\<'\_>) -> [Result](https://doc.rust-lang.org/1.98.1/core/fmt/type.Result.html)

Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L7942)
impl [Default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html) for [CreateGraphRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateGraphRequestOptions.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L7942)
fn [default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)() -> [CreateGraphRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateGraphRequestOptions.md)

Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)


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