![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
#include <graphChange.h>
Public Member Functions | |
Constructors / Destructors | |
| GraphChange (GraphChangeType type, NodeId node1, NodeId node2) noexcept | |
| default constructor | |
| GraphChange (const GraphChange &from) noexcept | |
| copy constructor | |
| GraphChange (GraphChange &&from) noexcept | |
| move constructor | |
| ~GraphChange () noexcept | |
| destructor | |
Operators | |
| GraphChange & | operator= (const GraphChange &from) noexcept |
| copy constructor | |
| GraphChange & | operator= (GraphChange &&from) noexcept |
| move operator | |
| bool | operator== (const GraphChange &from) const noexcept |
| returns whether two graph changes are identical or not | |
| bool | operator!= (const GraphChange &from) const noexcept |
| returns whether two graph changes are different or not | |
Accessors/Modifiers | |
| GraphChangeType | type () const noexcept |
| returns the type of the operation | |
| NodeId | node1 () const noexcept |
| returns the first node involved in the modification | |
| NodeId | node2 () const noexcept |
| returns the second node involved in the modification | |
| virtual std::string | toString () const |
| put the content of the graph change into a string | |
Private Attributes | |
| GraphChangeType | _type_ |
| the type of modification | |
| NodeId | _node1_ |
| the first node in the edge or arc to be modified | |
| NodeId | _node2_ |
| the second node in the edge or arc to be modified | |
Definition at line 78 of file graphChange.h.
|
noexcept |
default constructor
References node1(), node2(), and type().
Referenced by GraphChange(), GraphChange(), gum::learning::EdgeDeletion::operator!=(), operator!=(), operator=(), operator=(), and operator==().
|
noexcept |
|
noexcept |
|
noexcept |
destructor
|
noexcept |
returns the first node involved in the modification
References node1().
Referenced by gum::learning::ArcAddition::ArcAddition(), gum::learning::ArcDeletion::ArcDeletion(), gum::learning::ArcReversal::ArcReversal(), gum::learning::EdgeAddition::EdgeAddition(), gum::learning::EdgeDeletion::EdgeDeletion(), GraphChange(), gum::learning::GreedyHillClimbing::learnStructure(), gum::learning::LocalSearchWithTabuList::learnStructure(), node1(), gum::learning::ArcAddition::toString(), gum::learning::ArcDeletion::toString(), gum::learning::ArcReversal::toString(), gum::learning::EdgeAddition::toString(), gum::learning::EdgeDeletion::toString(), and toString().
|
noexcept |
returns the second node involved in the modification
References node2(), and toString().
Referenced by gum::learning::ArcAddition::ArcAddition(), gum::learning::ArcDeletion::ArcDeletion(), gum::learning::ArcReversal::ArcReversal(), gum::learning::EdgeAddition::EdgeAddition(), gum::learning::EdgeDeletion::EdgeDeletion(), GraphChange(), gum::learning::GreedyHillClimbing::learnStructure(), gum::learning::LocalSearchWithTabuList::learnStructure(), node2(), gum::learning::ArcAddition::toString(), gum::learning::ArcDeletion::toString(), gum::learning::ArcReversal::toString(), gum::learning::EdgeAddition::toString(), gum::learning::EdgeDeletion::toString(), and toString().
|
noexcept |
returns whether two graph changes are different or not
References GraphChange().
|
noexcept |
|
noexcept |
|
noexcept |
returns whether two graph changes are identical or not
References GraphChange().
|
virtual |
put the content of the graph change into a string
put the content of the GraphChange into a string
Reimplemented in gum::learning::ArcAddition, gum::learning::ArcDeletion, gum::learning::ArcReversal, gum::learning::EdgeAddition, and gum::learning::EdgeDeletion.
Definition at line 62 of file graphChange.cpp.
References gum::learning::ARC_ADDITION, gum::learning::ARC_DELETION, gum::learning::ARC_REVERSAL, gum::learning::EDGE_ADDITION, gum::learning::EDGE_DELETION, GUM_ERROR, node1(), node2(), and type().
Referenced by node2(), and gum::learning::operator<<().
|
noexcept |
returns the type of the operation
References type().
Referenced by GraphChange(), gum::learning::GreedyHillClimbing::learnStructure(), gum::learning::LocalSearchWithTabuList::learnStructure(), toString(), and type().
|
private |
the first node in the edge or arc to be modified
Definition at line 142 of file graphChange.h.
|
private |
the second node in the edge or arc to be modified
Definition at line 145 of file graphChange.h.
|
private |
the type of modification
Definition at line 139 of file graphChange.h.