.. _cpp-causality/DAG: ********************************************************** causality/DAG.hpp ********************************************************** .. default-domain:: cpp .. default-role:: cpp:texpr .. py:currentmodule:: mod .. cpp:namespace:: mod Class ``causality::DAG`` -------------------------------------------------------------------------------------------------------------------------------- .. class:: causality::DAG Representation of a causality DAG over a derivation graph. Synopsis ^^^^^^^^ .. alias:: causality::DAG :maxdepth: 2 :noroot: Details ^^^^^^^ .. cpp:namespace-push:: causality::DAG .. function:: std::shared_ptr getDG() const :returns: the DG this DAG is based on. .. function:: dg::PrintData getPrintData(bool closeBorrowCycles) const :returns: a DG print data object set up to represent the DAG. If `closeBorrowCycles` is `true`, then borrowed vertices have only 1 representation, and the resulting diagram will have a cycle through it. Otherwise, borrowed vertices have 2 representations, one for the borrow and one for the repay. .. cpp:namespace-pop::