PyQt5.QtCore.QObjectDetermine making the graph. QgsGraphBuilder and QgsGraphDirector implemented
using “builder” design patter.
addStrategy(self, prop: QgsNetworkStrategy)¶
Add optimization strategy
makeGraph(self, builder: QgsGraphBuilderInterface, additionalPoints: Iterable[QgsPointXY], feedback: QgsFeedback = None) → List[QgsPointXY]¶
Make a graph using
- builder – the graph builder
- additionalPoints – list of points that should be snapped to the graph
- snappedPoints – list of snapped points
- feedback – feedback object for reporting progress
if snappedPoints[i] == QgsPointXY(0.0,0.0) then snapping failed.
name(self) → str¶
Returns director name