[#cluster_linearize-DepGraph-GetConnectedComponent] = xref:cluster_linearize.adoc[cluster_linearize]::xref:cluster_linearize/DepGraph.adoc[DepGraph]::GetConnectedComponent :relfileprefix: ../../ :mrdocs: Get the connected component within the subset "todo" that contains tx (which must be in todo). == Synopsis Declared in `<cluster_linearize.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- SetType GetConnectedComponent( SetType const& todo, xref:cluster_linearize/DepGraphIndex.adoc[DepGraphIndex] tx) const noexcept; ---- == Description Two transactions are considered connected if they are both in `todo`, and one is an ancestor of the other in the entire graph (so not just within `todo`), or transitively there is a path of transactions connecting them. This does mean that if `todo` contains a transaction and a grandparent, but misses the parent, they will still be part of the same component. Complexity: O(ret.Count()). == Return Value The connected component of tx within todo. == Parameters [cols="1,4"] |=== | Name| Description | *todo* | The subset of positions to search within. | *tx* | A position in todo whose component is returned. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#