Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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
56  NodeArray<edge> &pi
57  ) = 0;
58 
59 };
60 
61 
62 } // end namespace ogdf
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:472
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Class for the representation of nodes.
Definition: Graph_d.h:167
Includes declaration of graph class.
The namespace for all OGDF objects.