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

# queryGraph

<div className="kinetica-doxygen">
  <div id="aa19b2032dbef0fd308b55202fcb738fa" />

  <h2 className="memtitle"><span className="permalink"><a href="#aa19b2032dbef0fd308b55202fcb738fa">◆ </a></span>queryGraph() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">QueryGraphResponse</a> gpudb::GPUdb::queryGraph </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphRequest">QueryGraphRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Employs a topological query on a graph generated a-priori by <a className="el" href="#a4055b3b0cd047d5c78f8ab61350e1c4e">createGraph</a> and returns a list of adjacent edge(s) or node(s), also known as an adjacency list, depending on what's been provided to the endpoint; providing edges will return nodes and providing nodes will return edges. </p>
      <p>To determine the node(s) or edge(s) adjacent to a value from a given column, provide a list of values to <a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphRequest#a8b2317188945fb7342e569296c876a4a">queries</a>. This field can be populated with column values from any table as long as the type is supported by the given identifier. See <a href="/content/graph_solver/network_graph_solver/#query-identifiers" target="_top">Query Identifiers</a> for more information.</p>
      <p>To return the adjacency list in the response, leave <a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphRequest#a3be4a716bb21623b98e4dfa4392d9b0e">adjacencyTable</a> empty.</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-query" target="_top">/match/graph examples</a> before using this endpoint.</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">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a08bbe4ff8674e31412e17280c1bc783e" />

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

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">QueryGraphResponse</a> & gpudb::GPUdb::queryGraph </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphRequest">QueryGraphRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

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

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">QueryGraphResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Employs a topological query on a graph generated a-priori by <a className="el" href="#a4055b3b0cd047d5c78f8ab61350e1c4e">createGraph</a> and returns a list of adjacent edge(s) or node(s), also known as an adjacency list, depending on what's been provided to the endpoint; providing edges will return nodes and providing nodes will return edges. </p>
      <p>To determine the node(s) or edge(s) adjacent to a value from a given column, provide a list of values to <a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphRequest#a8b2317188945fb7342e569296c876a4a">queries</a>. This field can be populated with column values from any table as long as the type is supported by the given identifier. See <a href="/content/graph_solver/network_graph_solver/#query-identifiers" target="_top">Query Identifiers</a> for more information.</p>
      <p>To return the adjacency list in the response, leave <a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphRequest#a3be4a716bb21623b98e4dfa4392d9b0e">adjacencyTable</a> empty.</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-query" target="_top">/match/graph examples</a> before using this endpoint.</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">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="adc39e9e087081da5e5da059ccf682b34" />

  <h2 className="memtitle"><span className="permalink"><a href="#adc39e9e087081da5e5da059ccf682b34">◆ </a></span>queryGraph() <span className="overload">\[3/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">QueryGraphResponse</a> gpudb::GPUdb::queryGraph </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">queries</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::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">adjacencyTable</span></span>, </td>
        </tr>

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

          <td />

          <td className="paramtype">const int32\_t</td>
          <td className="paramname"><span className="paramname"><span className="em">rings</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> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Employs a topological query on a graph generated a-priori by <a className="el" href="#a025f78582e1d24c590888a3d29e19f36">createGraph</a> and returns a list of adjacent edge(s) or node(s), also known as an adjacency list, depending on what's been provided to the endpoint; providing edges will return nodes and providing nodes will return edges. </p>
      <p>To determine the node(s) or edge(s) adjacent to a value from a given column, provide a list of values to <span className="em arg">queries</span>. This field can be populated with column values from any table as long as the type is supported by the given identifier. See <a href="/content/graph_solver/network_graph_solver/#query-identifiers" target="_top">Query Identifiers</a> for more information.</p>
      <p>To return the adjacency list in the response, leave <span className="em arg">adjacencyTable</span> empty.</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-query" target="_top">/match/graph examples</a> before using this endpoint.</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 query. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">queries</td>
              <td>Nodes or edges to be queried specified using <a href="/content/graph_solver/network_graph_solver/#query-identifiers" target="_top">query identifiers</a>. Identifiers can be used with existing column names, e.g., 'table.column AS QUERY\_NODE\_ID', raw values, e.g., '{"{"}0, 2{"}"} AS QUERY\_NODE\_ID', or expressions, e.g., 'ST\_MAKEPOINT(table.x, table.y) AS QUERY\_NODE\_WKTPOINT'. Multiple values can be provided as long as the same identifier is used for all values. If using raw 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>Additional restrictions to apply to the nodes/edges of an existing graph. 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. The default value is an empty vector. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">adjacencyTable</td>
              <td>Name of the table to store the resulting adjacencies, 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>. If left blank, the query results are instead returned in the response. If the 'QUERY\_TARGET\_NODE\_LABEL' <a href="/content/graph_solver/network_graph_solver/#query-identifiers" target="_top">query identifier</a> is used in <span className="em arg">queries</span>, then two additional columns will be available: 'PATH\_ID' and 'RING\_ID'. See <a href="/content/graph_solver/network_graph_solver/#using-labels" target="_top">Using Labels</a> for more information. The default value is ''. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">rings</td>
              <td>Sets the number of rings around the node to query for adjacency, with '1' being the edges directly attached to the queried node. Also known as number of hops. For example, if it is set to '2', the edge(s) directly attached to the queried node(s) will be returned; in addition, the edge(s) attached to the node(s) attached to the initial ring of edge(s) surrounding the queried node(s) will be returned. If the value is set to '0', any nodes that meet the criteria in <span className="em arg">queries</span> and <span className="em arg">restrictions</span> will be returned. This parameter is only applicable when querying nodes. The default value is 1. </td>
            </tr>

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

              <td>
                Additional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a1dcd1e4aa5331b29f656ec75cfddc0b1">query\_graph\_force\_undirected</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">true</a>, all inbound edges and outbound edges relative to the node will be returned. If set to <a className="el" href="/content/api/cpp/namespacegpudb#a77fd961bc121320757340b18ae256129">false</a>, only outbound edges relative to the node will be returned. This parameter is only applicable if the queried graph <span className="em arg">graphName</span> is directed and when querying nodes. Consult <a href="/content/graph_solver/network_graph_solver/#directed-graphs" target="_top">Directed Graphs</a> for more details. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">query\_graph\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a77fd961bc121320757340b18ae256129">query\_graph\_false</a> </li>
                    </ul>

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

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#af9f4cf4858229ecd6fbb88d2e807a696">query\_graph\_limit</a>: When specified (>0), limits the number of query results. The size of the nodes table will be limited by the <a className="el" href="/content/api/cpp/namespacegpudb#af9f4cf4858229ecd6fbb88d2e807a696">limit</a> value. The default value is '0'. </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a56c6520637ee893244d5c5d7a9d053e3">query\_graph\_output\_wkt\_path</a>: If true then concatenated wkt line segments will be added as the WKT column of the adjacency table. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">query\_graph\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a77fd961bc121320757340b18ae256129">query\_graph\_false</a> </li>
                    </ul>

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

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a152343177fe41887b1f2c8f7ea51a686">query\_graph\_and\_labels</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">true</a>, the result of the query has entities that satisfy all of the target labels, instead of any. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">query\_graph\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a77fd961bc121320757340b18ae256129">query\_graph\_false</a> </li>
                    </ul>

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

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ac82b78326aa02649f70af36c7f378b6a">query\_graph\_server\_id</a>: Indicates which graph server(s) to send the request to. Default is to send to the server, amongst those containing the corresponding graph, that has the most computational bandwidth. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0eb7ba53622df90830d072d4ada6b84b">query\_graph\_output\_charn\_length</a>: When specified (>0 and \<=256), limits the number of char length on the output tables for string based nodes. The default length is 64. The default value is '64'. </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a57bf4d6470e8662acd69f93096a48dc1">query\_graph\_find\_common\_labels</a>: If set to true, for many-to-many queries or multi-level traversals, it lists the common labels between the source and target nodes and edge labels in each path. Otherwise (zero rings), it'll list all labels of the node(s) queried. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">query\_graph\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a77fd961bc121320757340b18ae256129">query\_graph\_false</a> </li>
                    </ul>

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

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

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a32d2c3902b783544cd574005eb34d075" />

  <h2 className="memtitle"><span className="permalink"><a href="#a32d2c3902b783544cd574005eb34d075">◆ </a></span>queryGraph() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">QueryGraphResponse</a> & gpudb::GPUdb::queryGraph </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">queries</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::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">adjacencyTable</span></span>, </td>
        </tr>

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

          <td />

          <td className="paramtype">const int32\_t</td>
          <td className="paramname"><span className="paramname"><span className="em">rings</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>

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

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">QueryGraphResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Employs a topological query on a graph generated a-priori by <a className="el" href="#a025f78582e1d24c590888a3d29e19f36">createGraph</a> and returns a list of adjacent edge(s) or node(s), also known as an adjacency list, depending on what's been provided to the endpoint; providing edges will return nodes and providing nodes will return edges. </p>
      <p>To determine the node(s) or edge(s) adjacent to a value from a given column, provide a list of values to <span className="em arg">queries</span>. This field can be populated with column values from any table as long as the type is supported by the given identifier. See <a href="/content/graph_solver/network_graph_solver/#query-identifiers" target="_top">Query Identifiers</a> for more information.</p>
      <p>To return the adjacency list in the response, leave <span className="em arg">adjacencyTable</span> empty.</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-query" target="_top">/match/graph examples</a> before using this endpoint.</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 query. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">queries</td>
              <td>Nodes or edges to be queried specified using <a href="/content/graph_solver/network_graph_solver/#query-identifiers" target="_top">query identifiers</a>. Identifiers can be used with existing column names, e.g., 'table.column AS QUERY\_NODE\_ID', raw values, e.g., '{"{"}0, 2{"}"} AS QUERY\_NODE\_ID', or expressions, e.g., 'ST\_MAKEPOINT(table.x, table.y) AS QUERY\_NODE\_WKTPOINT'. Multiple values can be provided as long as the same identifier is used for all values. If using raw 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>Additional restrictions to apply to the nodes/edges of an existing graph. 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. The default value is an empty vector. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">adjacencyTable</td>
              <td>Name of the table to store the resulting adjacencies, 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>. If left blank, the query results are instead returned in the response. If the 'QUERY\_TARGET\_NODE\_LABEL' <a href="/content/graph_solver/network_graph_solver/#query-identifiers" target="_top">query identifier</a> is used in <span className="em arg">queries</span>, then two additional columns will be available: 'PATH\_ID' and 'RING\_ID'. See <a href="/content/graph_solver/network_graph_solver/#using-labels" target="_top">Using Labels</a> for more information. The default value is ''. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">rings</td>
              <td>Sets the number of rings around the node to query for adjacency, with '1' being the edges directly attached to the queried node. Also known as number of hops. For example, if it is set to '2', the edge(s) directly attached to the queried node(s) will be returned; in addition, the edge(s) attached to the node(s) attached to the initial ring of edge(s) surrounding the queried node(s) will be returned. If the value is set to '0', any nodes that meet the criteria in <span className="em arg">queries</span> and <span className="em arg">restrictions</span> will be returned. This parameter is only applicable when querying nodes. The default value is 1. </td>
            </tr>

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

              <td>
                Additional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a1dcd1e4aa5331b29f656ec75cfddc0b1">query\_graph\_force\_undirected</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">true</a>, all inbound edges and outbound edges relative to the node will be returned. If set to <a className="el" href="/content/api/cpp/namespacegpudb#a77fd961bc121320757340b18ae256129">false</a>, only outbound edges relative to the node will be returned. This parameter is only applicable if the queried graph <span className="em arg">graphName</span> is directed and when querying nodes. Consult <a href="/content/graph_solver/network_graph_solver/#directed-graphs" target="_top">Directed Graphs</a> for more details. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">query\_graph\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a77fd961bc121320757340b18ae256129">query\_graph\_false</a> </li>
                    </ul>

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

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#af9f4cf4858229ecd6fbb88d2e807a696">query\_graph\_limit</a>: When specified (>0), limits the number of query results. The size of the nodes table will be limited by the <a className="el" href="/content/api/cpp/namespacegpudb#af9f4cf4858229ecd6fbb88d2e807a696">limit</a> value. The default value is '0'. </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a56c6520637ee893244d5c5d7a9d053e3">query\_graph\_output\_wkt\_path</a>: If true then concatenated wkt line segments will be added as the WKT column of the adjacency table. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">query\_graph\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a77fd961bc121320757340b18ae256129">query\_graph\_false</a> </li>
                    </ul>

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

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a152343177fe41887b1f2c8f7ea51a686">query\_graph\_and\_labels</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">true</a>, the result of the query has entities that satisfy all of the target labels, instead of any. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">query\_graph\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a77fd961bc121320757340b18ae256129">query\_graph\_false</a> </li>
                    </ul>

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

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ac82b78326aa02649f70af36c7f378b6a">query\_graph\_server\_id</a>: Indicates which graph server(s) to send the request to. Default is to send to the server, amongst those containing the corresponding graph, that has the most computational bandwidth. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a0eb7ba53622df90830d072d4ada6b84b">query\_graph\_output\_charn\_length</a>: When specified (>0 and \<=256), limits the number of char length on the output tables for string based nodes. The default length is 64. The default value is '64'. </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a57bf4d6470e8662acd69f93096a48dc1">query\_graph\_find\_common\_labels</a>: If set to true, for many-to-many queries or multi-level traversals, it lists the common labels between the source and target nodes and edge labels in each path. Otherwise (zero rings), it'll list all labels of the node(s) queried. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#aa1cd1170a7b667692ad0549777c7e1f2">query\_graph\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a77fd961bc121320757340b18ae256129">query\_graph\_false</a> </li>
                    </ul>

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

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

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1QueryGraphResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
