![]() |
aGrUM 3.1.1
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. | |
| virtual const UndiGraph & | spanningForest ()=0 |
| Construct the spanning forest. | |
| virtual float | costOfSpanningForest ()=0 |
| Returns the cost of the spanning forest. | |
Constructors / Destructors | |
| virtual | ~SpanningForest () |
| Destructor. | |
| SpanningForest () | |
| default constructor | |
| SpanningForest (const SpanningForest &toCopy) | |
| Copy constructor. | |
| SpanningForest & | operator= (const SpanningForest &toCopy) |
| Copy operator. | |
Base class for computing min cost spanning trees or forests.
Definition at line 61 of file spanningForest.h.
|
virtual |
Destructor.
|
protected |
default constructor
You should use SpanningForestPrim or SpanningForestKuskal to create appropriate spanning trees algorithms.
Referenced by SpanningForest(), gum::SpanningForestPrim::SpanningForestPrim(), gum::SpanningForestPrim::SpanningForestPrim(), gum::SpanningForestPrim::SpanningForestPrim(), and operator=().
|
protected |
|
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.
References SpanningForest().
|
pure virtual |