Declaration of graph operations. More...
Go to the source code of this file.
Namespaces | |
ogdf | |
The namespace for all OGDF objects. | |
Graph operations | |
void | ogdf::cartesianProduct (const Graph &G1, const Graph &G2, Graph &product, NodeMap &nodeInProduct) |
Computes the Cartesian product of G1 and G2 and assigns it to product , with \(E = \{(\langle v_1,w_1\rangle, \langle v_1,w_2\rangle) | (w_1,w_2) \in E_2\} \cup \{(\langle v_1,w_1\rangle, \langle v_2,w_1\rangle) | (v_1,v_2) \in E_1\} \). More... | |
void | ogdf::coNormalProduct (const Graph &G1, const Graph &G2, Graph &product, NodeMap &nodeInProduct) |
Computes the co-normal product of G1 and G2 and assigns it to product , with \(E = \{(\langle v_1,w_1\rangle, \langle v_2,w_2\rangle) | (v_1,v_2) \in E_1 \lor (w_1,w_2) \in E_2\} \). More... | |
void | ogdf::graphProduct (const Graph &G1, const Graph &G2, Graph &product, NodeMap &nodeInProduct, const std::function< void(node, node)> &addEdges) |
Computes the graph product of G1 and G2 , using a given function to add edges. More... | |
void | ogdf::graphUnion (Graph &G1, const Graph &G2) |
Forms the disjoint union of G1 and G2 . More... | |
void | ogdf::graphUnion (Graph &G1, const Graph &G2, NodeArray< node > &map2to1, bool parallelfree=false, bool directed=false) |
Forms the union of G1 and G2 while identifying nodes from G2 with nodes from G1 . More... | |
void | ogdf::lexicographicalProduct (const Graph &G1, const Graph &G2, Graph &product, NodeMap &nodeInProduct) |
Computes the lexicographical product of G1 and G2 and assigns it to product , with \(E = \{(\langle v_1,w_1\rangle, \langle v_2,w_2\rangle) | (v_1,v_2) \in E_1\} \cup \{(\langle v_1,w_1\rangle, \langle v_1,w_2\rangle) | (w_1,w_2) \in E_2\} \). More... | |
void | ogdf::modularProduct (const Graph &G1, const Graph &G2, Graph &product, NodeMap &nodeInProduct) |
Computes the modular product of G1 and G2 and assigns it to product , with \(E = \{(\langle v_1,w_1\rangle, \langle v_2,w_2\rangle) | (v_1,v_2) \in E_1 \land (w_1,w_2) \in E_2\} \cup \{(\langle v_1,w_1\rangle, \langle v_2,w_2\rangle) | (v_1,v_2) \not\in E_1 \land (w_1,w_2) \not\in E_2\} \). More... | |
using | ogdf::NodeMap = NodeArray< NodeArray< node > > |
void | ogdf::rootedProduct (const Graph &G1, const Graph &G2, Graph &product, NodeMap &nodeInProduct, node rootInG2) |
Computes the rooted product of G1 and G2 , rooted in rootInG2 , and assigns it to product . More... | |
void | ogdf::strongProduct (const Graph &G1, const Graph &G2, Graph &product, NodeMap &nodeInProduct) |
Computes the strong product of G1 and G2 and assigns it to product , with \(E = \{(\langle v_1,w_1\rangle, \langle v_1,w_2\rangle) | (w_1,w_2) \in E_2\} \cup \{(\langle v_1,w_1\rangle, \langle v_2,w_1\rangle) | (v_1,v_2) \in E_1\} \cup \{(\langle v_1,w_1\rangle, \langle v_2,w_2\rangle) | (v_1,v_2) \in E_1 \land (w_1,w_2) \in E_2\} \). More... | |
void | ogdf::tensorProduct (const Graph &G1, const Graph &G2, Graph &product, NodeMap &nodeInProduct) |
Computes the tensor product of G1 and G2 and assigns it to product , with \(E = \{(\langle v_1,w_1\rangle, \langle v_2,w_2\rangle) | (v_1,v_2) \in E_1 \land (w_1,w_2) \in E_2\} \). More... | |
Declaration of graph operations.
Definition in file operations.h.