|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
76 ~EdgeIndependentSpanningTrees() =
default;
79 bool findOne(
unsigned int k, Solution& f)
const;
82 List<Solution> findAll(
unsigned int k)
const;
85 List<Solution> findAllPerm(
unsigned int k)
const;
105 void findDo(
unsigned int k, std::function<
bool(Solution&)> func)
const;
113 const std::vector<unsigned int>& perm)
const;
116 bool checkNewTree(
const Solution& f1,
const Solution& f2,
unsigned int k)
const;
122 bool checkIndependence(
const std::vector<
NodeArray<adjEntry>>& parents,
unsigned int k)
const;
126 unsigned int p1,
unsigned int p2)
const;
129 bool iterate(
Solution& f,
unsigned int j,
unsigned int k)
const;
132 bool isFinished(
const Solution& f,
unsigned int k)
const;
135 unsigned int createVals(
const Solution& f,
unsigned int k, std::vector<edge>& tree)
const;
138 void clearTree(
Solution& f,
unsigned int j)
const;
141 bool nextSpanningTree(
unsigned int& t, std::vector<edge>& tree)
const;
144 bool pathExists(
const std::vector<edge>& tree,
node v1,
node v2,
unsigned int t)
const;
147 bool isInSubGraph(
const std::vector<edge>& sub,
const edge& e,
unsigned int t)
const;
150 bool createInitialSpanningTrees(
Solution& f,
unsigned int k)
const;
152 bool insertNewTree(
Solution& f,
unsigned int t,
unsigned int j, std::vector<edge>& tree)
const;
155 bool findAndInsertNextTree(
Solution& f,
unsigned int& t,
unsigned int j,
156 std::vector<edge>& tree)
const;
The namespace for all OGDF objects.
Includes declaration of graph class.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
const Graph * m_G
The associated graph.
void setGraph(const Graph &G)
Sets the associated graph.
node m_root
The associated root node.
void setRoot(node root)
Sets the associated root node.
const Graph * getGraph() const
Returns a pointer to the associated graph.
RegisteredArray for nodes, edges and adjEntries of a graph.
Data type for general directed graphs (adjacency list representation).
EdgeIndependentSpanningTrees(const Graph &G, node root)
Creates an instance of edge-independent spanning tree and sets the graph and root node.
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Class for the representation of edges.
Declaration of doubly linked lists and iterators.
Class for the representation of nodes.
EdgeIndependentSpanningTrees(const Graph &G)
Creates an instance of edge-independent spanning tree and sets the graph.
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
EdgeIndependentSpanningTrees()
Creates an instance of edge-independent spanning tree withou associated graph and root.
Calculates k edge-independent spanning trees of a graph.
node getRoot() const
Returns the associated root node.