Skip to content

Commit a950830

Browse files
committed
fix QgsArc.in() python-binding
1 parent 94b5f99 commit a950830

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

python/analysis/network/qgsgraph.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ class QgsGraphArc
2525
/**
2626
* return index of outgoing vertex
2727
*/
28-
int out() const;
28+
int outVertex() const;
2929

3030
/**
3131
* return index of incoming vertex
3232
*/
33-
int in() const;
33+
int inVertex() const;
3434
};
3535

3636

src/analysis/network/qgsgraph.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,16 @@ QVector< QVariant > QgsGraphArc::properties() const
9797
return mProperties;
9898
}
9999

100+
int QgsGraphArc::inVertex() const
101+
{
102+
return mIn;
103+
}
104+
105+
int QgsGraphArc::outVertex() const
106+
{
107+
return mOut;
108+
}
109+
100110
int QgsGraphArc::in() const
101111
{
102112
return mIn;

src/analysis/network/qgsgraph.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ANALYSIS_EXPORT QgsGraphArc
4747
* return property value
4848
* @param propertyIndex property index
4949
*/
50-
QVariant property(int propertyIndex ) const;
50+
QVariant property( int propertyIndex ) const;
5151

5252
/**
5353
* get array of proertyes
@@ -58,11 +58,13 @@ class ANALYSIS_EXPORT QgsGraphArc
5858
* return index of outgoing vertex
5959
*/
6060
int out() const;
61+
int outVertex() const;
6162

6263
/**
6364
* return index of incoming vertex
6465
*/
6566
int in() const;
67+
int inVertex() const;
6668

6769
private:
6870

0 commit comments

Comments
 (0)