![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Base class for computing min cost spanning trees or forests. More...
#include <spanningForest.h>
Public Member Functions | |
Accessors / Modifiers | |
virtual const EdgeSet & | edgesInSpanningForest ()=0 |
Returns the edges in a min cost spanning forest. More... | |
virtual const UndiGraph & | spanningForest ()=0 |
Construct the spanning forest. More... | |
virtual float | costOfSpanningForest ()=0 |
Returns the cost of the spanning forest. More... | |
Constructors / Destructors | |
virtual | ~SpanningForest () |
Destructor. More... | |
SpanningForest () | |
default constructor More... | |
SpanningForest (const SpanningForest &toCopy) | |
Copy constructor. More... | |
SpanningForest & | operator= (const SpanningForest &toCopy) |
Copy operator. More... | |
Base class for computing min cost spanning trees or forests.
Definition at line 42 of file spanningForest.h.
|
virtual |
Destructor.
|
protected |
default constructor
You should use SpanningForestPrim or SpanningForestKuskal to create appropriate spanning trees algorithms.
|
protected |
Copy constructor.
|
pure virtual |
Returns the cost of the spanning forest.
Implemented in gum::SpanningForestPrim.
|
pure virtual |
Returns the edges in a min cost spanning forest.
Implemented in gum::SpanningForestPrim.
|
protected |
Copy operator.
avoid copying the interface from scratch: this would prevent, in particular, that a Prim algorithm be initialized by a Kruskal algo.
|
pure virtual |