51template<
typename TCost>
68 return call(graph, weight, s,
t, edgeList,
e_st);
74template<
typename TCost>
86 if (
e_st !=
nullptr) {
89 e_st = m_gc->searchEdge(m_gc->copy(s), m_gc->copy(
t));
98 for (
edge e : m_gc->edges) {
122 }
while (v != source);
Includes declaration of dual graph class.
Declaration of graph copy classes.
Template of base class of min-st-cut algorithms.
Combinatorial embeddings of planar graphs with modification functionality.
Dijkstra's single source shortest path algorithm.
void call(const Graph &G, const EdgeArray< T > &weight, const List< node > &sources, NodeArray< edge > &predecessor, NodeArray< T > &distance, bool directed=false, bool arcsReversed=false, node target=nullptr, T maxLength=std::numeric_limits< T >::max())
Calculates, based on the graph G with corresponding edge costs and source nodes, the shortest paths a...
A dual graph including its combinatorial embedding of an embedded graph.
const edge & primalEdge(edge e) const
Returns the edge in the primal graph corresponding to e.
const node & dualNode(face f) const
Returns the node in the dual graph corresponding to f.
const edge & dualEdge(edge e) const
Returns the edge in the dual graph corresponding to e.
Dynamic arrays indexed with edges.
Class for the representation of edges.
Copies of graphs supporting edge splitting.
Data type for general directed graphs (adjacency list representation).
Doubly linked lists (maintaining the length of the list).
void clear()
Removes all elements from the list.
iterator pushBack(const E &x)
Adds element x at the end of the list.
Min-st-cut algorithm, that calculates the cut by calculating the shortest path between the faces adja...
virtual bool call(const Graph &graph, const EdgeArray< TCost > &weight, node s, node t, List< edge > &edgeList, edge e_st=nullptr) override
The actual algorithm call.
virtual bool call(const Graph &graph, node s, node t, List< edge > &edgeList, edge e_st=nullptr) override
The actual algorithm call.
bool preprocessingDual(const Graph &graph, GraphCopy &gc, CombinatorialEmbedding &CE, node source, node target, edge e_st)
This method preprocesses gc for minstcut calculations, by adding an st-edge if needed and embedding g...
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
Declaration of extended graph algorithms.
Implementation of Dijkstra's single source shortest path algorithm.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.