[#cluster_linearize-DepGraph-2constructor-08] = xref:cluster_linearize.adoc[cluster_linearize]::xref:cluster_linearize/DepGraph.adoc[DepGraph]::DepGraph :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<cluster_linearize.h>` Construct an empty graph. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:cluster_linearize/DepGraph/2constructor-07.adoc[DepGraph]() noexcept = default; ---- [.small]#xref:cluster_linearize/DepGraph/2constructor-07.adoc[_» more..._]# Copy‐construct a graph. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:cluster_linearize/DepGraph/2constructor-0517.adoc[DepGraph](xref:cluster_linearize/DepGraph.adoc[DepGraph] const& other) noexcept = default; ---- [.small]#xref:cluster_linearize/DepGraph/2constructor-0517.adoc[_» more..._]# Move‐construct a graph. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:cluster_linearize/DepGraph/2constructor-051d.adoc[DepGraph](xref:cluster_linearize/DepGraph.adoc[DepGraph]&& other) noexcept = default; ---- [.small]#xref:cluster_linearize/DepGraph/2constructor-051d.adoc[_» more..._]# Construct a DepGraph object given another DepGraph and a mapping from old to new. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:cluster_linearize/DepGraph/2constructor-0c.adoc[DepGraph]( xref:cluster_linearize/DepGraph.adoc[DepGraph<SetType>] const& depgraph, std::span<DepGraphIndex const> mapping, xref:cluster_linearize/DepGraphIndex.adoc[DepGraphIndex] pos_range) noexcept; ---- [.small]#xref:cluster_linearize/DepGraph/2constructor-0c.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | The graph to copy from. | *depgraph* | The original DepGraph that is being remapped. | *mapping* | A span such that mapping[i]gives the position in the new DepGraph for position i in the old depgraph. Its size must be equal to depgraph.PositionRange(). The value of mapping[i]is ignored if position i is a hole in depgraph (i.e., if !depgraph.Positions()[i]). | *pos_range* | The PositionRange() for the new DepGraph. It must equal the largest value in mapping for any used position in depgraph plus 1, or 0 if depgraph.TxCount() == 0. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#