Base class for computing min cost spanning trees or forests.
More...
#include <spanningForest.h>
Base class for computing min cost spanning trees or forests.
Definition at line 43 of file spanningForest.h.
◆ ~SpanningForest()
virtual gum::SpanningForest::~SpanningForest |
( |
| ) |
|
|
virtual |
◆ SpanningForest() [1/2]
gum::SpanningForest::SpanningForest |
( |
| ) |
|
|
protected |
default constructor
You should use SpanningForestPrim or SpanningForestKuskal to create appropriate spanning trees algorithms.
◆ SpanningForest() [2/2]
◆ costOfSpanningForest()
virtual float gum::SpanningForest::costOfSpanningForest |
( |
| ) |
|
|
pure virtual |
Returns the cost of the spanning forest.
- Returns
- cost of the spanning forest
Implemented in gum::SpanningForestPrim.
◆ edgesInSpanningForest()
virtual const EdgeSet& gum::SpanningForest::edgesInSpanningForest |
( |
| ) |
|
|
pure virtual |
Returns the edges in a min cost spanning forest.
- Returns
- edges in the spanning forest
Implemented in gum::SpanningForestPrim.
◆ operator=()
Copy operator.
avoid copying the interface from scratch: this would prevent, in particular, that a Prim algorithm be initialized by a Kruskal algo.
◆ spanningForest()
virtual const UndiGraph& gum::SpanningForest::spanningForest |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: