Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ShortestPathWithBFM.h
Go to the documentation of this file.
1
33#pragma once
34
35#include <ogdf/basic/Graph.h>
36#include <ogdf/basic/basic.h>
38
39namespace ogdf {
40
42
46public:
48
49 // computes shortest paths
50 // Precond.:
51 //
52 // returns false iff the graph contains a negative cycle
53 virtual bool call(const Graph& G, // directed graph
54 const node s, // source node
55 const EdgeArray<int>& length, // length of an edge
56 NodeArray<int>& d, // contains shortest path distances after call
57 NodeArray<edge>& pi) override;
58};
59
60}
Includes declaration of graph class.
Declaration of base class of shortest path algorithms including some useful functions dealing with sh...
Basic declarations, included by all source files.
Data type for general directed graphs (adjacency list representation).
Definition Graph_d.h:866
Class for the representation of nodes.
Definition Graph_d.h:241
Computes single-source shortest-paths with Bellman-Ford-Moore's algorithm.
virtual bool call(const Graph &G, const node s, const EdgeArray< int > &length, NodeArray< int > &d, NodeArray< edge > &pi) override
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition Graph_d.h:717
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition Graph_d.h:659
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
The namespace for all OGDF objects.