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

> gpudb::RepartitionGraphRequest — 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#ae8df406ae2ed789bb8763e5a94201b23">GPUdb::repartitionGraph</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/repartition__graph_8h_source">gpudb/protocol/repartition\_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:afad28735ace99fe53907cda896619ae2" id="r_afad28735ace99fe53907cda896619ae2">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#afad28735ace99fe53907cda896619ae2">RepartitionGraphRequest</a> ()</td>
      </tr>

      <tr className="memdesc:afad28735ace99fe53907cda896619ae2">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1RepartitionGraphRequest" title="A set of parameters for GPUdb::repartitionGraph.">RepartitionGraphRequest</a> object with default parameters. <br /></td>
      </tr>

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

      <tr className="memitem:a60b49d4a81b9ca3b83f0843ad1f887f3" id="r_a60b49d4a81b9ca3b83f0843ad1f887f3">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a60b49d4a81b9ca3b83f0843ad1f887f3">RepartitionGraphRequest</a> (const std::string \&graphName\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

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

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

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

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

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

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

      <tr className="separator:a9add700a0d6a194e3772e297c11b5efa">
        <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#ae8df406ae2ed789bb8763e5a94201b23">GPUdb::repartitionGraph</a>. </p>
      <p>Rebalances an existing partitioned graph.</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/repartition__graph_8h_source#l00025">25</a> of file <a className="el" href="/content/api/cpp/repartition__graph_8h_source">repartition\_graph.h</a>.</p>
    </div>

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

    <h2 className="memtitle"><span className="permalink"><a href="#a60b49d4a81b9ca3b83f0843ad1f887f3">◆ </a></span>RepartitionGraphRequest() <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::RepartitionGraphRequest::RepartitionGraphRequest </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::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_1RepartitionGraphRequest" title="A set of parameters for GPUdb::repartitionGraph.">RepartitionGraphRequest</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 rebalance. </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#aeb144e2a37f2993c87c302a1459bd45b">repartition\_graph\_new\_graph\_name</a>: If a non-empty value is specified, the original graph will be kept (non-default behavior) and a new balanced graph will be created under this given name. When the value is empty (default), the generated 'balanced' graph will replace the original 'unbalanced' graph under the same graph name. The default value is ''. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a532030c53b8f7f20faa299e07ee5ea14">repartition\_graph\_source\_node</a>: The distributed shortest path solve is run from this source node to all the nodes in the graph to create balanced partitions using the iso-distance levels of the solution. The source node is selected by the rebalance algorithm automatically (default case when the value is an empty string). Otherwise, the user specified node is used as the source. 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/repartition__graph_8h_source#l00073">73</a> of file <a className="el" href="/content/api/cpp/repartition__graph_8h_source">repartition\_graph.h</a>.</p>
      </div>
    </div>

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

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

      <div className="memdoc">
        <p>Name of the graph resource to rebalance. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/repartition__graph_8h_source#l00082">82</a> of file <a className="el" href="/content/api/cpp/repartition__graph_8h_source">repartition\_graph.h</a>.</p>
      </div>
    </div>

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

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

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

        <ul>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#aeb144e2a37f2993c87c302a1459bd45b">repartition\_graph\_new\_graph\_name</a>: If a non-empty value is specified, the original graph will be kept (non-default behavior) and a new balanced graph will be created under this given name. When the value is empty (default), the generated 'balanced' graph will replace the original 'unbalanced' graph under the same graph name. The default value is ''. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a532030c53b8f7f20faa299e07ee5ea14">repartition\_graph\_source\_node</a>: The distributed shortest path solve is run from this source node to all the nodes in the graph to create balanced partitions using the iso-distance levels of the solution. The source node is selected by the rebalance algorithm automatically (default case when the value is an empty string). Otherwise, the user specified node is used as the source. 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/repartition__graph_8h_source#l00107">107</a> of file <a className="el" href="/content/api/cpp/repartition__graph_8h_source">repartition\_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/repartition__graph_8h_source">repartition\_graph.h</a></li>
    </ul>
  </div>
</div>
