QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
QgsGraphEdge Class Reference

This class implements a graph edge. More...

#include <qgsgraph.h>

Public Member Functions

 QgsGraphEdge ()=default
 Constructor for QgsGraphEdge.
 
QVariant cost (int strategyIndex) const
 Returns edge cost calculated using specified strategy.
 
int fromVertex () const
 Returns the index of the vertex at the start of this edge.
 
QVector< QVariant > strategies () const
 Returns array of available strategies.
 
int toVertex () const
 Returns the index of the vertex at the end of this edge.
 

Friends

class QgsGraph
 

Detailed Description

This class implements a graph edge.

Since
QGIS 3.0

Definition at line 44 of file qgsgraph.h.

Constructor & Destructor Documentation

◆ QgsGraphEdge()

QgsGraphEdge::QgsGraphEdge ( )
default

Constructor for QgsGraphEdge.

Member Function Documentation

◆ cost()

QVariant QgsGraphEdge::cost ( int  strategyIndex) const

Returns edge cost calculated using specified strategy.

Parameters
strategyIndexstrategy index

Definition at line 169 of file qgsgraph.cpp.

◆ fromVertex()

int QgsGraphEdge::fromVertex ( ) const

Returns the index of the vertex at the start of this edge.

See also
toVertex()

Definition at line 179 of file qgsgraph.cpp.

◆ strategies()

QVector< QVariant > QgsGraphEdge::strategies ( ) const

Returns array of available strategies.

Definition at line 174 of file qgsgraph.cpp.

◆ toVertex()

int QgsGraphEdge::toVertex ( ) const

Returns the index of the vertex at the end of this edge.

See also
fromVertex()

Definition at line 184 of file qgsgraph.cpp.

Friends And Related Symbol Documentation

◆ QgsGraph

friend class QgsGraph
friend

Definition at line 83 of file qgsgraph.h.


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