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

# gpudb::CreateGraphRequest

> gpudb::CreateGraphRequest — Kinetica C++ API

<div className="kinetica-doxygen">
  <div className="contents">
    <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a4055b3b0cd047d5c78f8ab61350e1c4e">GPUdb::createGraph</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/create__graph_8h_source">gpudb/protocol/create\_graph.h</a>></code></p>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Member Functions</h2>
        </td>
      </tr>

      <tr className="memitem:ac460d39f332fbd0e1244cb713376ecc9" id="r_ac460d39f332fbd0e1244cb713376ecc9">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#ac460d39f332fbd0e1244cb713376ecc9">CreateGraphRequest</a> ()</td>
      </tr>

      <tr className="memdesc:ac460d39f332fbd0e1244cb713376ecc9">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateGraphRequest" title="A set of parameters for GPUdb::createGraph.">CreateGraphRequest</a> object with default parameters. <br /></td>
      </tr>

      <tr className="separator:ac460d39f332fbd0e1244cb713376ecc9">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:ad4db70e5092ffc971fe1d602aae1a02e" id="r_ad4db70e5092ffc971fe1d602aae1a02e">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#ad4db70e5092ffc971fe1d602aae1a02e">CreateGraphRequest</a> (const std::string \&graphName\_, const bool directedGraph\_, const std::vector\< std::string > \&nodes\_, const std::vector\< std::string > \&edges\_, const std::vector\< std::string > \&weights\_, const std::vector\< std::string > \&restrictions\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

      <tr className="memdesc:ad4db70e5092ffc971fe1d602aae1a02e">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateGraphRequest" title="A set of parameters for GPUdb::createGraph.">CreateGraphRequest</a> object with the specified parameters. <br /></td>
      </tr>

      <tr className="separator:ad4db70e5092ffc971fe1d602aae1a02e">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Attributes</h2>
        </td>
      </tr>

      <tr className="memitem:a31aaf290507765005989af49848fd23f" id="r_a31aaf290507765005989af49848fd23f">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a31aaf290507765005989af49848fd23f">graphName</a></td>
      </tr>

      <tr className="memdesc:a31aaf290507765005989af49848fd23f">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of the graph resource to generate. <br /></td>
      </tr>

      <tr className="separator:a31aaf290507765005989af49848fd23f">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:ad2b870dbc7fdc90282fbf70f5a23fe47" id="r_ad2b870dbc7fdc90282fbf70f5a23fe47">
        <td className="memItemLeft" align="right" valign="top">bool </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#ad2b870dbc7fdc90282fbf70f5a23fe47">directedGraph</a></td>
      </tr>

      <tr className="memdesc:ad2b870dbc7fdc90282fbf70f5a23fe47">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">If set to <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">true</a>, the graph will be directed. <br /></td>
      </tr>

      <tr className="separator:ad2b870dbc7fdc90282fbf70f5a23fe47">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a016082b6686911bf728aeaf3888cfd3a" id="r_a016082b6686911bf728aeaf3888cfd3a">
        <td className="memItemLeft" align="right" valign="top">std::vector\< std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a016082b6686911bf728aeaf3888cfd3a">nodes</a></td>
      </tr>

      <tr className="memdesc:a016082b6686911bf728aeaf3888cfd3a">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Nodes represent fundamental topological units of a graph. <br /></td>
      </tr>

      <tr className="separator:a016082b6686911bf728aeaf3888cfd3a">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:ad8bebfe81f469aac56d73ee987f995cd" id="r_ad8bebfe81f469aac56d73ee987f995cd">
        <td className="memItemLeft" align="right" valign="top">std::vector\< std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#ad8bebfe81f469aac56d73ee987f995cd">edges</a></td>
      </tr>

      <tr className="memdesc:ad8bebfe81f469aac56d73ee987f995cd">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Edges represent the required fundamental topological unit of a graph that typically connect nodes. <br /></td>
      </tr>

      <tr className="separator:ad8bebfe81f469aac56d73ee987f995cd">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:ac2462c15cd7567eaab797304057ed601" id="r_ac2462c15cd7567eaab797304057ed601">
        <td className="memItemLeft" align="right" valign="top">std::vector\< std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#ac2462c15cd7567eaab797304057ed601">weights</a></td>
      </tr>

      <tr className="memdesc:ac2462c15cd7567eaab797304057ed601">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Weights represent a method of informing the graph solver of the cost of including a given edge in a solution. <br /></td>
      </tr>

      <tr className="separator:ac2462c15cd7567eaab797304057ed601">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:acc3218315619e34e1643d0f17ca81758" id="r_acc3218315619e34e1643d0f17ca81758">
        <td className="memItemLeft" align="right" valign="top">std::vector\< std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#acc3218315619e34e1643d0f17ca81758">restrictions</a></td>
      </tr>

      <tr className="memdesc:acc3218315619e34e1643d0f17ca81758">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Restrictions represent a method of informing the graph solver which edges and/or nodes should be ignored for the solution. <br /></td>
      </tr>

      <tr className="separator:acc3218315619e34e1643d0f17ca81758">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a5f2f9525a8cac90ffbcc242971aceadc" id="r_a5f2f9525a8cac90ffbcc242971aceadc">
        <td className="memItemLeft" align="right" valign="top">std::map\< std::string, std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a5f2f9525a8cac90ffbcc242971aceadc">options</a></td>
      </tr>

      <tr className="memdesc:a5f2f9525a8cac90ffbcc242971aceadc">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Optional parameters. <br /></td>
      </tr>

      <tr className="separator:a5f2f9525a8cac90ffbcc242971aceadc">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <h2 className="groupheader">Detailed Description</h2>

    <div className="textblock">
      <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a4055b3b0cd047d5c78f8ab61350e1c4e">GPUdb::createGraph</a>. </p>
      <p>Creates a new graph network using given nodes, edges, weights, and restrictions.</p>
      <p>IMPORTANT: It's highly recommended that you review the <a href="/content/graph_solver/network_graph_solver/" target="_top">Graphs and Solvers</a> concepts documentation, the <a href="/content/guides/graph_rest_guide/" target="_top">Graph REST Tutorial</a>, and/or some <a href="/content/guides/tags/graph" target="_top">graph examples</a> before using this endpoint. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__graph_8h_source#l00026">26</a> of file <a className="el" href="/content/api/cpp/create__graph_8h_source">create\_graph.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#ac460d39f332fbd0e1244cb713376ecc9">◆ </a></span>CreateGraphRequest() <span className="overload">\[1/2]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::CreateGraphRequest::CreateGraphRequest </td>
                  <td>(</td>

                  <td className="paramname">
                    <span className="paramname">
                      <span className="em" />
                    </span>
                  </td>

                  <td>)</td>

                  <td />
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateGraphRequest" title="A set of parameters for GPUdb::createGraph.">CreateGraphRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__graph_8h_source#l00031">31</a> of file <a className="el" href="/content/api/cpp/create__graph_8h_source">create\_graph.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#ad4db70e5092ffc971fe1d602aae1a02e">◆ </a></span>CreateGraphRequest() <span className="overload">\[2/2]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::CreateGraphRequest::CreateGraphRequest </td>
                  <td>(</td>
                  <td className="paramtype">const std::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">graphName\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const bool</td>
                  <td className="paramname"><span className="paramname"><span className="em">directedGraph\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::vector\< std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">nodes\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::vector\< std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">edges\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::vector\< std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">weights\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::vector\< std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">restrictions\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::map\< std::string, std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">options\_</span></span> )</td>
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1CreateGraphRequest" title="A set of parameters for GPUdb::createGraph.">CreateGraphRequest</a> object with the specified parameters. </p>

        <div className="dl params">
          <div className="dt">Parameters</div>

          <div className="dd">
            <table className="params">
              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">graphName\_</td>
                <td>Name of the graph resource to generate. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">directedGraph\_</td>

                <td>
                  If set to <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">true</a>, the graph will be directed. If set to <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">false</a>, the graph will not be directed. Consult <a href="/content/graph_solver/network_graph_solver/#directed-graphs" target="_top">Directed Graphs</a> for more details. Supported values:

                  <ul>
                    <li> true </li>
                    <li> false </li>
                  </ul>

                  The default value is true.
                </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">nodes\_</td>
                <td>Nodes represent fundamental topological units of a graph. Nodes must be specified using <a href="/content/graph_solver/network_graph_solver/#identifiers" target="_top">identifiers</a>; identifiers are grouped as <a href="/content/graph_solver/network_graph_solver/#id-combos" target="_top">combinations</a>. Identifiers can be used with existing column names, e.g., 'table.column AS NODE\_ID', expressions, e.g., 'ST\_MAKEPOINT(column1, column2) AS NODE\_WKTPOINT', or constant values, e.g., '{"{"}9, 10, 11{"}"} AS NODE\_ID'. If using constant values in an identifier combination, the number of values specified must match across the combination. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">edges\_</td>
                <td>Edges represent the required fundamental topological unit of a graph that typically connect nodes. Edges must be specified using <a href="/content/graph_solver/network_graph_solver/#identifiers" target="_top">identifiers</a>; identifiers are grouped as <a href="/content/graph_solver/network_graph_solver/#id-combos" target="_top">combinations</a>. Identifiers can be used with existing column names, e.g., 'table.column AS EDGE\_ID', expressions, e.g., 'SUBSTR(column, 1, 6) AS EDGE\_NODE1\_NAME', or constant values, e.g., "{"{"}'family', 'coworker'{"}"} AS EDGE\_LABEL". If using constant values in an identifier combination, the number of values specified must match across the combination. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">weights\_</td>
                <td>Weights represent a method of informing the graph solver of the cost of including a given edge in a solution. Weights must be specified using <a href="/content/graph_solver/network_graph_solver/#identifiers" target="_top">identifiers</a>; identifiers are grouped as <a href="/content/graph_solver/network_graph_solver/#id-combos" target="_top">combinations</a>. 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{"}"} AS WEIGHTS\_VALUESPECIFIED'. If using constant values in an identifier combination, the number of values specified must match across the combination. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">restrictions\_</td>
                <td>Restrictions represent a method of informing the graph solver which edges and/or nodes should be ignored for the solution. Restrictions must be specified using <a href="/content/graph_solver/network_graph_solver/#identifiers" target="_top">identifiers</a>; identifiers are grouped as <a href="/content/graph_solver/network_graph_solver/#id-combos" target="_top">combinations</a>. 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. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">options\_</td>

                <td>
                  Optional parameters.

                  <ul>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a417e28ff8866570429f8316aeaa3da2a">create\_graph\_merge\_tolerance</a>: 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. The default value is '1.0E-5'. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a3e5f1b4f55b323f19b1a3dcbe72ff374">create\_graph\_recreate</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">true</a> and the graph (using <span className="em arg">graphName\_</span>) already exists, the graph is deleted and recreated. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a>.
                    </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a11e0b27a923e0799b98d3e4fb3556f84">create\_graph\_save\_persist</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">true</a>, the graph will be saved in the persist directory (see the <a href="/content/config/#config-main-persistence" target="_top">config reference</a> for more information). If set to <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">false</a>, the graph will be removed when the graph server is shutdown. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a>.
                    </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a24454d1b5129edb59f73971954affb01">create\_graph\_add\_table\_monitor</a>: 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 <a className="el" href="/content/api/cpp/namespacegpudb#a11e0b27a923e0799b98d3e4fb3556f84">save\_persist</a> is also set to <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">true</a>, the graph will be fully reconstructed and the table monitors will be reattached. For more details on table monitors, see <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#ab379d6656d94cb2e54be2671ecd05d6c">GPUdb::createTableMonitor</a>. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a>.
                    </li>

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae24dc42aca0219b29bed07d5d9c2f826">create\_graph\_graph\_table</a>: If specified, the created graph is also created as a table with the given name, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a> and meeting <a href="/content/concepts/tables/#table-naming-criteria" target="_top">table naming criteria</a>. The table will have the following identifier columns: 'EDGE\_ID', 'EDGE\_NODE1\_ID', 'EDGE\_NODE2\_ID'. If left blank, no table is created. The default value is ''. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a1586f986bd5f37dc3e7806070f5961e2">create\_graph\_add\_turns</a>: 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). Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a>.
                    </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a072a45120a76033064fd2888df6f1972">create\_graph\_is\_partitioned</a>: Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a>.
                    </li>

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0eb694cde3b39f636045687e318aed15">create\_graph\_server\_id</a>: Indicates which graph server(s) to send the request to. Default is to send to the server with the most available memory. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a564af03011ce5f92e8cf2cd7ed0f870a">create\_graph\_use\_rtree</a>: Use an range tree structure to accelerate and improve the accuracy of snapping, especially to edges. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a>.
                    </li>

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0b1ab95446fabf6535c40eb993f7efec">create\_graph\_label\_delimiter</a>: 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. The default value is ''. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#ae39505f96d21f75fdc2ac96ffb6de000">create\_graph\_allow\_multiple\_edges</a>: 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. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a>.
                    </li>

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad38dcf04662a13366ed41d4b3d9b2c7a">create\_graph\_embedding\_table</a>: 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. The default value is ''. </li>
                  </ul>

                  The default value is an empty map.
                </td>
              </tr>
            </table>
          </div>
        </div>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__graph_8h_source#l00309">309</a> of file <a className="el" href="/content/api/cpp/create__graph_8h_source">create\_graph.h</a>.</p>
      </div>
    </div>

    <h2 className="groupheader">Member Data Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#ad2b870dbc7fdc90282fbf70f5a23fe47">◆ </a></span>directedGraph</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">bool gpudb::CreateGraphRequest::directedGraph</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>If set to <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">true</a>, the graph will be directed. </p>
        <p>If set to <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">false</a>, the graph will not be directed. Consult <a href="/content/graph_solver/network_graph_solver/#directed-graphs" target="_top">Directed Graphs</a> for more details. Supported values: </p>

        <ul>
          <li> true </li>
          <li> false </li>
        </ul>

        <p>The default value is true. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__graph_8h_source#l00338">338</a> of file <a className="el" href="/content/api/cpp/create__graph_8h_source">create\_graph.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#ad8bebfe81f469aac56d73ee987f995cd">◆ </a></span>edges</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::vector\<std::string> gpudb::CreateGraphRequest::edges</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Edges represent the required fundamental topological unit of a graph that typically connect nodes. </p>
        <p>Edges must be specified using <a href="/content/graph_solver/network_graph_solver/#identifiers" target="_top">identifiers</a>; identifiers are grouped as <a href="/content/graph_solver/network_graph_solver/#id-combos" target="_top">combinations</a>. Identifiers can be used with existing column names, e.g., 'table.column AS EDGE\_ID', expressions, e.g., 'SUBSTR(column, 1, 6) AS EDGE\_NODE1\_NAME', or constant values, e.g., "{"{"}'family', 'coworker'{"}"} AS EDGE\_LABEL". If using constant values in an identifier combination, the number of values specified must match across the combination. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__graph_8h_source#l00368">368</a> of file <a className="el" href="/content/api/cpp/create__graph_8h_source">create\_graph.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a31aaf290507765005989af49848fd23f">◆ </a></span>graphName</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::CreateGraphRequest::graphName</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Name of the graph resource to generate. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__graph_8h_source#l00323">323</a> of file <a className="el" href="/content/api/cpp/create__graph_8h_source">create\_graph.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a016082b6686911bf728aeaf3888cfd3a">◆ </a></span>nodes</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::vector\<std::string> gpudb::CreateGraphRequest::nodes</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Nodes represent fundamental topological units of a graph. </p>
        <p>Nodes must be specified using <a href="/content/graph_solver/network_graph_solver/#identifiers" target="_top">identifiers</a>; identifiers are grouped as <a href="/content/graph_solver/network_graph_solver/#id-combos" target="_top">combinations</a>. Identifiers can be used with existing column names, e.g., 'table.column AS NODE\_ID', expressions, e.g., 'ST\_MAKEPOINT(column1, column2) AS NODE\_WKTPOINT', or constant values, e.g., '{"{"}9, 10, 11{"}"} AS NODE\_ID'. If using constant values in an identifier combination, the number of values specified must match across the combination. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__graph_8h_source#l00353">353</a> of file <a className="el" href="/content/api/cpp/create__graph_8h_source">create\_graph.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a5f2f9525a8cac90ffbcc242971aceadc">◆ </a></span>options</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::map\<std::string, std::string> gpudb::CreateGraphRequest::options</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Optional parameters. </p>

        <ul>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a417e28ff8866570429f8316aeaa3da2a">create\_graph\_merge\_tolerance</a>: 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. The default value is '1.0E-5'. </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a3e5f1b4f55b323f19b1a3dcbe72ff374">create\_graph\_recreate</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">true</a> and the graph (using <a className="el" href="#a31aaf290507765005989af49848fd23f">graphName</a>) already exists, the graph is deleted and recreated. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a>.
          </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a11e0b27a923e0799b98d3e4fb3556f84">create\_graph\_save\_persist</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">true</a>, the graph will be saved in the persist directory (see the <a href="/content/config/#config-main-persistence" target="_top">config reference</a> for more information). If set to <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">false</a>, the graph will be removed when the graph server is shutdown. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a>.
          </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a24454d1b5129edb59f73971954affb01">create\_graph\_add\_table\_monitor</a>: 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 <a className="el" href="/content/api/cpp/namespacegpudb#a11e0b27a923e0799b98d3e4fb3556f84">save\_persist</a> is also set to <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">true</a>, the graph will be fully reconstructed and the table monitors will be reattached. For more details on table monitors, see <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#ab379d6656d94cb2e54be2671ecd05d6c">GPUdb::createTableMonitor</a>. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a>.
          </li>

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae24dc42aca0219b29bed07d5d9c2f826">create\_graph\_graph\_table</a>: If specified, the created graph is also created as a table with the given name, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a> and meeting <a href="/content/concepts/tables/#table-naming-criteria" target="_top">table naming criteria</a>. The table will have the following identifier columns: 'EDGE\_ID', 'EDGE\_NODE1\_ID', 'EDGE\_NODE2\_ID'. If left blank, no table is created. The default value is ''. </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a1586f986bd5f37dc3e7806070f5961e2">create\_graph\_add\_turns</a>: 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). Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a>.
          </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a072a45120a76033064fd2888df6f1972">create\_graph\_is\_partitioned</a>: Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a>.
          </li>

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0eb694cde3b39f636045687e318aed15">create\_graph\_server\_id</a>: Indicates which graph server(s) to send the request to. Default is to send to the server with the most available memory. </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a564af03011ce5f92e8cf2cd7ed0f870a">create\_graph\_use\_rtree</a>: Use an range tree structure to accelerate and improve the accuracy of snapping, especially to edges. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a>.
          </li>

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0b1ab95446fabf6535c40eb993f7efec">create\_graph\_label\_delimiter</a>: 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. The default value is ''. </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#ae39505f96d21f75fdc2ac96ffb6de000">create\_graph\_allow\_multiple\_edges</a>: 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. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2c423b784936dedad83dfb7dd78ef7ff">create\_graph\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a3ca8c939d8cfab26776111afb43aad58">create\_graph\_true</a>.
          </li>

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#ad38dcf04662a13366ed41d4b3d9b2c7a">create\_graph\_embedding\_table</a>: 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. The default value is ''. </li>
        </ul>

        <p>The default value is an empty map. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__graph_8h_source#l00527">527</a> of file <a className="el" href="/content/api/cpp/create__graph_8h_source">create\_graph.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#acc3218315619e34e1643d0f17ca81758">◆ </a></span>restrictions</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::vector\<std::string> gpudb::CreateGraphRequest::restrictions</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Restrictions represent a method of informing the graph solver which edges and/or nodes should be ignored for the solution. </p>
        <p>Restrictions must be specified using <a href="/content/graph_solver/network_graph_solver/#identifiers" target="_top">identifiers</a>; identifiers are grouped as <a href="/content/graph_solver/network_graph_solver/#id-combos" target="_top">combinations</a>. 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. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__graph_8h_source#l00400">400</a> of file <a className="el" href="/content/api/cpp/create__graph_8h_source">create\_graph.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#ac2462c15cd7567eaab797304057ed601">◆ </a></span>weights</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::vector\<std::string> gpudb::CreateGraphRequest::weights</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Weights represent a method of informing the graph solver of the cost of including a given edge in a solution. </p>
        <p>Weights must be specified using <a href="/content/graph_solver/network_graph_solver/#identifiers" target="_top">identifiers</a>; identifiers are grouped as <a href="/content/graph_solver/network_graph_solver/#id-combos" target="_top">combinations</a>. 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{"}"} AS WEIGHTS\_VALUESPECIFIED'. If using constant values in an identifier combination, the number of values specified must match across the combination. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/create__graph_8h_source#l00384">384</a> of file <a className="el" href="/content/api/cpp/create__graph_8h_source">create\_graph.h</a>.</p>
      </div>
    </div>

    <hr />

    The documentation for this struct was generated from the following file:

    <ul>
      <li>gpudb/protocol/<a className="el" href="/content/api/cpp/create__graph_8h_source">create\_graph.h</a></li>
    </ul>
  </div>
</div>
