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 #include <ogdf/basic/basic.h>
38 
39 namespace ogdf {
40 
41 
43 public:
45 
46  virtual ~ShortestPathModule() { }
47 
48  // computes shortest paths
49  // Precond.:
50  // returns true iff a feasible min-cost flow exists
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) = 0;
56 };
57 
58 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::ShortestPathModule::ShortestPathModule
ShortestPathModule()
Definition: ShortestPathModule.h:44
ogdf::ShortestPathModule
Definition: ShortestPathModule.h:42
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:658
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::ShortestPathModule::~ShortestPathModule
virtual ~ShortestPathModule()
Definition: ShortestPathModule.h:46
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