Class: QgsGraphVertex

class qgis.analysis.QgsGraphVertex

Bases: sip.wrapper

This class implements a graph vertex

QgsGraphVertex() Default constructor. It is needed for Qt’s container, e.g. QVector

QgsGraphVertex(point: QgsPointXY) This constructor initializes QgsGraphVertex object and associates a vertex with a point

QgsGraphVertex(QgsGraphVertex)

Methods

incomingEdges

Returns the incoming edge ids, i.e. edges which end at this node.

outgoingEdges

Returns outgoing edge ids, i.e. edges which start at this node.

point

Returns point associated with graph vertex.

incomingEdges(self) List[int]

Returns the incoming edge ids, i.e. edges which end at this node.

See also

outgoingEdges()

Return type:

List[int]

outgoingEdges(self) List[int]

Returns outgoing edge ids, i.e. edges which start at this node.

See also

incomingEdges()

Return type:

List[int]

point(self) QgsPointXY

Returns point associated with graph vertex.

Return type:

QgsPointXY