Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ShortestPathWithBFM.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/basic/Graph.h>
36 #include <ogdf/basic/basic.h>
38 
39 namespace ogdf {
40 
42 
46 public:
48 
49  // computes shortest paths
50  // Precond.:
51  //
52  // returns false iff the graph contains a negative cycle
53  virtual bool call(const Graph& G, // directed graph
54  const node s, // source node
55  const EdgeArray<int>& length, // length of an edge
56  NodeArray<int>& d, // contains shortest path distances after call
57  NodeArray<edge>& pi) override;
58 };
59 
60 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ShortestPathModule.h
Declaration of base class of shortest path algorithms including some useful functions dealing with sh...
Graph.h
Includes declaration of graph class.
ogdf::ShortestPathModule
Definition: ShortestPathModule.h:42
ogdf::ShortestPathWithBFM::ShortestPathWithBFM
ShortestPathWithBFM()
Definition: ShortestPathWithBFM.h:47
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:658
ogdf::ShortestPathWithBFM
Computes single-source shortest-paths with Bellman-Ford-Moore's algorithm.
Definition: ShortestPathWithBFM.h:45
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:869
ogdf::Math::pi
constexpr double pi
The constant .
Definition: Math.h:63
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::NodeElement
Class for the representation of nodes.
Definition: Graph_d.h:240
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:716