42 template<
typename EdgeContainer>
46 for (
edge e : matching) {
47 for (
node v : e->nodes()) {
52 if (e->isSelfLoop()) {
63 template<
typename EdgeContainer>
69 for (
edge e : matching) {
70 for (
node v : e->nodes()) {
88 template<
typename EdgeContainer>
91 return isMaximal(graph, matching, ignored);
95 template<
typename EdgeContainer>
101 template<
typename EdgeContainer>
107 template<
typename EdgeContainer>
edge theEdge() const
Returns the edge associated with this adjacency entry.
bool isPerfectMatching(const Graph &graph, const EdgeContainer &matching)
Checks in O(|V| + size of matching) if matching is a perfect matching.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
bool isMaximal(const Graph &graph, const EdgeContainer &matching, edge &addable)
Checks in time O(|E|) if there are edges that could be added to matching.
void findMaximalMatching(const Graph &graph, ArrayBuffer< edge > &matching)
Obtains a maximal matching in O(|E|) time.
internal::GraphObjectContainer< EdgeElement > edges
The container containing all edge objects.
Class for the representation of edges.
Class for the representation of nodes.
Includes declaration of graph class.
bool isMaximalMatching(const Graph &graph, const EdgeContainer &matching)
Checks in O(|V| + |E|) time if matching is a maximal matching.
bool isPerfect(const Graph &graph, const EdgeContainer &matching)
Checks in O(1) if matching (assuming it is a matching and the graph is simple and connected) is perfe...
The namespace for all OGDF objects.
int numberOfNodes() const
Returns the number of nodes in the graph.
Class for adjacency list elements.
bool isMatching(const Graph &graph, const EdgeContainer &matching)
Checks in time O(|V| + size of matching) if the given set of edges represents a matching.