Class: QgsGraphVertex

Represents vertex in a graph.

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.

class qgis.analysis.QgsGraphVertex[source]

Bases: object

__init__()
__init__(point: QgsPointXY)

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

Parameters:

point (QgsPointXY)

__init__(a0: QgsGraphVertex)
Parameters:

a0 (QgsGraphVertex)

incomingEdges(self) List[int][source]

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

See also

outgoingEdges()

Return type:

List[int]

outgoingEdges(self) List[int][source]

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

See also

incomingEdges()

Return type:

List[int]

point(self) QgsPointXY[source]

Returns point associated with graph vertex.

Return type:

QgsPointXY