DAGMixin#

class gufe.protocols.protocoldag.DAGMixin#

Attributes

extends_key

The GufeKey of the ProtocolDAGResult this object extends.

graph

DAG of ProtocolUnit nodes with edges denoting dependencies.

name

Optional identifier.

protocol_units

List of ProtocolUnit s given in DAG-dependency order.

transformation_key

The GufeKey of the Transformation this object performs.

property extends_key: GufeKey | None#

The GufeKey of the ProtocolDAGResult this object extends.

If None, then this object does not extend from a result at all.

This functions as a label, indicating where this object came from. It can be used to reconstruct the set of extension relationships between a collection of ProtocolDAGs.

property graph: networkx.DiGraph#

DAG of ProtocolUnit nodes with edges denoting dependencies.

property name: str | None#

Optional identifier.

property protocol_units: list[ProtocolUnit]#

List of ProtocolUnit s given in DAG-dependency order.

DAG-dependency order guarantees that any task is listed after all of its dependencies.

property transformation_key: GufeKey | None#

The GufeKey of the Transformation this object performs.

If None, then this object was not created from a Transformation. This may be the case when creating a ProtocolDAG from a Protocol directly, without use of a Transformation object.

This functions as a label, indicating where this object came from.