65 return std::format(
"ArcAddition ( {} , {} )",
node1(),
node2());
68 return std::format(
"ArcDeletion ( {} , {} )",
node1(),
node2());
71 return std::format(
"ArcReversal ( {} , {} )",
node1(),
node2());
74 return std::format(
"ArcTriangleDeletion1 ( {} , {} , {} )",
node1(),
node2(),
node3());
77 return std::format(
"ArcTriangleDeletion2 ( {} , {} , {} )",
node1(),
node2(),
node3());
80 return std::format(
"EdgeAddition ( {} , {} )",
node1(),
node2());
83 return std::format(
"EdgeDeletion ( {} , {} )",
node1(),
node2());
87 "Graph modification " << (
int)
type() <<
" is not supported yet in method toString")
109 "Graph modification " << (
int)
type()
110 <<
" is not supported yet in method typeAsString")
Exception : operation not allowed.
std::string typeAsString() const
returns a string corresponding to the type of the change
NodeId node1() const noexcept
returns the first node involved in the modification
GraphChangeType type() const noexcept
returns the type of the operation
NodeId node2() const noexcept
returns the second node involved in the modification
NodeId node3() const
returns the third node involved in the modification (if any)
std::string toString() const
put the content of the graph change into a string
#define GUM_ERROR(type, msg)
the classes to account for structure changes in a graph
A class to account for changes in a graph.
include the inlined functions if necessary
std::ostream & operator<<(std::ostream &stream, const IdCondSet &idset)
the display operator
gum is the global namespace for all aGrUM entities