73 bool findOne(
unsigned int k,
Solution &f)
const;
105 void findDo(
unsigned int k, std::function<
bool(
Solution&)> func)
const;
112 bool checkOnePermUnequal(
const Solution &f1,
const Solution &f2,
const std::vector<unsigned int> &perm)
const;
115 bool checkNewTree(
const Solution &f1,
const Solution &f2,
unsigned int k)
const;
121 bool checkIndependence(
const std::vector<
NodeArray<adjEntry>> &parents,
unsigned int k)
const;
124 bool checkTwoPathIndependence(
const std::vector<
NodeArray<adjEntry>> &parents,
node v,
unsigned int p1,
unsigned int p2)
const;
127 bool iterate(
Solution &f,
unsigned int j,
unsigned int k)
const;
130 bool isFinished(
const Solution &f,
unsigned int k)
const;
133 unsigned int createVals(
const Solution &f,
unsigned int k, std::vector<edge> &
tree)
const;
136 void clearTree(
Solution &f,
unsigned int j)
const;
139 bool nextSpanningTree(
unsigned int &t, std::vector<edge> &
tree)
const;
142 bool pathExists(
const std::vector<edge> &
tree,
node v1,
node v2,
unsigned int t)
const;
145 bool isInSubGraph(
const std::vector<edge> &sub,
const edge &e,
unsigned int t)
const;
148 bool createInitialSpanningTrees(
Solution &f,
unsigned int k)
const;
150 bool insertNewTree(
Solution &f,
unsigned int t,
unsigned int j, std::vector<edge> &
tree)
const;
153 bool findAndInsertNextTree(
Solution &f,
unsigned int &t,
unsigned int j, std::vector<edge> &
tree)
const;
EdgeIndependentSpanningTrees(const Graph &G, node root)
Creates an instance of edge-independent spanning tree and sets the graph and root node...
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
const Graph * getGraph() const
Returns a pointer to the associated graph.
node firstNode() const
Returns the first node in the list of all nodes.
EdgeIndependentSpanningTrees()
Creates an instance of edge-independent spanning tree withou associated graph and root...
void setRoot(node root)
Sets the associated root node.
EdgeIndependentSpanningTrees(const Graph &G)
Creates an instance of edge-independent spanning tree and sets the graph.
Dynamic arrays indexed with edges.
Dynamic arrays indexed with nodes.
Declaration and implementation of EdgeArray class.
void setGraph(const Graph &G)
Sets the associated graph.
Doubly linked lists (maintaining the length of the list).
Class for the representation of edges.
Class for the representation of nodes.
node m_root
The associated root node.
const Graph * m_G
The associated graph.
Calculates k edge-independent spanning trees of a graph.
node getRoot() const
Returns the associated root node.
for every hyperedge e a minimal subcubic tree connecting all hypernodes incident with e together is a...
The namespace for all OGDF objects.
bool empty() const
Returns true iff the graph is empty, i.e., contains no nodes.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
Declaration of doubly linked lists and iterators.