38#include <unordered_set>
42namespace matching_blossom {
52 std::vector<long>
indexOf(std::vector<node> nodesToFind);
61 const std::unordered_set<node>&
nodes();
Includes declaration of graph class.
Basic declarations, included by all source files.
Class for the representation of edges.
Class for the representation of nodes.
node startNode()
The first node of the cycle in edge order.
std::vector< edge > m_edgeOrder
std::tuple< long, long > indexOf(node u, node v)
Get the indices of the edges before u and v in edge order. For the startNode, size() - 1 is returned.
const std::vector< edge > & edgeOrder()
bool contains(node v)
Whether the cycle contains the node v or not.
std::unordered_set< node > m_nodes
long indexOf(node u)
Get the index of the edge before u in edge order. If u is the startNode, size() - 1 is returned.
const std::unordered_set< node > & nodes()
std::vector< long > indexOf(std::vector< node > nodesToFind)
Get the indices of the edges before nodesToFind in edge order. For the startNode, size() - 1 is retur...
void addEdge(edge e)
Use this method to add edges in cycle order.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
The namespace for all OGDF objects.