32 return mGraphVertexes.size() - 1;
35 int QgsGraph::addArc(
int outVertexIdx,
int inVertexIdx,
const QVector< QVariant >& properties )
39 e.mProperties = properties;
40 e.mOut = outVertexIdx;
42 mGraphArc.push_back( e );
43 int edgeIdx = mGraphArc.size() - 1;
45 mGraphVertexes[ outVertexIdx ].mOutArc.push_back( edgeIdx );
46 mGraphVertexes[ inVertexIdx ].mInArc.push_back( edgeIdx );
48 return mGraphArc.size() - 1;
53 return mGraphVertexes[ idx ];
58 return mGraphArc[ idx ];
64 return mGraphVertexes.size();
69 return mGraphArc.size();
75 for ( i = 0; i < mGraphVertexes.size(); ++i )
77 if ( mGraphVertexes[ i ].point() == pt )
94 return mProperties[ i ];
113 : mCoordinate( point )