44 mGraph->
addEdge( pt1id, pt2id, prop );
QgsGraphBuilder(const QgsCoordinateReferenceSystem &crs, bool otfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84")
Default constructor.
A class to represent a 2D point.
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.
const QgsCoordinateReferenceSystem & crs
~QgsGraphBuilder() override
QgsGraph * graph()
Returns generated QgsGraph.
Mathematical graph representation.
int addEdge(int fromVertexIdx, int toVertexIdx, const QVector< QVariant > &strategies)
Add an edge to the graph, going from the fromVertexIdx to toVertexIdx.
void addVertex(int id, const QgsPointXY &pt) override
Add vertex to the graph.
This class represents a coordinate reference system (CRS).
int addVertex(const QgsPointXY &pt)
Add a vertex to the graph.