Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ShortestPathWithBFM.h
Go to the documentation of this file.
1
33#pragma once
34
36
37namespace ogdf {
38
40
44public:
46
47 // computes shortest paths
48 // Precond.:
49 //
50 // returns false iff the graph contains a negative cycle
51 virtual bool call(const Graph& G, // directed graph
52 const node s, // source node
53 const EdgeArray<int>& length, // length of an edge
54 NodeArray<int>& d, // contains shortest path distances after call
55 NodeArray<edge>& pi) override;
56};
57
58}
Declaration of base class of shortest path algorithms including some useful functions dealing with sh...
Dynamic arrays indexed with edges.
Definition EdgeArray.h:125
Data type for general directed graphs (adjacency list representation).
Definition Graph_d.h:521
Dynamic arrays indexed with nodes.
Definition NodeArray.h:125
Class for the representation of nodes.
Definition Graph_d.h:177
Computes single-source shortest-paths with Bellman-Ford-Moore's algorithm.
virtual bool call(const Graph &G, const node s, const EdgeArray< int > &length, NodeArray< int > &d, NodeArray< edge > &pi) override
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.