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

Method GetInEdges

Common/DataModel/vtkGraph.cxx:348–364  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

346
347//------------------------------------------------------------------------------
348void 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//------------------------------------------------------------------------------
367vtkInEdgeType vtkGraph::GetInEdge(vtkIdType v, vtkIdType i)

Callers 12

GetEdgeIdMethod · 0.95
InitializeMethod · 0.45
IsStructureValidMethod · 0.45
GetParentMethod · 0.45
GetParentEdgeMethod · 0.45
TestGraphIteratorsFunction · 0.45
TestGraphAttribIteratorsFunction · 0.45
LayoutMethod · 0.45
BuildLayersMethod · 0.45
BFSExpandSelectionMethod · 0.45
RequestDataMethod · 0.45

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.36
TestGraphAttribIteratorsFunction · 0.36