------------------------------------------------------------------------------
| 346 | |
| 347 | //------------------------------------------------------------------------------ |
| 348 | void vtkGraph::GetInEdges(vtkIdType v, vtkInEdgeIterator* it) |
| 349 | { |
| 350 | if (vtkDistributedGraphHelper* helper = this->GetDistributedGraphHelper()) |
| 351 | { |
| 352 | int myRank = this->Information->Get(vtkDataObject::DATA_PIECE_NUMBER()); |
| 353 | if (myRank != helper->GetVertexOwner(v)) |
| 354 | { |
| 355 | vtkErrorMacro("vtkGraph cannot retrieve the in edges for a non-local vertex"); |
| 356 | return; |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | if (it) |
| 361 | { |
| 362 | it->Initialize(this, v); |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | //------------------------------------------------------------------------------ |
| 367 | vtkInEdgeType vtkGraph::GetInEdge(vtkIdType v, vtkIdType i) |