QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsGraph Class Reference

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 QgsGraphVertexvertex (int idx) const
 return vertex at index
int arcCount () const
 return edge count
const QgsGraphArcarc (int idx) const
 return edge at index
int findVertex (const QgsPoint &pt) const
 find vertex by point

Detailed Description

Mathematics graph representation.

Constructor & Destructor Documentation

QgsGraph::QgsGraph ( )
QgsGraph::~QgsGraph ( )

Member Function Documentation

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

Returns
vertex index
const QgsGraphVertex & QgsGraph::vertex ( int  idx) const

return vertex at index

int QgsGraph::vertexCount ( ) const

return vertex count


The documentation for this class was generated from the following files: