[#cluster_linearize-DepGraph-2constructor-08]
= xref:cluster_linearize.adoc[cluster&lowbar;linearize]::xref:cluster_linearize/DepGraph.adoc[DepGraph]::DepGraph
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;cluster&lowbar;linearize&period;h&gt;`

Construct an empty graph&period;


[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&period;&period;&period;_]#

Copy&hyphen;construct a graph&period;


[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&period;&period;&period;_]#

Move&hyphen;construct a graph&period;


[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&period;&period;&period;_]#

Construct a DepGraph object given another DepGraph and a mapping from old to new&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:cluster_linearize/DepGraph/2constructor-0c.adoc[DepGraph](
    xref:cluster_linearize/DepGraph.adoc[DepGraph&lt;SetType&gt;] const& depgraph,
    std::span&lt;DepGraphIndex const&gt; mapping,
    xref:cluster_linearize/DepGraphIndex.adoc[DepGraphIndex] pos&lowbar;range) noexcept;
----

[.small]#xref:cluster_linearize/DepGraph/2constructor-0c.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The graph to copy from&period;
| *depgraph*
| The original DepGraph that is being remapped&period;
| *mapping*
| A span such that mapping&lsqb;i&rsqb;gives the position in the new DepGraph for position i in the old depgraph&period; Its size must be equal to depgraph&period;PositionRange()&period; The value of mapping&lsqb;i&rsqb;is ignored if position i is a hole in depgraph (i&period;e&period;, if !depgraph&period;Positions()&lsqb;i&rsqb;)&period;
| *pos&lowbar;range*
| The PositionRange() for the new DepGraph&period; It must equal the largest value in mapping for any used position in depgraph plus 1, or 0 if depgraph&period;TxCount() &equals;&equals; 0&period;
|===


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