Class: QgsGraphVertex¶
Represents vertex in a graph.
Methods
Returns the incoming edge ids, i.e. edges which end at this node. |
|
Returns outgoing edge ids, i.e. edges which start at this node. |
|
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
- Return type:
List[int]
- outgoingEdges(self) List[int] [source]¶
Returns outgoing edge ids, i.e. edges which start at this node.
See also
- Return type:
List[int]
- point(self) QgsPointXY [source]¶
Returns point associated with graph vertex.
- Return type: