Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ShortestPathModule.h
Go to the documentation of this file.
1 
34 #pragma once
35 
36 #include <ogdf/basic/Graph.h>
37 
38 namespace ogdf {
39 
40 
42 public:
44 
45  virtual ~ShortestPathModule() { }
46 
47  // computes shortest paths
48  // Precond.:
49  // returns true iff a feasible min-cost flow exists
50  virtual bool call(const Graph& G, // directed graph
51  const node s, // source node
52  const EdgeArray<int>& length, // length of an edge
53  NodeArray<int>& d, // contains shortest path distances after call
54  NodeArray<edge>& pi) = 0;
55 };
56 
57 }
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
Graph.h
Includes declaration of graph class.
ogdf::ShortestPathModule::ShortestPathModule
ShortestPathModule()
Definition: ShortestPathModule.h:43
ogdf::ShortestPathModule
Definition: ShortestPathModule.h:41
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:651
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::ShortestPathModule::~ShortestPathModule
virtual ~ShortestPathModule()
Definition: ShortestPathModule.h:45
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