QGIS API Documentation
2.6.0-Brighton
|
Mathematics graph representation. More...
#include <qgsgraph.h>
Public Member Functions | |
QgsGraph () | |
~QgsGraph () | |
int | addVertex (const QgsPoint &pt) |
add vertex to a grap | |
int | addArc (int outVertexIdx, int inVertexIdx, const QVector< QVariant > &properties) |
add edge to a graph | |
int | vertexCount () const |
return vertex count | |
const QgsGraphVertex & | vertex (int idx) const |
return vertex at index | |
int | arcCount () const |
return edge count | |
const QgsGraphArc & | arc (int idx) const |
return edge at index | |
int | findVertex (const QgsPoint &pt) const |
find vertex by point |
Mathematics graph representation.
QgsGraph::QgsGraph | ( | ) |
QgsGraph::~QgsGraph | ( | ) |
int QgsGraph::addArc | ( | int | outVertexIdx, |
int | inVertexIdx, | ||
const QVector< QVariant > & | properties | ||
) |
add edge to a graph
int QgsGraph::addVertex | ( | const QgsPoint & | pt | ) |
add vertex to a grap
const QgsGraphArc & QgsGraph::arc | ( | int | idx | ) | const |
return edge at index
int QgsGraph::arcCount | ( | ) | const |
return edge count
int QgsGraph::findVertex | ( | const QgsPoint & | pt | ) | const |
find vertex by point
const QgsGraphVertex & QgsGraph::vertex | ( | int | idx | ) | const |
return vertex at index
int QgsGraph::vertexCount | ( | ) | const |
return vertex count