Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Python bindings. Part 3
- Loading branch information
1 parent
032937f
commit 38aa771
Showing
4 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
class QgsGraphAnalyzer | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsgraphanalyzer.h> | ||
%End | ||
|
||
public: | ||
/** | ||
* solve shortest path problem using dijkstra algorithm | ||
* @param source The source graph | ||
* @param startVertexIdx index of start vertex | ||
* @param criterionNum index of edge property as optimization criterion | ||
* @param destPointCost array of vertex indexes. Function calculating shortest path costs for vertices with these indexes | ||
* @param cost array of cost paths | ||
* @param treeResult return shortest path tree | ||
*/ | ||
// static void shortestpath( const QgsGraph* source, int startVertexIdx, int criterionNum, const QVector<int>& destPointCost, QVector<double>& cost, QgsGraph* treeResult ); | ||
|
||
/** | ||
* return shortest path tree with root-node in startVertexIdx | ||
* @param source The source graph | ||
* @param startVertexIdx index of start vertex | ||
* @param criterionNum index of edge property as optimization criterion | ||
*/ | ||
static QgsGraph* shortestTree( const QgsGraph* source, int startVertexIdx, int criterionNum ); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters