> ## 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::ModifyGraphRequest

> gpudb::ModifyGraphRequest — 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#a912d185d316a02e1b1cb366ef352fbcf">GPUdb::modifyGraph</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/modify__graph_8h_source">gpudb/protocol/modify\_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:a73412927d1c4f528cd945e061766dcf1" id="r_a73412927d1c4f528cd945e061766dcf1">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a73412927d1c4f528cd945e061766dcf1">ModifyGraphRequest</a> ()</td>
      </tr>

      <tr className="memdesc:a73412927d1c4f528cd945e061766dcf1">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1ModifyGraphRequest" title="A set of parameters for GPUdb::modifyGraph.">ModifyGraphRequest</a> object with default parameters. <br /></td>
      </tr>

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

      <tr className="memitem:ad950d00fe583517987fbcfcd4624a15f" id="r_ad950d00fe583517987fbcfcd4624a15f">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#ad950d00fe583517987fbcfcd4624a15f">ModifyGraphRequest</a> (const std::string \&graphName\_, 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:ad950d00fe583517987fbcfcd4624a15f">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1ModifyGraphRequest" title="A set of parameters for GPUdb::modifyGraph.">ModifyGraphRequest</a> object with the specified parameters. <br /></td>
      </tr>

      <tr className="separator:ad950d00fe583517987fbcfcd4624a15f">
        <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:a634462b52c98d0aea1a6e5d6b8a2180e" id="r_a634462b52c98d0aea1a6e5d6b8a2180e">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a634462b52c98d0aea1a6e5d6b8a2180e">graphName</a></td>
      </tr>

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

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

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

      <tr className="memdesc:ad210b1bf239d034b294eb94ec85a892b">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Nodes with which to update existing <a className="el" href="#ad210b1bf239d034b294eb94ec85a892b">nodes</a> in graph specified by <a className="el" href="#a634462b52c98d0aea1a6e5d6b8a2180e">graphName</a>. <br /></td>
      </tr>

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

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

      <tr className="memdesc:af8ed14fe384eaeeb24a6aa34479c40db">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Edges with which to update existing <a className="el" href="#af8ed14fe384eaeeb24a6aa34479c40db">edges</a> in graph specified by <a className="el" href="#a634462b52c98d0aea1a6e5d6b8a2180e">graphName</a>. <br /></td>
      </tr>

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

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

      <tr className="memdesc:a8ca1b66c8d81b717de0c96c343aa0d57">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Weights with which to update existing <a className="el" href="#a8ca1b66c8d81b717de0c96c343aa0d57">weights</a> in graph specified by <a className="el" href="#a634462b52c98d0aea1a6e5d6b8a2180e">graphName</a>. <br /></td>
      </tr>

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

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

      <tr className="memdesc:aeb161620f58acc9caa1d380f019e3f12">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Restrictions with which to update existing <a className="el" href="#aeb161620f58acc9caa1d380f019e3f12">restrictions</a> in graph specified by <a className="el" href="#a634462b52c98d0aea1a6e5d6b8a2180e">graphName</a>. <br /></td>
      </tr>

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

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

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

      <tr className="separator:a1465e0bd75fb863e4042d8e795c3fda9">
        <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#a912d185d316a02e1b1cb366ef352fbcf">GPUdb::modifyGraph</a>. </p>
      <p>Update an existing graph network using given nodes, edges, weights, restrictions, and options.</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, and <a href="/content/guides/graph_rest_guide/" target="_top">Graph REST Tutorial</a> before using this endpoint. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/modify__graph_8h_source#l00025">25</a> of file <a className="el" href="/content/api/cpp/modify__graph_8h_source">modify\_graph.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a73412927d1c4f528cd945e061766dcf1">◆ </a></span>ModifyGraphRequest() <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::ModifyGraphRequest::ModifyGraphRequest </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_1ModifyGraphRequest" title="A set of parameters for GPUdb::modifyGraph.">ModifyGraphRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/modify__graph_8h_source#l00030">30</a> of file <a className="el" href="/content/api/cpp/modify__graph_8h_source">modify\_graph.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#ad950d00fe583517987fbcfcd4624a15f">◆ </a></span>ModifyGraphRequest() <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::ModifyGraphRequest::ModifyGraphRequest </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 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_1ModifyGraphRequest" title="A set of parameters for GPUdb::modifyGraph.">ModifyGraphRequest</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 modify. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">nodes\_</td>
                <td>Nodes with which to update existing <span className="em arg">nodes\_</span> in graph specified by <span className="em arg">graphName\_</span>. Review <a href="/content/graph_solver/network_graph_solver/#nodes" target="_top">Nodes</a> for more information. 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 raw values, e.g., '{"{"}9, 10, 11{"}"} AS NODE\_ID'. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">edges\_</td>
                <td>Edges with which to update existing <span className="em arg">edges\_</span> in graph specified by <span className="em arg">graphName\_</span>. Review <a href="/content/graph_solver/network_graph_solver/#edges" target="_top">Edges</a> for more information. 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 raw values, e.g., "{"{"}'family', 'coworker'{"}"} AS EDGE\_LABEL". If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">weights\_</td>
                <td>Weights with which to update existing <span className="em arg">weights\_</span> in graph specified by <span className="em arg">graphName\_</span>. Review <a href="/content/graph_solver/network_graph_solver/#graph-weights" target="_top">Weights</a> for more information. 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 raw values, e.g., '{"{"}4, 15{"}"} AS WEIGHTS\_VALUESPECIFIED'. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">restrictions\_</td>
                <td>Restrictions with which to update existing <span className="em arg">restrictions\_</span> in graph specified by <span className="em arg">graphName\_</span>. Review <a href="/content/graph_solver/network_graph_solver/#graph-restrictions" target="_top">Restrictions</a> for more information. 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 raw values, e.g., '{"{"}0, 0, 0, 1{"}"} AS RESTRICTIONS\_ONOFFCOMPARED'. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. </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#ae19dc32523a8371277797f84666bb962">modify\_graph\_restriction\_threshold\_value</a>: Value-based restriction comparison. Any node or edge with a RESTRICTIONS\_VALUECOMPARED value greater than the <a className="el" href="/content/api/cpp/namespacegpudb#ae19dc32523a8371277797f84666bb962">restriction\_threshold\_value</a> will not be included in the graph. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#af50cd242d9124156fd783c163d724bf5">modify\_graph\_export\_create\_results</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">true</a>, returns the graph topology in the response as arrays. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
                      </ul>

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

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a9322ad5a8960fecd14322fe29f3bb941">modify\_graph\_enable\_graph\_draw</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">true</a>, adds a 'EDGE\_WKTLINE' column identifier to the specified <a className="el" href="/content/api/cpp/namespacegpudb#aaf66d21f5695a282e405dbc923d07f66">graph\_table</a> so the graph can be viewed via WMS; for social and non-geospatial graphs, the 'EDGE\_WKTLINE' column identifier will be populated with spatial coordinates derived from a flattening layout algorithm so the graph can still be viewed. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
                      </ul>

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

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a7ba706dac9f510454b9c0aa5fc204ad2">modify\_graph\_save\_persist</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">true</a>, the graph will be saved in the persist directory (see the <a href="/content/config/" target="_top">config reference</a> for more information). If set to <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">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#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
                      </ul>

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

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a90ab76c0e3f009909964113b37940e3c">modify\_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#a7ba706dac9f510454b9c0aa5fc204ad2">save\_persist</a> is also set to <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">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#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
                      </ul>

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

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#aaf66d21f5695a282e405dbc923d07f66">modify\_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>. This 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#ae951116d1e9e96c68f03293d1309a2b0">modify\_graph\_remove\_label\_only</a>: When RESTRICTIONS on labeled entities requested, if set to true this will NOT delete the entity but only the label associated with the entity. Otherwise (default), it'll delete the label AND the entity. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
                      </ul>

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

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a3563829de4ef0e818b8cf74626cd091d">modify\_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#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
                      </ul>

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

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a387a1f8ae338625e07cb0bf897a1743c">modify\_graph\_turn\_angle</a>: Value in degrees modifies the thresholds for attributing right, left, sharp turns, and intersections. It is the vertical deviation angle from the incoming edge to the intersection node. The larger the value, the larger the threshold for sharp turns and intersections; the smaller the value, the larger the threshold for right and left turns; 0 \< turn\_angle \< 90. The default value is '60'. </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a716b56c9b0246f3f9408ae80ebd4fd1f">modify\_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#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
                      </ul>

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

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#afa959fbc6987a7b01b09a83c062cb7cb">modify\_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#a6c220d3edef61a065d7752f7a28d3b34">modify\_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#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
                      </ul>

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

                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#acb1907fad7cc6aaa54c03696aac67b02">modify\_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/modify__graph_8h_source#l00360">360</a> of file <a className="el" href="/content/api/cpp/modify__graph_8h_source">modify\_graph.h</a>.</p>
      </div>
    </div>

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

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

      <div className="memdoc">
        <p>Edges with which to update existing <a className="el" href="#af8ed14fe384eaeeb24a6aa34479c40db">edges</a> in graph specified by <a className="el" href="#a634462b52c98d0aea1a6e5d6b8a2180e">graphName</a>. </p>
        <p>Review <a href="/content/graph_solver/network_graph_solver/#edges" target="_top">Edges</a> for more information. 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 raw values, e.g., "{"{"}'family', 'coworker'{"}"} AS EDGE\_LABEL". If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/modify__graph_8h_source#l00415">415</a> of file <a className="el" href="/content/api/cpp/modify__graph_8h_source">modify\_graph.h</a>.</p>
      </div>
    </div>

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

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

      <div className="memdoc">
        <p>Name of the graph resource to modify. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/modify__graph_8h_source#l00373">373</a> of file <a className="el" href="/content/api/cpp/modify__graph_8h_source">modify\_graph.h</a>.</p>
      </div>
    </div>

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

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

      <div className="memdoc">
        <p>Nodes with which to update existing <a className="el" href="#ad210b1bf239d034b294eb94ec85a892b">nodes</a> in graph specified by <a className="el" href="#a634462b52c98d0aea1a6e5d6b8a2180e">graphName</a>. </p>
        <p>Review <a href="/content/graph_solver/network_graph_solver/#nodes" target="_top">Nodes</a> for more information. 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 raw values, e.g., '{"{"}9, 10, 11{"}"} AS NODE\_ID'. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/modify__graph_8h_source#l00394">394</a> of file <a className="el" href="/content/api/cpp/modify__graph_8h_source">modify\_graph.h</a>.</p>
      </div>
    </div>

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

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

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

        <ul>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae19dc32523a8371277797f84666bb962">modify\_graph\_restriction\_threshold\_value</a>: Value-based restriction comparison. Any node or edge with a RESTRICTIONS\_VALUECOMPARED value greater than the <a className="el" href="/content/api/cpp/namespacegpudb#ae19dc32523a8371277797f84666bb962">restriction\_threshold\_value</a> will not be included in the graph. </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#af50cd242d9124156fd783c163d724bf5">modify\_graph\_export\_create\_results</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">true</a>, returns the graph topology in the response as arrays. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
            </ul>

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

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a9322ad5a8960fecd14322fe29f3bb941">modify\_graph\_enable\_graph\_draw</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">true</a>, adds a 'EDGE\_WKTLINE' column identifier to the specified <a className="el" href="/content/api/cpp/namespacegpudb#aaf66d21f5695a282e405dbc923d07f66">graph\_table</a> so the graph can be viewed via WMS; for social and non-geospatial graphs, the 'EDGE\_WKTLINE' column identifier will be populated with spatial coordinates derived from a flattening layout algorithm so the graph can still be viewed. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
            </ul>

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

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a7ba706dac9f510454b9c0aa5fc204ad2">modify\_graph\_save\_persist</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">true</a>, the graph will be saved in the persist directory (see the <a href="/content/config/" target="_top">config reference</a> for more information). If set to <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">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#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
            </ul>

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

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a90ab76c0e3f009909964113b37940e3c">modify\_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#a7ba706dac9f510454b9c0aa5fc204ad2">save\_persist</a> is also set to <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">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#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
            </ul>

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

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#aaf66d21f5695a282e405dbc923d07f66">modify\_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>. This 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#ae951116d1e9e96c68f03293d1309a2b0">modify\_graph\_remove\_label\_only</a>: When RESTRICTIONS on labeled entities requested, if set to true this will NOT delete the entity but only the label associated with the entity. Otherwise (default), it'll delete the label AND the entity. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
            </ul>

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

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a3563829de4ef0e818b8cf74626cd091d">modify\_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#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
            </ul>

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

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a387a1f8ae338625e07cb0bf897a1743c">modify\_graph\_turn\_angle</a>: Value in degrees modifies the thresholds for attributing right, left, sharp turns, and intersections. It is the vertical deviation angle from the incoming edge to the intersection node. The larger the value, the larger the threshold for sharp turns and intersections; the smaller the value, the larger the threshold for right and left turns; 0 \< turn\_angle \<

            <ol type="1">
              <li>The default value is '60'. </li>
            </ol>
          </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a716b56c9b0246f3f9408ae80ebd4fd1f">modify\_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#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
            </ul>

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

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#afa959fbc6987a7b01b09a83c062cb7cb">modify\_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#a6c220d3edef61a065d7752f7a28d3b34">modify\_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#a1f3bc632081b751d3512630697e9fb94">modify\_graph\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#aed15081a979a75ad82dc1951457985d5">modify\_graph\_false</a> </li>
            </ul>

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

          <li> <a className="el" href="/content/api/cpp/namespacegpudb#acb1907fad7cc6aaa54c03696aac67b02">modify\_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/modify__graph_8h_source#l00609">609</a> of file <a className="el" href="/content/api/cpp/modify__graph_8h_source">modify\_graph.h</a>.</p>
      </div>
    </div>

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

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

      <div className="memdoc">
        <p>Restrictions with which to update existing <a className="el" href="#aeb161620f58acc9caa1d380f019e3f12">restrictions</a> in graph specified by <a className="el" href="#a634462b52c98d0aea1a6e5d6b8a2180e">graphName</a>. </p>
        <p>Review <a href="/content/graph_solver/network_graph_solver/#graph-restrictions" target="_top">Restrictions</a> for more information. 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 raw values, e.g., '{"{"}0, 0, 0, 1{"}"} AS RESTRICTIONS\_ONOFFCOMPARED'. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/modify__graph_8h_source#l00457">457</a> of file <a className="el" href="/content/api/cpp/modify__graph_8h_source">modify\_graph.h</a>.</p>
      </div>
    </div>

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

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

      <div className="memdoc">
        <p>Weights with which to update existing <a className="el" href="#a8ca1b66c8d81b717de0c96c343aa0d57">weights</a> in graph specified by <a className="el" href="#a634462b52c98d0aea1a6e5d6b8a2180e">graphName</a>. </p>
        <p>Review <a href="/content/graph_solver/network_graph_solver/#graph-weights" target="_top">Weights</a> for more information. 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 raw values, e.g., '{"{"}4, 15{"}"} AS WEIGHTS\_VALUESPECIFIED'. If using raw values in an identifier combination, the number of values specified must match across the combination. Identifier combination(s) do not have to match the method used to create the graph, e.g., if column names were specified to create the graph, expressions or raw values could also be used to modify the graph. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/modify__graph_8h_source#l00436">436</a> of file <a className="el" href="/content/api/cpp/modify__graph_8h_source">modify\_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/modify__graph_8h_source">modify\_graph.h</a></li>
    </ul>
  </div>
</div>
