146 int addEdge(
int fromVertexIdx,
int toVertexIdx,
const QVector<QVariant> &strategies );
151 int vertexCount()
const;
168 if ( sipCpp->hasVertex( a0 ) )
170 return sipConvertFromNewType(
new QgsGraphVertex( sipCpp->vertex( a0 ) ), sipType_QgsGraphVertex, Py_None );
174 PyErr_SetString( PyExc_IndexError, QByteArray::number( a0 ) );
189 void removeVertex(
int index );
200 void removeVertex(
int index );
202 if ( sipCpp->hasVertex( a0 ) )
204 sipCpp->removeVertex( a0 );
208 PyErr_SetString( PyExc_IndexError, QByteArray::number( a0 ) );
217 int edgeCount()
const;
234 if ( sipCpp->hasEdge( a0 ) )
236 return sipConvertFromNewType(
new QgsGraphEdge( sipCpp->edge( a0 ) ), sipType_QgsGraphEdge, Py_None );
240 PyErr_SetString( PyExc_IndexError, QByteArray::number( a0 ) );
257 void removeEdge(
int index );
269 void removeEdge(
int index );
271 if ( sipCpp->hasEdge( a0 ) )
273 sipCpp->removeEdge( a0 );
277 PyErr_SetString( PyExc_IndexError, QByteArray::number( a0 ) );
302 int findOppositeEdge(
int index )
const;
318 int findOppositeEdge(
int index )
const;
320 if ( sipCpp->hasEdge( a0 ) )
322 sipRes = sipCpp->findOppositeEdge( a0 );
326 PyErr_SetString( PyExc_IndexError, QByteArray::number( a0 ) );
337 bool hasEdge(
int index )
const;
344 bool hasVertex(
int index )
const;
357 int mNextVertexId = 0;