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