42 mGraph->
addArc( pt1id, pt2id, prop );
QgsGraphBuilder(const QgsCoordinateReferenceSystem &crs, bool otfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84")
default constructor
Determine interface for creating a graph.
int addArc(int outVertexIdx, int inVertexIdx, const QVector< QVariant > &properties)
add edge to a graph
QgsGraph * graph()
return QgsGraph result;
int addVertex(const QgsPoint &pt)
add vertex to a grap
virtual void addVertex(int id, const QgsPoint &pt) override
add vertex
A class to represent a point.
Mathematics graph representation.
Class for storing a coordinate reference system (CRS)
virtual void addArc(int pt1id, const QgsPoint &pt1, int pt2id, const QgsPoint &pt2, const QVector< QVariant > &prop) override
add arc