Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ShortestPathAlgorithms.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/SList.h>
35 #include <ogdf/basic/Graph_d.h>
37 #include <ogdf/basic/NodeArray.h>
38 #include <ogdf/basic/Array.h>
39 
40 
41 namespace ogdf {
42 
44 
50 void bfs_SPAP(const Graph& G, NodeArray<NodeArray<double> >& distance,
51  double edgeCosts);
52 
53 
55 
61 void bfs_SPSS(node s, const Graph& G, NodeArray<double> & distanceArray, double edgeCosts);
62 
63 
65 
73 double dijkstra_SPAP(const GraphAttributes& GA, NodeArray<NodeArray<double> >& shortestPathMatrix);
74 
75 
77 
83 void dijkstra_SPAP(
84  const Graph& G,
85  NodeArray<NodeArray<double> >& shortestPathMatrix,
86  const EdgeArray<double>& edgeCosts);
87 
88 
90 
98 void dijkstra_SPSS(
99  node s,
100  const Graph& G,
101  NodeArray<double>& shortestPathMatrix,
102  const EdgeArray<double>& edgeCosts);
103 
104 
106 
113 void floydWarshall_SPAP(NodeArray<NodeArray<double> >& shortestPathMatrix, const Graph& G);
114 
115 
116 } /* namespace ogdf */
Declaration of singly linked lists and iterators.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
static const int Graph
Definition: GmlParser.h:59
Declaration and implementation of Array class and Array algorithms.
double dijkstra_SPAP(const GraphAttributes &GA, NodeArray< NodeArray< double > > &shortestPathMatrix)
Computes all-pairs shortest paths in GA using Dijkstra&#39;s algorithm.
void bfs_SPAP(const Graph &G, NodeArray< NodeArray< double > > &distance, double edgeCosts)
Computes all-pairs shortest paths in G using breadth-first serach (BFS).
NodeElement * node
The type of nodes.
Definition: Graph_d.h:62
void floydWarshall_SPAP(NodeArray< NodeArray< double > > &shortestPathMatrix, const Graph &G)
Computes all-pairs shortest paths in graph G using Floyd-Warshall&#39;s algorithm.
Declaration and implementation of NodeArray class.
void bfs_SPSS(node s, const Graph &G, NodeArray< double > &distanceArray, double edgeCosts)
Computes single-source shortest paths from s in G using breadth-first search (BFS).
Pure declaration header, find template implementation in Graph.h.
void dijkstra_SPSS(node s, const Graph &G, NodeArray< double > &shortestPathMatrix, const EdgeArray< double > &edgeCosts)
Computes single-source shortest paths from node s in G using Disjkstra&#39;s algorithm.
The namespace for all OGDF objects.