Class: QgsGraphEdge¶
- class qgis.analysis.QgsGraphEdge¶
Bases:
sip.wrapper
This class implements a graph edge
QgsGraphEdge() Constructor for QgsGraphEdge.
QgsGraphEdge(
QgsGraphEdge
)Methods
Returns edge cost calculated using specified strategy
Returns the index of the vertex at the start of this edge.
Returns array of available strategies
Returns the index of the vertex at the end of this edge.
- cost(self, strategyIndex: int) Any ¶
Returns edge cost calculated using specified strategy
- Parameters:
strategyIndex (int) – strategy index
- Return type:
Any
- fromVertex(self) int ¶
Returns the index of the vertex at the start of this edge.
See also
- Return type:
int
- strategies(self) List[Any] ¶
Returns array of available strategies
- Return type:
List[Any]
- toVertex(self) int ¶
Returns the index of the vertex at the end of this edge.
See also
- Return type:
int