<trclass="memitem:aba450cf3f16d9386d043c4354a19a4aa"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classDenseConnectedComponentsFinder.html#aba450cf3f16d9386d043c4354a19a4aa">AddEdge</a> (int node1, int node2)</td></tr>
<trclass="memdesc:aba450cf3f16d9386d043c4354a19a4aa"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The main API is the same as <aclass="el"href="classConnectedComponentsFinder.html"title="Usage: ConnectedComponentsFinder<MyNodeType> cc; cc.AddNode(node1); cc.AddNode(node2); cc....">ConnectedComponentsFinder</a> (below): see the homonymous functions there. <ahref="#aba450cf3f16d9386d043c4354a19a4aa">More...</a><br/></td></tr>
<trclass="memitem:a071f52956431e211e14ed7f3894c1d0b"><tdclass="memItemLeft"align="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classDenseConnectedComponentsFinder.html#a071f52956431e211e14ed7f3894c1d0b">Connected</a> (int node1, int node2)</td></tr>
<trclass="memdesc:a46780e194c525fa9853fa899d69b4340"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the number of nodes in the graph. <ahref="#a46780e194c525fa9853fa899d69b4340">More...</a><br/></td></tr>
<trclass="memdesc:afdcff89dd2374ce33c05934d328e64ec"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the root of the set for the given node. <ahref="#afdcff89dd2374ce33c05934d328e64ec">More...</a><br/></td></tr>
<trclass="memitem:aee7f0057f42256a520b5ef32bae58b36"><tdclass="memItemLeft"align="right"valign="top">std::vector< int > </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classDenseConnectedComponentsFinder.html#aee7f0057f42256a520b5ef32bae58b36">GetComponentIds</a> ()</td></tr>
<trclass="memdesc:aee7f0057f42256a520b5ef32bae58b36"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the same as <aclass="el"href="namespaceutil.html#a13f0e8f7e15873600cf8e395958c71e1"title="Finds the connected components of the graph, using BFS internally.">GetConnectedComponents()</a>. <ahref="#aee7f0057f42256a520b5ef32bae58b36">More...</a><br/></td></tr>
<divclass="textblock"><p>NOTE(user): The rest of the functions below should also be in namespace util, but for historical reasons it hasn't been done yet. </p>
<p>A connected components finder that only works on dense ints. </p>
<pclass="definition">Definition at line <aclass="el"href="connected__components_8h_source.html#l00081">81</a> of file <aclass="el"href="connected__components_8h_source.html">connected_components.h</a>.</p>
</div><h2class="groupheader">Constructor & Destructor Documentation</h2>
<pclass="definition">Definition at line <aclass="el"href="connected__components_8h_source.html#l00083">83</a> of file <aclass="el"href="connected__components_8h_source.html">connected_components.h</a>.</p>
<p>The main API is the same as <aclass="el"href="classConnectedComponentsFinder.html"title="Usage: ConnectedComponentsFinder<MyNodeType> cc; cc.AddNode(node1); cc.AddNode(node2); cc....">ConnectedComponentsFinder</a> (below): see the homonymous functions there. </p>
<p>Returns the root of the set for the given node. </p>
<p>node must be in [0;<aclass="el"href="classDenseConnectedComponentsFinder.html#a317fb43e59ef01ebe3d0d492b4ab33dd">GetNumberOfNodes()</a>-1]. Non-const because it does path compression internally. </p>
<p>Returns the same as <aclass="el"href="namespaceutil.html#a13f0e8f7e15873600cf8e395958c71e1"title="Finds the connected components of the graph, using BFS internally.">GetConnectedComponents()</a>. </p>
<pclass="definition">Definition at line <aclass="el"href="connected__components_8h_source.html#l00095">95</a> of file <aclass="el"href="connected__components_8h_source.html">connected_components.h</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="connected__components_8h_source.html#l00096">96</a> of file <aclass="el"href="connected__components_8h_source.html">connected_components.h</a>.</p>
<p>The graph can only grow: this dies if "num_nodes" is lower or equal to any of the values ever given to <aclass="el"href="classDenseConnectedComponentsFinder.html#aba450cf3f16d9386d043c4354a19a4aa"title="The main API is the same as ConnectedComponentsFinder (below): see the homonymous functions there.">AddEdge()</a>, or lower than a previous value given to <aclass="el"href="classDenseConnectedComponentsFinder.html#a46780e194c525fa9853fa899d69b4340"title="Sets the number of nodes in the graph.">SetNumberOfNodes()</a>. You need this if there are nodes that don't have any edges. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>