Skip to main content
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,

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

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

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more