Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ShortestPathWithBFM.h
Go to the documentation of this file.
1 
33 #pragma once
34 
36 
37 namespace ogdf {
38 
40 
44 public:
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 }
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ShortestPathModule.h
Declaration of base class of shortest path algorithms including some useful functions dealing with sh...
ogdf::ShortestPathModule
Definition: ShortestPathModule.h:41
ogdf::ShortestPathWithBFM::ShortestPathWithBFM
ShortestPathWithBFM()
Definition: ShortestPathWithBFM.h:45
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:651
ogdf::ShortestPathWithBFM
Computes single-source shortest-paths with Bellman-Ford-Moore's algorithm.
Definition: ShortestPathWithBFM.h:43
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:862
ogdf::Math::pi
constexpr double pi
The constant .
Definition: Math.h:59
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:233
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:709