MCPcopy Create free account
hub / github.com/Kitware/VTK / GetOutEdges

Method GetOutEdges

Common/DataModel/vtkGraph.cxx:231–247  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

229
230//------------------------------------------------------------------------------
231void vtkGraph::GetOutEdges(vtkIdType v, vtkOutEdgeIterator* it)
232{
233 if (vtkDistributedGraphHelper* helper = this->GetDistributedGraphHelper())
234 {
235 int myRank = this->Information->Get(vtkDataObject::DATA_PIECE_NUMBER());
236 if (myRank != helper->GetVertexOwner(v))
237 {
238 vtkErrorMacro("vtkGraph cannot retrieve the out edges for non-local vertex " << v);
239 return;
240 }
241 }
242
243 if (it)
244 {
245 it->Initialize(this, v);
246 }
247}
248
249//------------------------------------------------------------------------------
250vtkOutEdgeType vtkGraph::GetOutEdge(vtkIdType v, vtkIdType i)

Callers 15

GetEdgeIdMethod · 0.95
VTKToXdmfMethod · 0.80
ConvertSelectionMethod · 0.80
UpdatePositionsMethod · 0.80
InitializeMethod · 0.80
GetInEdgesMethod · 0.80
IsStructureValidMethod · 0.80
InitializeMethod · 0.80
SetGraphMethod · 0.80
IncrementMethod · 0.80
IsStructureValidMethod · 0.80

Calls 7

GetVertexOwnerMethod · 0.80
GetMethod · 0.45
InitializeMethod · 0.45
GetVertexIndexMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by 2

TestGraphIteratorsFunction · 0.64
TestGraphAttribIteratorsFunction · 0.64