aGrUM  0.16.0
spanningForest.h
Go to the documentation of this file.
1 
28 #ifndef GUM_SPANNING_FOREST_H
29 #define GUM_SPANNING_FOREST_H
30 #include <agrum/agrum.h>
31 
33 #include <agrum/graphs/undiGraph.h>
34 
35 namespace gum {
36 
37  /* ===========================================================================
38  */
41  /* ===========================================================================
42  */
44  public:
45  // ############################################################################
47  // ############################################################################
49 
51  virtual ~SpanningForest();
52 
54 
55  // ############################################################################
57  // ############################################################################
59 
61 
62  virtual const EdgeSet& edgesInSpanningForest() = 0;
63 
65 
66  virtual const UndiGraph& spanningForest() = 0;
67 
69 
70  virtual float costOfSpanningForest() = 0;
71 
73 
74  protected:
75  // ############################################################################
77  // ############################################################################
79 
81 
84 
86  SpanningForest(const SpanningForest& toCopy);
87 
89 
91  SpanningForest& operator=(const SpanningForest& toCopy);
92 
94  };
95 
96 } /* namespace gum */
97 
98 #endif /* GUM_SPANNING_FOREST_H */
SpanningForest()
default constructor
SpanningForest & operator=(const SpanningForest &toCopy)
Copy operator.
virtual ~SpanningForest()
Destructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
virtual const EdgeSet & edgesInSpanningForest()=0
Returns the edges in a min cost spanning forest.
virtual float costOfSpanningForest()=0
Returns the cost of the spanning forest.
Base class for undirected graphs.
Definition: undiGraph.h:109
virtual const UndiGraph & spanningForest()=0
Construct the spanning forest.
Base class for computing min cost spanning trees or forests.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.