#include <graphChange.h>
Definition at line 65 of file graphChange.h.
◆ GraphChange() [1/3]
◆ GraphChange() [2/3]
gum::learning::GraphChange::GraphChange |
( |
const GraphChange & |
from | ) |
|
|
noexcept |
◆ GraphChange() [3/3]
gum::learning::GraphChange::GraphChange |
( |
GraphChange && |
from | ) |
|
|
noexcept |
◆ ~GraphChange()
gum::learning::GraphChange::~GraphChange |
( |
| ) |
|
|
noexcept |
◆ node1()
NodeId gum::learning::GraphChange::node1 |
( |
| ) |
const |
|
noexcept |
returns the first node involved in the modification
◆ node2()
NodeId gum::learning::GraphChange::node2 |
( |
| ) |
const |
|
noexcept |
returns the second node involved in the modification
◆ operator!=()
bool gum::learning::GraphChange::operator!= |
( |
const GraphChange & |
from | ) |
const |
|
noexcept |
returns whether two graph changes are different or not
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
bool gum::learning::GraphChange::operator== |
( |
const GraphChange & |
from | ) |
const |
|
noexcept |
returns whether two graph changes are identical or not
◆ toString()
std::string gum::learning::GraphChange::toString |
( |
| ) |
const |
|
virtual |
put the content of the graph change into a string
put the content of the GraphChange into a string
Reimplemented in gum::learning::EdgeDeletion, gum::learning::EdgeAddition, gum::learning::ArcReversal, gum::learning::ArcDeletion, and gum::learning::ArcAddition.
Definition at line 42 of file graphChange.cpp.
References gum::learning::genericBNLearner::Database::Database().
43 std::stringstream stream;
46 stream <<
"ArcAddition ( " <<
node1() <<
" , " <<
node2() <<
" )";
50 stream <<
"ArcDeletion ( " <<
node1() <<
" , " <<
node2() <<
" )";
54 stream <<
"ArcReversal ( " <<
node1() <<
" , " <<
node2() <<
" )";
58 stream <<
"EdgeAddition ( " <<
node1() <<
" , " <<
node2() <<
" )";
62 stream <<
"EdgeDeletion ( " <<
node1() <<
" , " <<
node2() <<
" )";
66 GUM_ERROR(OperationNotAllowed,
"this graph modification is not supported yet")
GraphChangeType type() const noexcept
returns the type of the operation
NodeId node2() const noexcept
returns the second node involved in the modification
#define GUM_ERROR(type, msg)
NodeId node1() const noexcept
returns the first node involved in the modification
◆ type()
returns the type of the operation
◆ _node1_
NodeId gum::learning::GraphChange::_node1_ |
|
private |
the first node in the edge or arc to be modified
Definition at line 129 of file graphChange.h.
◆ _node2_
NodeId gum::learning::GraphChange::_node2_ |
|
private |
the second node in the edge or arc to be modified
Definition at line 132 of file graphChange.h.
◆ _type_
The documentation for this class was generated from the following files: