QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
This class implements a graph edge. More...
#include <qgsgraph.h>
Public Member Functions | |
QgsGraphEdge ()=default | |
Constructor for QgsGraphEdge. More... | |
QVariant | cost (int strategyIndex) const |
Returns edge cost calculated using specified strategy. More... | |
int | fromVertex () const |
Returns the index of the vertex at the start of this edge. More... | |
QVector< QVariant > | strategies () const |
Returns array of available strategies. More... | |
int | toVertex () const |
Returns the index of the vertex at the end of this edge. More... | |
Friends | |
class | QgsGraph |
|
default |
Constructor for QgsGraphEdge.
QVariant QgsGraphEdge::cost | ( | int | strategyIndex | ) | const |
Returns edge cost calculated using specified strategy.
strategyIndex | strategy index |
Definition at line 78 of file qgsgraph.cpp.
int QgsGraphEdge::fromVertex | ( | ) | const |
Returns the index of the vertex at the start of this edge.
Definition at line 88 of file qgsgraph.cpp.
QVector< QVariant > QgsGraphEdge::strategies | ( | ) | const |
Returns array of available strategies.
Definition at line 83 of file qgsgraph.cpp.
int QgsGraphEdge::toVertex | ( | ) | const |
Returns the index of the vertex at the end of this edge.
Definition at line 93 of file qgsgraph.cpp.
|
friend |
Definition at line 82 of file qgsgraph.h.