Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ShortestPathWithBFM.h
Go to the documentation of this file.
1 
33 #pragma once
34 
36 
37 
38 namespace ogdf {
39 
41 
45 {
46 public:
48 
49  // computes shortest paths
50  // Precond.:
51  //
52  // returns false iff the graph contains a negative cycle
53  virtual bool call(
54  const Graph &G, // directed graph
55  const node s, // source node
56  const EdgeArray<int> &length, // length of an edge
57  NodeArray<int> &d, // contains shortest path distances after call
58  NodeArray<edge> &pi
59  ) override;
60 
61 };
62 
63 
64 } // 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
Declaration of base class of shortest path algorithms including some useful functions dealing with sh...
Computes single-source shortest-paths with Bellman-Ford-Moore&#39;s algorithm.
Class for the representation of nodes.
Definition: Graph_d.h:167
The namespace for all OGDF objects.