|
QGIS API Documentation 3.99.0-Master (f78f5286a64)
|
Represents an edge in a graph. More...
#include <qgsgraph.h>
Public Member Functions | |
| QgsGraphEdge ()=default | |
| QVariant | cost (int strategyIndex) const |
| Returns edge cost calculated using specified strategy. | |
| int | fromVertex () const |
| Returns the index of the vertex at the start of this edge. | |
| QVector< QVariant > | strategies () const |
| Returns array of available strategies. | |
| int | toVertex () const |
| Returns the index of the vertex at the end of this edge. | |
Friends | |
| class | QgsGraph |
Represents an edge in a graph.
Definition at line 43 of file qgsgraph.h.
|
default |
| QVariant QgsGraphEdge::cost | ( | int | strategyIndex | ) | const |
Returns edge cost calculated using specified strategy.
| strategyIndex | strategy index |
Definition at line 169 of file qgsgraph.cpp.
| int QgsGraphEdge::fromVertex | ( | ) | const |
Returns the index of the vertex at the start of this edge.
Definition at line 179 of file qgsgraph.cpp.
| QVector< QVariant > QgsGraphEdge::strategies | ( | ) | const |
Returns array of available strategies.
Definition at line 174 of file qgsgraph.cpp.
| int QgsGraphEdge::toVertex | ( | ) | const |
Returns the index of the vertex at the end of this edge.
Definition at line 184 of file qgsgraph.cpp.
|
friend |
Definition at line 77 of file qgsgraph.h.