| QGIS API Documentation
    3.18.1-Zürich (202f1bf7e5)
    | 
Mathematical graph representation. More...
#include <qgsgraph.h>
| Public Member Functions | |
| QgsGraph ()=default | |
| Constructor for QgsGraph.  More... | |
| int | addEdge (int fromVertexIdx, int toVertexIdx, const QVector< QVariant > &strategies) | 
| Add an edge to the graph, going from the fromVertexIdx to toVertexIdx.  More... | |
| int | addVertex (const QgsPointXY &pt) | 
| Add a vertex to the graph.  More... | |
| const QgsGraphEdge & | edge (int idx) const | 
| Returns edge at given index.  More... | |
| int | edgeCount () const | 
| Returns number of graph edges.  More... | |
| int | findVertex (const QgsPointXY &pt) const | 
| Find vertex by associated point.  More... | |
| const QgsGraphVertex & | vertex (int idx) const | 
| Returns vertex at given index.  More... | |
| int | vertexCount () const | 
| Returns number of graph vertices.  More... | |
| 
 | default | 
Constructor for QgsGraph.
| int QgsGraph::addEdge | ( | int | fromVertexIdx, | 
| int | toVertexIdx, | ||
| const QVector< QVariant > & | strategies | ||
| ) | 
Add an edge to the graph, going from the fromVertexIdx to toVertexIdx.
Definition at line 29 of file qgsgraph.cpp.
| int QgsGraph::addVertex | ( | const QgsPointXY & | pt | ) | 
Add a vertex to the graph.
Definition at line 23 of file qgsgraph.cpp.
| const QgsGraphEdge & QgsGraph::edge | ( | int | idx | ) | const | 
Returns edge at given index.
Definition at line 50 of file qgsgraph.cpp.
| int QgsGraph::edgeCount | ( | ) | const | 
Returns number of graph edges.
Definition at line 60 of file qgsgraph.cpp.
| int QgsGraph::findVertex | ( | const QgsPointXY & | pt | ) | const | 
| const QgsGraphVertex & QgsGraph::vertex | ( | int | idx | ) | const | 
Returns vertex at given index.
Definition at line 45 of file qgsgraph.cpp.
| int QgsGraph::vertexCount | ( | ) | const | 
Returns number of graph vertices.
Definition at line 55 of file qgsgraph.cpp.