QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Mathematical graph representation.
int addVertex(const QgsPointXY &pt)
Add a vertex to the graph.
const QgsCoordinateReferenceSystem & crs
QgsGraphBuilder(const QgsCoordinateReferenceSystem &crs, bool otfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84")
Default constructor.
void addEdge(int pt1id, const QgsPointXY &pt1, int pt2id, const QgsPointXY &pt2, const QVector< QVariant > &prop) override
Add edge to the graph.
Determine interface for creating a graph. Contains the settings of the graph. QgsGraphBuilder and Qgs...
QgsGraph * graph()
Returns generated QgsGraph.
~QgsGraphBuilder() override
void addVertex(int id, const QgsPointXY &pt) override
Add vertex to the graph.
int addEdge(int fromVertexIdx, int toVertexIdx, const QVector< QVariant > &strategies)
Add an edge to the graph, going from the fromVertexIdx to toVertexIdx.