[#TxGraph-CountDistinctClusters]
= xref:TxGraph.adoc[TxGraph]::CountDistinctClusters
:relfileprefix: ../
:mrdocs:

Count the number of distinct clusters that the specified transactions belong to&period; Refs that do not exist in the queried graph are ignored&period; Refs can not be null&period; The queried graph must not be oversized&period;

== Synopsis

Declared in `&lt;txgraph&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
xref:TxGraph/GraphIndex.adoc[GraphIndex]
CountDistinctClusters(
    std::span&lt;Ref const const*&gt; args,
    xref:TxGraph/Level.adoc[Level] level) noexcept = 0;
----

== Return Value

The number of distinct clusters the transactions belong to&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *args*
| References to the transactions to inspect&period;
| *level*
| Which graph (main or staging) to query&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
