QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
The QGis class provides graph analysis functions. More...
#include <qgsgraphanalyzer.h>
Static Public Member Functions | |
static void | dijkstra (const QgsGraph *source, int startVertexIdx, int criterionNum, QVector< int > *resultTree=nullptr, QVector< double > *resultCost=nullptr) |
solve shortest path problem using dijkstra algorithm More... | |
static QgsGraph * | shortestTree (const QgsGraph *source, int startVertexIdx, int criterionNum) |
return shortest path tree with root-node in startVertexIdx More... | |
The QGis class provides graph analysis functions.
Definition at line 31 of file qgsgraphanalyzer.h.
|
static |
solve shortest path problem using dijkstra algorithm
source | The source graph |
startVertexIdx | index of start vertex |
criterionNum | index of arc property as optimization criterion |
resultTree | array represents the shortest path tree. resultTree[ vertexIndex ] == inboundingArcIndex if vertex reacheble and resultTree[ vertexIndex ] == -1 others. |
resultCost | array of cost paths |
Definition at line 29 of file qgsgraphanalyzer.cpp.
|
static |
return shortest path tree with root-node in startVertexIdx
source | The source graph |
startVertexIdx | index of start vertex |
criterionNum | index of edge property as optimization criterion |
Definition at line 90 of file qgsgraphanalyzer.cpp.