|
QGIS API Documentation
2.8.2-Wien
|
Mathematics graph representation. More...
#include <qgsgraph.h>
Public Member Functions | |
| QgsGraph () | |
| ~QgsGraph () | |
| int | addArc (int outVertexIdx, int inVertexIdx, const QVector< QVariant > &properties) |
| add edge to a graph | |
| int | addVertex (const QgsPoint &pt) |
| add vertex to a grap | |
| const QgsGraphArc & | arc (int idx) const |
| return edge at index | |
| int | arcCount () const |
| return edge count | |
| int | findVertex (const QgsPoint &pt) const |
| find vertex by point | |
| const QgsGraphVertex & | vertex (int idx) const |
| return vertex at index | |
| int | vertexCount () const |
| return vertex count | |
Mathematics graph representation.
Definition at line 131 of file qgsgraph.h.
| QgsGraph::QgsGraph | ( | ) |
Definition at line 19 of file qgsgraph.cpp.
| QgsGraph::~QgsGraph | ( | ) |
Definition at line 24 of file qgsgraph.cpp.
| int QgsGraph::addArc | ( | int | outVertexIdx, |
| int | inVertexIdx, | ||
| const QVector< QVariant > & | properties | ||
| ) |
add edge to a graph
Definition at line 35 of file qgsgraph.cpp.
| int QgsGraph::addVertex | ( | const QgsPoint & | pt | ) |
add vertex to a grap
Definition at line 29 of file qgsgraph.cpp.
| const QgsGraphArc & QgsGraph::arc | ( | int | idx | ) | const |
return edge at index
Definition at line 56 of file qgsgraph.cpp.
| int QgsGraph::arcCount | ( | ) | const |
return edge count
Definition at line 67 of file qgsgraph.cpp.
| int QgsGraph::findVertex | ( | const QgsPoint & | pt | ) | const |
| const QgsGraphVertex & QgsGraph::vertex | ( | int | idx | ) | const |
return vertex at index
Definition at line 51 of file qgsgraph.cpp.
| int QgsGraph::vertexCount | ( | ) | const |
return vertex count
Definition at line 62 of file qgsgraph.cpp.
1.8.1.2