Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

ShortestPathModule.h
Go to the documentation of this file.
1 
34 #pragma once
35 
36 #include <ogdf/basic/Graph.h>
37 
38 
39 namespace ogdf {
40 
41 
43 {
44 public:
46  virtual ~ShortestPathModule() {}
47 
48  // computes shortest paths
49  // Precond.:
50  // returns true iff a feasible min-cost flow exists
51  virtual bool call(
52  const Graph &G, // directed graph
53  const node s, // source node
54  const EdgeArray<int> &length, // length of an edge
55  NodeArray<int> &d, // contains shortest path distances after call
57  ) = 0;
58 };
59 
60 }
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:492
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
constexpr double pi
The constant .
Definition: Math.h:62
Class for the representation of nodes.
Definition: Graph_d.h:169
Includes declaration of graph class.
The namespace for all OGDF objects.