QGIS API Documentation  3.20.0-Odense (decaadbb31)
Public Member Functions | Friends | List of all members
QgsGraphVertex Class Reference

This class implements a graph vertex. More...

#include <qgsgraph.h>

Public Member Functions

 QgsGraphVertex ()=default
 Default constructor. More...
 
 QgsGraphVertex (const QgsPointXY &point)
 This constructor initializes QgsGraphVertex object and associates a vertex with a point. More...
 
QgsGraphEdgeIds incomingEdges () const
 Returns the incoming edge ids, i.e. More...
 
QgsGraphEdgeIds outgoingEdges () const
 Returns outgoing edge ids, i.e. More...
 
QgsPointXY point () const
 Returns point associated with graph vertex. More...
 

Friends

class QgsGraph
 

Detailed Description

This class implements a graph vertex.

Since
QGIS 3.0

Definition at line 94 of file qgsgraph.h.

Constructor & Destructor Documentation

◆ QgsGraphVertex() [1/2]

QgsGraphVertex::QgsGraphVertex ( )
default

Default constructor.

It is needed for Qt's container, e.g. QVector

◆ QgsGraphVertex() [2/2]

QgsGraphVertex::QgsGraphVertex ( const QgsPointXY point)

This constructor initializes QgsGraphVertex object and associates a vertex with a point.

Definition at line 98 of file qgsgraph.cpp.

Member Function Documentation

◆ incomingEdges()

QgsGraphEdgeIds QgsGraphVertex::incomingEdges ( ) const

Returns the incoming edge ids, i.e.

edges which end at this node.

See also
outgoingEdges()

Definition at line 104 of file qgsgraph.cpp.

◆ outgoingEdges()

QgsGraphEdgeIds QgsGraphVertex::outgoingEdges ( ) const

Returns outgoing edge ids, i.e.

edges which start at this node.

See also
incomingEdges()

Definition at line 109 of file qgsgraph.cpp.

◆ point()

QgsPointXY QgsGraphVertex::point ( ) const

Returns point associated with graph vertex.

Definition at line 114 of file qgsgraph.cpp.

Friends And Related Function Documentation

◆ QgsGraph

friend class QgsGraph
friend

Definition at line 131 of file qgsgraph.h.


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