QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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 More...
int addArc (int outVertexIdx, int inVertexIdx, const QVector< QVariant > &properties)
 add edge to a graph More...
int vertexCount () const
 return vertex count More...
const QgsGraphVertexvertex (int idx) const
 return vertex at index More...
int arcCount () const
 return edge count More...
const QgsGraphArcarc (int idx) const
 return edge at index More...
int findVertex (const QgsPoint &pt) const
 find vertex by point More...

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

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: