28  , mGraph( std::make_unique<
QgsGraph>() )
 
 
   36  mGraph->addVertex( pt );
 
 
   41  mGraph->addEdge( pt1id, pt2id, prop );
 
 
   54  mGraph = std::make_unique<QgsGraph>();
 
 
Represents a coordinate reference system (CRS).
 
Interface for creating a graph.
 
~QgsGraphBuilder() override
 
QgsGraphBuilder(const QgsCoordinateReferenceSystem &crs, bool otfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84")
Default constructor.
 
QgsGraph * takeGraph()
Takes the generated graph from the builder, resetting the builder back to its initial state ready for...
 
void addVertex(int id, const QgsPointXY &pt) override
Add vertex to the graph.
 
QgsGraph graph() const
Returns the generated QgsGraph.
 
void addEdge(int pt1id, const QgsPointXY &pt1, int pt2id, const QgsPointXY &pt2, const QVector< QVariant > &prop) override
Add edge to the graph.
 
Mathematical graph representation.
 
const QgsCoordinateReferenceSystem & crs